How can i change xml file name using proGuard like 00qs12.xml

Change xml file name using proGuard like 00qs12.xml
Help me i will try almost 2 days but no solution yet.

2 Likes

Hi,

ProGuard’s obfuscation possibilities for resources are fairly limited as it focuses on obfuscating the bytecode. If your project contains resource files it may be necessary to change their names and/or content to match the obfuscated names in the code. This can be achieved as described in the ProGuard manual here: ProGuard Manual: Examples | Guardsquare

DexGuard on the other hand would be able to obfuscate names of resource and/or asset files too for Android applications since DexGuard processes all parts of the application.

2 Likes

Hi, @jonas.gijbels Can you please tell me which kind of rules add in proguard_project.txt for XML obfuscated?

I have read & applied this same rule but there is no effect.
(ProGuard Manual: Examples | Guardsquare)

Any update on this ?

Hello,
Can you share the rule you added and what the result is ?

1 Like

Hi, @naoufal.dkier I have added ProGuard Manual: Examples | Guardsquare

-adaptresourcefilenames    **.properties,**.gif,**.jpg
-adaptresourcefilecontents **.properties,META-INF/MANIFEST.MF

this link rules.
The result is not applied it is shown as like activity_main.xml

Any update on this? @naoufal.dkier

Hello,
Proguard does not handle resource file renaming per se…these commands only rename code elements references within the files, not the files themselves…