How to disable non-ASCII characters in dexguard obfuscation?

拈花ヽ惹草 提交于 2019-12-07 11:57:06

问题


We are using Crittercism to analyze our app-crashes, but since we also use DexGuard with default obfuscation-options, Crittercism is unable to de-obfuscate the stacktraces with the mappings.txt generated by DexGuard.

So, my question is simple:

How can I disable Non-ASCII characters for DexGuard-obfuscation?

We are using the Gradle-buildsystem btw.


回答1:


Curious what led you to think that disabling Non-ASCII characters would fix Crittercism's handling of DexGuard-obfuscated stacktraces? AFAIK they would need to use the ReTrace.jar that's part of DexGuard not ProGuard (sorry i don't know if it's possible to turn off Non-ASCII chars)

To me this seems like an issue with Crittercism, do they support DexGuard? I asked their support team (support@crittercism.com) ~1yr ago about DexGuard support and it wasn't even on their roadmap.

If you're not tied to Crittercism I know Crashlytics and Hockeyapp support DexGuard (it was one of the reasons I switched Crashlytics).

update

Randomly I came across this today. You can override DexGuard's default obfuscation dictionary and define ASCII only characters.

define in your dexguard-project.txt

-obfuscationdictionary dictionary.txt
-classobfuscationdictionary classdictionary.txt


来源:https://stackoverflow.com/questions/29971536/how-to-disable-non-ascii-characters-in-dexguard-obfuscation

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!