Android App Size at Scale with Project Bonsai
Mar 1, 2024Nguyen Van Minh

Summary
This post details the 'Project Bonsai' initiative to reduce Android app size. It outlines the strategy of Measurement, Reduction, and Containment. Key technical contributions include the development of a custom analytics tool 'App Sizer' for detailed app binary analysis, which integrates with Grab's CI system and sends data to Grafana for monitoring device-specific download size, component breakdown, team/module/library contributions, and large files. For reduction, the post highlights optimization of DEX file size by addressing transitive R classes and refining resource management. Containment strategies are mentioned as long-term solutions.