Get the APK of the installed application with adb command
I am trying to get the APK file of an installed app on my android phone, I followed this answer which says there is no need for root access.
I know the name of the Facebook app package is com.facebook.katana
, I see it with the command adb shell pm list package
.
Then I tried on the command line:
adb shell pm path com.facebook.katana
It returns:
package:/data/app/com.facebook.katana-2/base.apk
Then I pull the apk file to my computer:
adb pull /data/app/com.facebook.katana-2/base.apk
But the conclusion is:
adb: error: remote object '/data/app/com.facebook.katana-2/base.apk' does not exist
Why can't I get the APK but this answer says it works?
source to share
Install MyAppSharer from Google Play on your phone, launch it, find the application you want and share it with Google Drive (or write if the file is small enough).
Works on Android 7.1 where the above adb pull commands don't work (at least not for me); says the app doesn't exist. So just use the app, no need to run adb commands.
source to share