While reversing some J2ME games like Spyro or Tekken 5 Mobile I have encountered a weird obfuscation where all fields, methods and classes have names like A, a, B, b, Aa, Bb etc.

It's really hard to read source code like that. Example method can look like this:

     public static void a(final boolean b) {
        f.b = b;
        if (!b && f.a != null) {
            try {
            catch (Exception ex) {}
            f.a = null;

Is there a way to restore original names or at least make this code more readable? I would be grateful for any tips.


No there isn't. You'll have to assign meangingful names yourself while reverse engineering.

Just be glad that even with names stripped, Java is far easier to reverse engineer than native binaries.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.