badoo / hprof-tools

Tool for deobfuscating memory dump files
MIT License
129 stars 26 forks source link

Deobfuscation of array types doesn't seem to work #10

Closed mwdevine closed 7 years ago

mwdevine commented 7 years ago

Problem: When the deobfuscator executable tries to deobfuscate an obfuscated array class, it fails to find a mapping and leaves the type unmodified.

Steps to reproduce:

  1. Build a new Android project with Proguard obfuscation with a default activity
  2. Add a new class (e.g. "Foo")
  3. Add an array (i.e. "Foo[]") member variable of the new class to the activity.
  4. Build and run the app.
  5. Force a heap dump.
  6. Deobfuscate the heap dump.
  7. Notice that the array type was not deobufscated.

Expected result:

  1. The array type should be deobfuscated based on the array component type's mapping.

Note: I already have a patch in my forked repo. I will send a pull request to follow up.