Booster is a modular Gradle-based toolkit for Android apps that applies bytecode transforms during builds to address performance, stability, and package size issues without changing application source.
Overview
Booster targets mobile applications whose complexity grows performance, stability, and binary-size problems. It plugs into the Android Gradle Plugin build and registers transformers only when at least one booster-transform module or a custom transformer is on the buildscript classpath, so a project without those modules is unchanged.
Optional modules cover performance checks such as detecting calls that may block the UI thread, thread management for third-party SDK threads, fixes for platform bugs like Toast crashes on certain API levels, and package shrinking steps such as resource index inlining and compression. The website describes non-intrusive global optimization, compatibility with Android Gradle Plugin 3.0 and above, SPI-based extensibility, and support for both ASM and Javassist bytecode backends.
Teams typically add only the modules that address their specific problems. Booster can run decoupled from Gradle in a standalone Java setup. From version 5.3 it can transform classes via AGP instrumentation or scoped-artifacts, trading whole-program visibility against incremental build behavior depending on transformer scope declarations.
Prerequisites stated in the documentation include JDK 8 or newer and matching Gradle and Android Gradle Plugin versions for the Booster release in use.
Key features
- Gradle Android build integration
- Modular booster-transform plugins
- Bytecode transformation via SPI
- Performance issue detection
- Thread usage optimization
- Android platform bug workarounds
- Package size reduction transforms
- ASM and Javassist support
Use cases
- Reduce application package size
- Find main-thread blocking API usage
- Tame excess third-party SDK threads
- Fix known Android Toast crash paths
- Optimize only needed transform modules