Playground¶
The repository ships a runnable Jupyter notebook that walks the whole engine against a real app: examples/notebooks/playground.ipynb.
Run it¶
pip install -e .[playground]
REAPK_TEST_APK=/path/to/app.apk jupyter lab examples/notebooks/playground.ipynb
Point REAPK_TEST_APK at an app you are authorized to test. Every cell is guarded, so the notebook still runs top to bottom without one (it just prints a reminder).
What it covers¶
- What a DEX is, read live from the app's header and pools.
- The constant pools.
- Disassembling a method to smali.
- A byte-identical assemble round trip, scanned across real methods.
- Force-return patching a method.
- SSL-pinning bypass across every dex, then repackage and re-sign.
- Interning a new string with a whole-DEX rewrite.
- A full smali listing with
dump_dex.
If import reapk fails inside the notebook, install it into the kernel from a cell with %pip install -e "<path-to-repo>", then restart the kernel.