简体   繁体   中英

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

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?

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM