Cannot pull APK from Android device with adb

只谈情不闲聊 提交于 2020-05-25 14:14:52

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!