我试图从我的设备上获取已安装应用程序的APK。我按照this answer中的说明操作,但在拉动它时,adb说APK不存在。这是确切的步骤:
$ 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
如何将此文件提取到本地驱动器?
答案 0 :(得分:18)
试试这个:
$ adb shell cp /data/app/com.google.android.apps.books-1/base.apk /storage/emulated/0/Download/base.apk
然后
$ adb pull /storage/emulated/0/Download/base.apk