can Build Types resources be visible while reverse engineering the app?

随声附和 提交于 2019-12-25 03:29:15

问题


I have two build variant in my Application, one is release and other is debug.

In a release, I have set my https URL. In Debug, I have set my local URL for testing purpose.

is it possible if I upload my release variant to PlayStore that somebody can reverse engineered it and see my Local testing URL? I dont want to expose my testing URL?


回答1:


If you just use flag to switch running environment and sorce code contain the local testing URL, it'll able to find in the disassembled smali files even if you obfuscated it

You can try to split building const from resource using gradle, ref here: Change constant values when building a release edition



来源:https://stackoverflow.com/questions/53232057/can-build-types-resources-be-visible-while-reverse-engineering-the-app

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