Wednesday, November 30, 2022

How to get APK files from your Android phone

Make sure that you have ADB installed and phone connected via USB cable. 

The following command will list all packages that are installed on your phone:
./adb shell pm list packages

The following command will give you the path to the APK for a given package name:
./adb shell pm path your.package.name

Use the obtained path name to pull the APK file from the device:
./adb pull /directory/path/example/WantedApp.apk .

That should be it!


No comments:

Post a Comment