Skip to content

fix(gui): describe deobfuscation whitelist as space separated in tooltip - #3030

Merged
skylot merged 1 commit into
skylot:masterfrom
protonnegativo:fix/deobf-whitelist-tooltip
Oct 24, 2026
Merged

skylot merged 1 commit into
skylot:masterfrom
protonnegativo:fix/deobf-whitelist-tooltip

Conversation

@protonnegativo

@protonnegativo protonnegativo commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

❗ Please review the guidelines for contributing

Description

The tooltip for "Exclude packages and classes from deobfuscation" says the list is ':' separated, but the value is split on spaces:

  • JadxCLIArgs.toJadxArgs(): args.setDeobfuscationWhitelist(Arrays.asList(deobfuscationWhitelistStr.split(" ")));. The GUI goes through the same method (JadxSettings.toJadxArgs() -> JadxSettingsData extends JadxGUIArgs extends JadxCLIArgs).
  • DeobfWhitelist.DEFAULT_STR = Utils.listToString(DEFAULT_LIST, " "), so the edit dialog already shows the default entries separated by spaces.
  • --deobf-whitelist help: "space separated list of classes (full name) and packages (ends with '.*') ...".

The ':' wording dates from #2040; the separator was changed to a space in the follow-up refactor (a989fa7), and the tooltip was not updated. A user who follows the tooltip and enters a.b.*:c.D gets one entry, which DeobfWhitelist.init() treats as a class name (it doesn't end with .*), so neither the package nor the class is excluded.

Changes, all on line 328 of the i18n files:

  • en_US: ':' separated -> space separated.
  • es_ES, id_ID, ko_KR, pt_BR: the commented copy of the English text updated to match.

The translated tooltips (de_DE, ru_RU, zh_CN, zh_TW) still mention ':'; I left them for translators rather than guess the wording.

Tested: ./gradlew :jadx-gui:test --tests 'jadx.gui.TestI18n' and ./gradlew spotlessCheck pass. The full ./gradlew clean build dist wasn't run locally; the change is text-only in .properties files.

The whitelist string is split on spaces (JadxCLIArgs.toJadxArgs), and
the CLI help already says "space separated", but the GUI tooltip still
said ':' separated, from before the separator was changed.
@protonnegativo
protonnegativo force-pushed the fix/deobf-whitelist-tooltip branch from ca37542 to 8f28885 Compare October 24, 2026 03:35
@protonnegativo
protonnegativo marked this pull request as ready for review October 24, 2026 03:40

@skylot skylot left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice. Thanks for notice 👍

@skylot
skylot merged commit fcdaabc into skylot:master Oct 24, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants