ClaudiuGeorgiu / Obfuscapk

An automatic obfuscation tool for Android apps that works in a black-box fashion, supports advanced obfuscation features and has a modular architecture easily extensible with new techniques
MIT License
1.09k stars 285 forks source link

Produce an obfuscation mapping file #122

Closed petrdvorak closed 9 months ago

petrdvorak commented 2 years ago

To simplify a crash log analysis during the app operation, the tool should produce a mapping file (mapping.txt) alongside the resulting obfuscated application. Since the app may already be obfuscated with tools like R8 or Proguard, additional feature could be combining the original mapping file with the results of your obfuscations.

Changes would then consist of introducing new arguments:

--original-mapping-file [mapping.txt]      ... path to the original obfuscation mapping file
--mapping-file [mapping2.txt]              ... path to the resulting, combined mapping file
ClaudiuGeorgiu commented 2 years ago

Hi @petrdvorak, thanks for the suggestion! This could be very useful when analyzing the error messages of an obfuscated app.

lovemhjn commented 2 years ago

Hi @ClaudiuGeorgiu , Do you have future plans of generating a mapping file along with obfuscated apk. it will be really helpful to trace the crashes from the crashlytics dashboard in the production app. Thanks