Unable to pull APK from Android device using adb

I am trying to get the APK of an installed application from my device. I follow the instructions in this answer , but pulling it, adb says that the APK does not exist. These 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 a local drive?

+6
source share
1 answer

Try the following:

 $ 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 
+12
source

Source: https://habr.com/ru/post/1013156/


All Articles