How to recover APK from Android phone200 words - 1 min read
Sometimes there is a need to recover the apk of an app installed on our Android smartphone. On the most recent versions of Android (Oreo and next) the system append a random string to package name of app in order to create the filename. Here a list of command to retrieve the file work also on not-rooted device.
Determine the package name of the app e.g. “com.google.android.calendar” with command
adb shell pm list packages. Look through the output list and try to find the package name of requested app. If you don’t find it use the browser and on play.google.com check the address bar
Get the full path name of the APK file for the desired package with command
adb shell pm path com.google.android.calendar. The output is similar to:
Using the full path name from Step 2, pull the APK file from the Android device to the development box:
adb pull /data/app/com.google.android.calendar-wsp_PtHEV8jAfudAuN1RMq==/base.apk .