Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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