grushy
grushy

Reputation: 61

how to use retrace.bat in android

I am using retrace.bat -verbose mapping.txt obfuscated_trace.txt at the command prompt.

But it's showing nothing in obfuscated_trace.txt. mapping.txt copy from project.

step:

  1. cd *\android-sdk\tools\proguard\bin

  2. retrace.bat -verbose mapping.txt obfuscated_trace.txt

Upvotes: 6

Views: 8764

Answers (4)

Hamid Ali
Hamid Ali

Reputation: 114

add this => proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' and set minifyEnabled to true in app/build.gradle like

buildTypes {
    debug {
       
    }
    release {
      
        minifyEnabled true
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
}

create apk/aab and look at file:

app/build/outputs/mapping/[variant]/mapping.txt

or

app/build/outputs/mapping/[variant]/reTrace.txt

Upvotes: 0

Harish Reddy
Harish Reddy

Reputation: 992

Please follow the below points.

  1. open the terminal/cmd

  2. cd **/sdk/tools/proguard/bin/proguardgui.jar

  3. refer the attached image, retrace GUI pop's up

  4. select your mapping file and copy-paste your obfuscated stacktrace

That's it. Simple and easy

enter image description here

Upvotes: 3

stuckedunderflow
stuckedunderflow

Reputation: 3767

You can have Retrace GUI instead. Look here for step by step details on how to use Retrace GUI.

Basic steps follow:

  1. Open /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!”

Upvotes: 15

j2emanue
j2emanue

Reputation: 62549

your obfuscated_trace.xt has to actually have a stack trace in it .... paste a stack trace inside of this file and run it again and to unobfuscate the code

Upvotes: 0

Related Questions