htq67g
Last Updated: October 06, 2018
·
24.41K
· danialgoodwin

Android: How To Decode ProGuard’s Obfuscated Stack Trace

This is for Android or Java developers who use ProGuard in their apps and need to debug encrypted stack traces. You can do this with either CLI (Command Line Interface) or GUI (Graphical User Interface).

GUI METHOD

  1. Open <android-sdk>/tools/proguard/bin/proguardgui.bat
  2. Select the “ReTrace” option on the left column.
  3. Add your mapping file and obfuscated stack trace.
  4. Click “ReTrace!”

CLI METHOD

  1. Put your obfuscated stack trace in a text file (ex: stacktrace.txt).
  2. The easiest way to do the next step is to copy your mapping.txt and stacktrace.txt into <androidsdkroot>/tools/proguard/bin.
  3. If you are on Windows, run the following command in the same directory as the files: retrace.bat -verbose mapping.txt stacktrace.txt > out.txt
  4. out.txt will have the stack trace de-obfuscated.

*For Linux/Mac users, replace "retrace.bat" with "retrace.sh".

Now you can debug much easier and faster than before!

More detailed and advanced notes (and pictures): http://blog.simplyadvanced.net/android-how-to-decode-proguards-obfuscated-code-from-stack-trace/

  • Danial Goodwin -

Computer Engineer | Co-Founder and Lead Developer of Simply Advanced, LLC

4 Responses
Add your response

26397

Link gives 404. And, In mac there is no proguardgui.bat file available instead proguardgui.sh is there then want to know how to get GUI using this proguardgui.sh?

over 1 year ago ·
29955

hello,
ProGuard’s mapping.txt is from the same version of your compiled version. Mapping.txt gets replaced and changes every time you export your APK from Eclipse. A good idea is to copy and store all of your mapping.txt files in a safe location that won’t get rewritten. Also, adding your app’s version number at the end will make your process a lot simpler also, i.e., “mapping_v3p0p8.txt”.
regards
https://bluestacks.vip/ https://textnow.vip/ https://photomath.vip/

6 months ago ·
30809

Dice game are really one of the most popular game playing by people all over the world just visit here http://theyahtzee.com to play yahtzee online it is the game of board and dice here you have to play your turn simultaneously and have to score more points to be the winner by eliminating your rival.

2 months ago ·
30893

I’ve been using the I have to protect my app by enabling Proguard obfuscation in Android http://movieboxhdapp.org/movie-box-apk-android I have searched for the process of how to apply https://tutuappapk.vip/tutuapp-apk it but i did not get any clear solution. When i try it, i always get an error. So can anyone tell me the clear steps to apply it in my app https://emus4u.co/emus4u-moviebox/

about 2 months ago ·