Optimize Android DEX/ART compilations dynamically based on your device hardware.
DexForge is a root module that optimizes your apps by picking the best DEX compiler filter for your specific hardware.
- Tailored performance: Automatically selects the best compiler filter (
speed,speed-profile, orverify/quicken) based on your device's RAM and app usage stats. - Safety guards: Checks battery level and storage space before running to prevent errors.
- Interactive cache reset: Lets you optionally purge compilation caches before optimization to start fresh.
- Download the latest
DexForge.zipfrom Releases. - Flash it using your root manager (Magisk, KernelSU, or APatch).
- Reboot so the module can start working in the background.
- Open your root manager and press the Action button on the DexForge module.
Warning
If you clear the cache, compilation on some (and eventually all) devices will take significantly longer. Do it at your own discretion.
- Cache Menu: When it starts, it asks you a question. Press Volume UP to clear your old caches first (clean start). Press Volume DOWN (or wait 10 seconds) to keep your old caches and just update them.
- You can read the results later at:
/data/adb/modules/DexForge/dexforge.log
- Want to see what DexForge will do without actually changing anything? Open a root terminal (like Termux) and type:
su /data/adb/modules/DexForge/action.sh --dry-run
- Flagship phones (6GB+ RAM): Optimizes all apps for maximum
speed. Processes apps one by one to avoid freezing the phone. If you clear the cache, it checks your app usage and sets rarely used apps tospeed-profileto save time. If you don't clear cache, it skips usage checks to speed things up. - Mid-range phones (3GB to 6GB RAM): Checks your app usage to pick the best setup. Most used apps get
speed, normal apps getspeed-profile, and unused apps getverify(orquickenon older Android). This prevents the phone from running out of memory or storage. - Entry-level phones (3GB RAM or less): Limits optimization to
speed-profilefor your top apps, andverifyorquickenfor everything else. Saves CPU power and storage space.
If you have 8GB of RAM, it doesn't mean your phone is actually a "flagship". This is just for better classification :)
- Storage check: If you have less than 512MB free space, it stops running. This protects your phone from getting stuck in a bootloop.
- Battery check: If your phone is not charging and the battery is under 15%, it stops running to prevent sudden shutdowns.
- CPU core control: After your phone finishes booting, a background script forces the system's background compiler to only use the small, energy-efficient CPU cores. This prevents overheating or lag while you use your phone.
| Requirement | Details |
|---|---|
| Android | 7.0+ (API 24+) |
| Storage | Minimum 512MB free space on /data partition |
| Battery | Minimum 15% charge (waived if charging) |
| Root | Magisk v20.4+, KernelSU, or APatch |
This project is licensed under the MIT License. See LICENSE for details.
