问题
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?
回答1:
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
来源:https://stackoverflow.com/questions/41150038/cannot-pull-apk-from-android-device-with-adb