17

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?

Community
  • 1
  • 1
josemigallas
  • 3,761
  • 1
  • 29
  • 68

1 Answers1

28

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
Klaid Dias
  • 408
  • 4
  • 7