Search code examples
androidmacosadbmacos-sierra

Is it possible to install APK through adb if the file is on the android device?


Usually if the apk is on my desktop, I would use adb install <path> to get it on my Android device. Somehow I like to know if it is also possible if the apk is on the device. I imagine adb shell would be a start, sadly tho, install <path> afterward doesn't seem to work.


Solution

  • adb shell
    pm install /location/apk.apk
    // if you want to remove the installation package
    rm /location/apk.apk