❗ Work still in progress! Script API is not stable!
Check script examples in examples/scripts/
(start with hello
)
Just add script file as input
- 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
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)