Skip to content

Instantly share code, notes, and snippets.

@muthuspark
Created September 18, 2019 10:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save muthuspark/68da247c159c38488b231ce786c89c6f to your computer and use it in GitHub Desktop.
Save muthuspark/68da247c159c38488b231ce786c89c6f to your computer and use it in GitHub Desktop.
series of steps to get the apk from the phone in usb debugging mode.
The sequence of steps lets me download an APK of any app I have downloaded from the playstore.
1. install the app from playstore in the app or emulator. example instagram
2. get the name of the package of the app I am interested in, this can also be taken from the playstore URL,
``adb shell pm list packages | grep instagram``
3. get the location of the apk in the phone
``adb shell pm path com.instagram.android``
4. download the app to the local system
``adb pull /data/app/com.instagram.android-XJc0EbhiBn-d0G4UmdnmgQ==/base.apk``
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment