IZ2VTW's Board

How to recover APK from Android phone

200 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.

  1. 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

  2. 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: package:/data/app/com.google.android.calendar-wsp_PtHEV8jAfudAuN1RMq==/base.apk.

  3. 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 .

source: https://stackoverflow.com/questions/4032960/how-do-i-get-an-apk-file-from-an-android-device

Updated: 2019-12-31 16:00:46 +0100 CET - Improve this page
Commit: "Move to new theme" [1014dbc]
By: Francesco Vezzoli <fvezzoli@villavasco.ovh>