Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot pull APK from Android device with adb

Tags:

adb

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?

like image 500
josemigallas Avatar asked Dec 14 '16 18:12

josemigallas


People also ask

Why can't I open an APK file on my Android?

Depending on your device, you might need to give a specific app, such as Chrome, permission to install unofficial APK files. Or, if you see it, enable Install Unknown Apps or Unknown sources. If the file doesn't open, try browsing for it with a file manager like Astro File Manager or ES File Explorer File Manager.


Video Answer


1 Answers

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
like image 77
Klaid Dias Avatar answered Oct 14 '22 20:10

Klaid Dias