BraDex Injector: Automating Android APK Modification & Bytecode Injection BraDex is a lightweight, on-device Android utility written in Kotlin designed to automate reverse engineering and bytecode manipulation workflows. It allows developers to decompile, inject custom Smali code, reassemble, and sign APK files directly on an Android device. ✨ Key Features Smart DEX Shard Scanning: Automatically traverses multiple DEX shards (classes.dex, classes2.dex, etc.) using dexlib2 to locate the descriptor of the targeted Activity class. On-Device Decompilation & Assembly: Integrates Baksmali and Smali engines to flawlessly convert compiled bytecode into readable Smali structures and compile it back using multi-threaded execution. Automated Smali Patch Engine: Parses the target Smali file to locate the onCreate(Landroid/os/Bundle;)V method. Performs Registers Bumping (safely increments .registers count) to ensure the runtime stack has enough registers for the injected code. Structurally injects a custom invoke-static routine right after the invoke-super call. DEX Re-bundling & ZIP Merging: Supports merging custom Smali source trees from an external ZIP package into the core output. Reflective APK Signer: Leverages the official com.android.apksig library via reflection to inject certificates (testkey.pk8 / x509.pem) and fully sign the patched APK with V1, V2, and V3 signing schemes, ensuring immediate deployability.
©2026 Sketchub | User Policy