查看混淆后的日志
2017-12-12 16:33
155 查看
APP混淆已经是APP发布时的标配技术了,但是我们又需要回去用户使用APP时的崩溃日志,这个时候,看到的日志确是被混淆了,想a.b.c.c()!是不是要狂了呢?。所以,Google当然会为我们考虑到这种情况。下面对具体的使用进行说明。
代码混淆生成apk之后,项目下面会多出来一个build\outputs\mapping\release文件夹,下面分别解释release文件夹中四个文件的作用。
dump.txt : 描述了apk中所有类 文件中内部的结构体。( Describes the internal structure of all the class files in the
.apk file )
mapping.txt : 列出了原始的类、方法和名称与混淆代码间的映射。( Lists the mapping between the original and obfuscated class,
method, and field names. )
seeds.txt : 列出了没有混淆的类和方法。( Lists the classes and members that are not obfuscated )
usage.txt : 列出congapk中删除的代码。( Lists the code that was stripped from the .apk )
1.cmd进入sdk/tools/proguard/bin目录。
2.将混淆后的日志cache_file_name.txt和上文提到的m
4000
apping文件放入此目录中。
3.执行命令:retrace.bat mapping.txt cache_file_name.txt
执行命令前:
Casused by: java.lang.NullPointerException
at com.example.test d.a.c(SourceFile:110)
at com.example.test d.a.c(SourceFile:88)
at com.example.test .activity.CommitFragmentBase.init(SourceFile:1330)
执行命令后:
Casused by: java.lang.NullPointerException
at com.example.test loginActivity.login.setView(SourceFile:110)
at com.example.test dloginActivity.login.setView(SourceFile:88)
at com.example.test .activity.CommitFragmentBase.init(SourceFile:1330)
这样是不是就很清楚了呢?!
原文:http://blog.csdn.net/fwt336/article/details/51896009
代码混淆生成apk之后,项目下面会多出来一个build\outputs\mapping\release文件夹,下面分别解释release文件夹中四个文件的作用。
dump.txt : 描述了apk中所有类 文件中内部的结构体。( Describes the internal structure of all the class files in the
.apk file )
mapping.txt : 列出了原始的类、方法和名称与混淆代码间的映射。( Lists the mapping between the original and obfuscated class,
method, and field names. )
seeds.txt : 列出了没有混淆的类和方法。( Lists the classes and members that are not obfuscated )
usage.txt : 列出congapk中删除的代码。( Lists the code that was stripped from the .apk )
1.cmd进入sdk/tools/proguard/bin目录。
2.将混淆后的日志cache_file_name.txt和上文提到的m
4000
apping文件放入此目录中。
3.执行命令:retrace.bat mapping.txt cache_file_name.txt
执行命令前:
Casused by: java.lang.NullPointerException
at com.example.test d.a.c(SourceFile:110)
at com.example.test d.a.c(SourceFile:88)
at com.example.test .activity.CommitFragmentBase.init(SourceFile:1330)
执行命令后:
Casused by: java.lang.NullPointerException
at com.example.test loginActivity.login.setView(SourceFile:110)
at com.example.test dloginActivity.login.setView(SourceFile:88)
at com.example.test .activity.CommitFragmentBase.init(SourceFile:1330)
这样是不是就很清楚了呢?!
原文:http://blog.csdn.net/fwt336/article/details/51896009
相关文章推荐
- Android studio混淆打包日志 混淆日志 查看
- [Android]查看代码混淆后的日志
- android studio代码混淆后,查看服务器端错误日志方法
- 查看混淆后的日志(转自http://blog.csdn.net/fwt336/article/details/51896009)
- [Android]查看代码混淆后的日志
- 查看混淆后的日志
- android studio代码混淆后,查看服务器端错误日志方法
- tail -f 查看日志筛选并实时显示
- Androidstudio 混淆去掉日志 assumenosideeffects 不起作用
- 日志文件的查看命令
- Windows 日志查看工具
- iOS开发之xcode中查看已发布应用的崩溃日志
- CentOS系统中常用查看日志命令
- Linux使用dmesg查看内存的日志信息
- eclipse启动报错,让查看.metadata/.log日志
- 1git命令的使用,查看git仓库状态,添加文件到git跟踪,git提交,查看git分支,查看git仓库日志信息,切换git分支,解决git分支合并后出现冲突的问题
- Oracle如何查看日志
- 查看数据库事务日志文件
- 如何使用logminer查看日志内容
- Oracle日志文件的管理与查看