Android restore obfuscated code

Reprinted from Android using Mapping.txt to restore the obfuscated code

How to restore the obfuscated code file, this time you need to use the mapping.txt file.

mapping file: used to view comparison files before and after obfuscation. Generally used to view online bug logs.
Mapping file directory: build\outputs\mapping\release of the module in Android Studio.

Specific implementation steps:
1. Open the proguardgui.bat tool of the Android SDK (in the tools\proguard\bin directory of the SDK)
Insert image description here
2. In the opened ProGuard interface, select the Retrace option
Insert image description here
3. In the Mapping file, select the mapping corresponding to app obfuscation. txt file
Insert image description here
4. In the Obfuscated stack trace box, enter the exception information
Insert image description here
5. Click the ReTrace! button, and the obfuscated classes and methods in the exception information will be restored.
Insert image description here
Note : In order to facilitate troubleshooting, the following content needs to be added to the obfuscated file:

-renamesourcefileattribute SourceFile
-keepattributes SourceFile,LineNumberTable

Supongo que te gusta

Origin blog.csdn.net/fengyulinde/article/details/95369752
Recomendado
Clasificación