mirror of
https://github.com/skylot/jadx.git
synced 2024-11-23 04:39:46 +00:00
8a34d973ff
Some checks are pending
Build Artifacts / build (push) Waiting to run
Build Artifacts / build-win-bundle (push) Waiting to run
Build Test / tests (ubuntu-latest) (push) Waiting to run
Build Test / tests (windows-latest) (push) Waiting to run
CodeQL / Analyze (java) (push) Waiting to run
* fix(gui): fix javadoc issues * feat(gui): export jadx-gui as a library * fix(gui): fix javadoc issues * fix(gui): remove invalid characters for javadoc * add jadx-library also for jadx-cli and jadx-script-ide modules --------- Co-authored-by: Skylot <118523+skylot@users.noreply.github.com> |
||
---|---|---|
.. | ||
examples | ||
jadx-script-ide | ||
jadx-script-plugin | ||
jadx-script-runtime | ||
README.md |
JADX scripting support
❗ Work still in progress! Script API is not stable!
Examples
Check script examples in examples/scripts/
(start with hello
)
Script usage
In jadx-cli
Just add script file as input
In jadx-gui
- Add script file to the project (using
Add files
orNew script
by right-click menu onInputs/Scripts
) - Script will appear in
Inputs/Scripts
section - After script change, you can run it using
Run
button in script editor toolbar or reload whole project (Reload
button in toolbar orF5
). Also, you can enableLive reload
option inFile
menu to reload project automatically on scripts change
Script development
Jadx-gui for now don't support autocompletion, errors highlighting, code navigation and docs,
so the best approach for script editing is to open jadx project in IntelliJ IDEA and write your script in examples/scripts/
folder.
Also, this allows to debug your scripts: for that you need to create run configuration for jadx-cli or jadx-gui
add breakpoints and next run it in debug mode (jadx-gui is preferred because of faster script reload).
Script logs and compilation errors will appear in Log viewer
(try filter for show only script related logs)