Tagged articles
3 articles
Page 1 of 1
vivo Internet Technology
vivo Internet Technology
Oct 20, 2021 · Mobile Development

Understanding AAPT2: Android Resource Compilation and the FLAT File Format

AAPT2, the default Android resource compiler, splits resource processing into compile and link stages, converting XML, PNG, and other files into binary FLAT containers that embed both raw data and metadata, enabling incremental builds, configurable options, and efficient merging into the final APK’s resources.arsc and R.java.

AAPT2AndroidIncremental Build
0 likes · 25 min read
Understanding AAPT2: Android Resource Compilation and the FLAT File Format
Tencent Music Tech Team
Tencent Music Tech Team
Nov 6, 2020 · Mobile Development

Design and Implementation of an Incremental Compilation Component for Android Projects

The team built a low‑intrusion Gradle plugin that detects changed source and resource files, performs precise dependency analysis, leverages aapt2 for incremental resource compilation, and injects updated Dex and assets into the running app, cutting full Android builds from 418 seconds to 13 seconds and boosting daily developer productivity on large projects such as QQ Music.

AndroidBuild OptimizationDynamic Loading
0 likes · 23 min read
Design and Implementation of an Incremental Compilation Component for Android Projects