Last active
December 4, 2020 19:27
-
-
Save adam-hurwitz/de3695a9583f63f60acba5c346b55901 to your computer and use it in GitHub Desktop.
ODG - Android Security: Decompile App
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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