Skip to content

[core] Add built-in types to RESERVED_NAMES #2313

Open
@nissa-seru

Description

@nissa-seru

Issue details

I would recommend adding built-in types to the RESERVED_NAMES constant in NameMapper, such that jadx will rename identifiers comprised of these strings. They are not valid user-assigned identifiers (due to the name collision), and are attractive obfuscation remaps due to the issues that they can cause. Note that jadx-gui rename action in editor does not work for identifiers that collide with built-in type names (the right-click rename in folder view must be used.)

Sharing my recommended list in "Relevant log output or stacktrace field" of this form.

Relevant log output or stacktrace

"Object",
              "String",
              "Integer",
              "Long",
              "Double",
              "Float",
              "Boolean",
              "Character",
              "Byte",
              "Short",
              "Void",
              "Class",
              "Enum",
              "Throwable",
              "Exception",
              "Error",
              "Thread",
              "Runnable",
              "System",
              "Math",
              "StringBuilder",
              "StringBuffer",
              "Array",
              "List",
              "Map",
              "Set",
              "HashMap",
              "HashSet",
              "LinkedList",
              "Arrays",
              "Collections"

Provide sample and class/method full name

N/A

Jadx version

Clone of master

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions