如何在我的源代码中从混淆的 ProGuard 类名中找到真正的类名?

如何在我的源代码中从混淆的 ProGuard 类名中找到真正的类名?

问题描述:

我收到了一封来自 Google 的电子邮件,内容涉及TrustManager 的不安全实施唯一的线索是有问题的代码在 com.b.a.af 类中.显然,这是混淆的名称.在我自己的源代码中,我如何从混淆的类名中获取真正的类名.有没有办法查找 ProGuard 所做的映射?谢谢!

I got an email from Google about unsafe implementation of TrustManager with the only clue that the problematic code is in com.b.a.af class. Clearly that's the obfuscated name. How would I get the real class name from that obfuscated class name, in my own source code. Is there any way to lookup the mapping that ProGuard does? Thanks!

如果你有映射,每个类应该是这样的:

If you have the mappings each class should look like this:

me.vader.event.EventMouseClick -> f:
    int buttonID -> q
    boolean mouseDown -> r
    void <init>() -> <init>
    void fire(int,boolean) -> a
    int getButtonID() -> n

您可以在约定之前 -> 之后看到明显的内容.所以找到原来的名字应该很容易.

You can see the obvious before -> after convention. So finding the original names should be really easy.