I try to get the APK file of installed app on my Android phone, I followed this answer which says no need for root access.
I know Facebook app package name is com.facebook.katana
, I see it with command adb shell pm list package
.
Then, I tried in 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 by:
adb pull /data/app/com.facebook.katana-2/base.apk
But output is:
adb: error: remote object '/data/app/com.facebook.katana-2/base.apk' does not exist
Why I can not get the APK but that answer says it works?
ADB (Android Debugging Bridge) can be used to execute commands on your VR device. It's mostly used to install applications (APK files) from a Windows PC or Mac with a device connected with USB.
Pull the APK file from the Android device to the development box by setting destination path.
adb pull /data/app/com.facebook.katana-2/base.apk path/to/desired/destination
or use,
adb shell cat /data/app/com.facebook.katana-2/base.apk > app.apk
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With