简体   繁体   中英

build.gradle is secured from decompilation?

It is very easy to decompile the code and code is not secured even with the Proguard.

What I required is to secure "key" in the app. Is build.gradle secured ? can it be decompiled ?

buildConfigField "String", "Key", "\"1234567890\""

Update

as per commonsware's answer I got that it's not secured ? is there any other way I can manage this ?

Is build.gradle secured ?

build.gradle is not packaged into the APK.

The specific Gradle for Android statement you have in your question is adding a field to the code-generated BuildConfig Java class. This is handled like any other Java class from a code obfuscation standpoint.

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