Skip to content

Instantly share code, notes, and snippets.

@adam-hurwitz
Last active December 4, 2020 19:27
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 adam-hurwitz/de3695a9583f63f60acba5c346b55901 to your computer and use it in GitHub Desktop.
Save adam-hurwitz/de3695a9583f63f60acba5c346b55901 to your computer and use it in GitHub Desktop.
ODG - Android Security: Decompile App
adb shell pm list package | grep lyft
adb shell pm path me.lyft.android
// Access the terminal of the phone.
adb shell
// Copy the APK to the phone's SD card.
cp /data/app/me.lyft.android-1/base.apk /mnt/sdcard
exit
// Download from the SD card to the desktop.
adb pull /mnt/sdcard/base.apk ~/Desktop
// Delete the copy of the APK from the SD card.
adb shell rm /mnt/sdcard/base.apk
cd android/tools/ → dex2jar-2.0
// Gives the program permission to be executable.
chmod 777 dex2jar-2.0/
// Provides some security permission.
sudo chmod +x d2j_invoke.sh
// Converts to Jar saved to dex2jar-2.0 directory
sh d2j-dex2jar.sh ~/Desktop/lyft.apk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment