Skip to content

Disambiguate obfuscated/non-obfuscated names #718

@justhecuke

Description

@justhecuke

My team and I have been developing passes for use internally but we commonly hit an issue where we interact with deobfuscated names (perhaps from a hardcoded list, usage.txt from proguard, or other sources) but then use them with names retrieved from DexClass or DexType reachable from scope which are generally obfuscated. This has caused many problems.

Is this also an issue for others? And does anyone have ideas for a fix?

My idea is to create two different types for obfuscated and deobfuscated strings and have all names derived from the APK be instances of obfuscated strings and where APIs that read deobfuscated names (ones that developers write for input names) use the deobfuscated type.

I'm willing to do the work to refactor, but this would be a huge change and I wanted to get feedback before starting work on what may be a doomed project.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions