shwenzhang / AndResGuard

proguard resource for Android by wechat team
Apache License 2.0
8.55k stars 1.54k forks source link

Question: Can this tool be used to obfuscate just the values of some strings file? #526

Open AndroidDeveloperLB opened 1 year ago

AndroidDeveloperLB commented 1 year ago

There are some libraries out there that can do it, but each has its own disadvantage, mainly not supported anymore and not working anymore on various cases: https://github.com/MichaelRocks/paranoid https://github.com/StringCare/AndroidLibrary

Can this library do it? For example, suppose I have this:

<resources>
    <string name="some_important_password">42</string>
</resources>

And I want to reach this in code as normal:

getString(R.string.some_important_password)

Or using a special function:

SomeClass.getString(R.string.some_important_password)

Yet if you try to check the APK, you won't find "42" anywhere, and you might not even find "some_important_password", because both were obfuscated.

Is it possible here?