BoostMultiDex is a specialized Android-library created by ByteDance to address a long-standing performance and user-experience problem on older Android devices (specifically Android 4.x and below, i.e. SDK < 21), where loading multiple dex files after installation or upgrade can lead to extremely long “black-screen” freeze times during first startup. Instead of relying on the standard Android MultiDex mechanism, BoostMultiDex reworks the loading strategy by tapping into hidden Dalvik VM internals so that original DEX bytecode can be loaded directly, bypassing costly ODEX generation. It adopts a multi-stage loading approach (DEX bytecode → DEX file → ODEX file) to pick the fastest viable route at runtime, and optionally performs optimization (OPT) in a separate process with interruption/recovery support — minimizing startup time and preserving stability.
Features
- Direct loading of original DEX bytecode to avoid costly ODEX generation
- Multi-stage load path (bytecode → DEX → ODEX) to choose fastest runtime scenario
- Separate-process optimization (OPT) with capability to interrupt and resume safely
- Significant reduction (up to ~80% or more) of black-screen / cold-start time on first launch / upgrade
- Seamless integration: simple drop-in install via Gradle and initialization in Application.attachBaseContext
- Compatibility with wide range of legacy Android devices (SDK < 21), enabling support for older, low-end phones