I'm trying to get the APK of an installed application from my device. I'm following the instructions in this answer but when pulling it, adb says the APK doesn't exist. This are the exact steps:
$ adb shell pm list packages
...
(whole list of packages)
...
$ adb shell pm path com.google.android.apps.books
package:/data/app/com.google.android.apps.books-1/base.apk
$ adb pull /data/app/com.google.android.apps.books-1/base.apk
adb: error: remote object '/data/app/com.google.android.apps.books-1/base.apk' does not exist
How can I pull this file to my local drive?
Depending on your device, you might need to give a specific app, such as Chrome, permission to install unofficial APK files. Or, if you see it, enable Install Unknown Apps or Unknown sources. If the file doesn't open, try browsing for it with a file manager like Astro File Manager or ES File Explorer File Manager.
Try this:
$ adb shell cp /data/app/com.google.android.apps.books-1/base.apk /storage/emulated/0/Download/base.apk
then
$ adb pull /storage/emulated/0/Download/base.apk
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With