Renaming only classes specified in mapping file

Suppose that I have a jar file where I wish to apply ONLY the renaming actions specified in a mapping file. It is not convenient to create keep rules, as they would effectively have to be the inverse of the mapping within the domain of the Jar contents, which are quite expansive.

Is there a way that one can coax proguard into “obfuscating” only the things specified in the mapping file?

Hi @RomanHargrave,

Welcome to the community!

Only renaming the names specified in a mapping file is something we do not provide. If this would be possible, it would become very obvious to an attacker what parts of the code contain security sensitive data (these names will be the obfuscated ones).

Something we do provide is the -applymapping functionality. Classes and class members that are listed in the mapping file receive the names specified along with them.

Please let me know if you have any other questions.

Kind regards,

Ewout

1 Like