如何根据mapping.txt还原混淆的代码
来源:互联网 发布:php 字符串添加空格 编辑:程序博客网 时间:2024/05/16 02:04
BEFORE
Here’s the stack trace as obfuscated by ProGuard:
Caused by: java.lang.NullPointerExceptionat net.simplyadvanced.ltediscovery.be.u(Unknown Source)at net.simplyadvanced.ltediscovery.at.v(Unknown Source)at net.simplyadvanced.ltediscovery.at.d(Unknown Source)at net.simplyadvanced.ltediscovery.av.onReceive(Unknown Source)
AFTER
All you need to do is write one line in the command prompt, and the obfuscation will be removed, as you can see here:
Caused by: java.lang.NullPointerExceptionat net.simplyadvanced.ltediscovery.UtilTelephony.boolean is800MhzNetwork()(Unknown Source)at net.simplyadvanced.ltediscovery.ServiceDetectLte.void checkAndAlertUserIf800MhzConnected()(Unknown Source)at net.simplyadvanced.ltediscovery.ServiceDetectLte.void startLocalBroadcastReceiver()(Unknown Source)at net.simplyadvanced.ltediscovery.ServiceDetectLte$2.void onReceive(android.content.Context,android.content.Intent)(Unknown Source)
HOW TO DECODE STACK TRACE
You can choose either the command line method or GUI (Graphical User Interface) method.
HOW TO DECODE STACK TRACE VIA GUI
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!”
Thanks to David Bilik for mentioning this GUI method.
HOW TO DECODE STACK TRACE VIA COMMAND LINE
1) You will need your ProGuard’s mapping.txt file and the stack trace (Ex: stacktrace.txt) that you want to de-obfuscate.
2) The easiest way to do the next step is copy both these files into your<android_sdk_root>/tools/proguard/bin.
3) If you are on Windows, run the following command in the same directory as the files (make sure you change to your own file names):
retrace.bat -verbose mapping.txt stacktrace.txt > out.txt
4) out.txt will have the stack trace de-obfuscated. Now you can debug much easier and faster than before.
- 如何根据mapping.txt还原混淆的代码
- 如何根据mapping.txt还原混淆的代码
- Android根据mapping.txt还原混淆代码
- Android根据mapping.txt还原混淆的代码
- Android根据mapping.txt还原混淆的代码
- mapping.txt还原混淆代码
- 混淆代码根据mapping.text还原代码
- 通过mapping.txt解析混淆apk的出错信息
- 通过mapping.txt解析混淆apk的出错信息
- 通过mapping.txt解析混淆apk的出错信息
- 通过mapping.txt解析混淆apk的出错信息
- Android打包代码混淆后的Mapping文件路径
- 从异常堆栈中还原 ProGuard 混淆过的代码
- 从异常堆栈中还原 ProGuard 混淆过的代码
- 从异常堆栈中还原 ProGuard 混淆过的代码
- 从异常堆栈中还原 ProGuard 混淆过的代码
- 从异常堆栈中还原 ProGuard 混淆过的代码
- 压缩和还原压缩的JS代码.txt
- windows批处理for循环用法
- 静态类,静态方法,静态变量与非静态之前的区别
- CCNA配置试验五vlan的基本配置
- linux安装rpm时提示:can't create transaction lock on /var/lib/rpm/.rpm.lock 错误
- Length of Last Word
- 如何根据mapping.txt还原混淆的代码
- 容易忘记的android 知识点(实时更新)
- python 3Des 加密
- 最大子序列和
- window.event对像和在ie与ff中的区别
- git 是神马?
- LeetCode——Longest Consecutive Sequence
- jQuery 学习(二)
- 添加Basic excel后出现Error2error C1010: unexpected end of file while looking for precompiled