Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Finding the obfuscated stack trace generated by proguard

I created a sample app on android studio. After running proguard, the mapping file was placed on my mappings.txt file due to personal preferences. Everything seems to work fine. However, I thought my code was going to be obfuscated. My field "text" a textview has been renamed "p" according to the mappings.txt file. However when I open my project I still see the same code as before, I even set a new string on "text" and the program ran fine. Why doesn't my code seem obfuscated. I am trying to find the obfuscated stack trace, who knows where it is. By the way, I ran proguard on debug mode. Android should include videos on the ProGuard tool. It takes time from actual developing of code.

like image 250
i_o Avatar asked Dec 25 '22 16:12

i_o


1 Answers

Proguard does not change your code, it does rename the fields and method names but in the generated apk, not in your code.

You need to deobfuscate your stack trace. To do that, you can do the following steps :

  1. Open /tools/proguard/bin/proguardgui.bat
  2. Select ReTrace in the left column.
  3. Add your mapping file and obfuscated stack trace.
  4. Click ReTrace
like image 119
Bajji Avatar answered Jan 21 '23 17:01

Bajji