This document summarizes Android resource compilation and the overlay mechanism. It discusses: 1. How the aapt tool compiles resources into a Resources.arsc file which stores resource IDs, and generates R.java with resource ID constants. 2. The structure of compiled binary XML files and Resources.arsc. 3. The static and dynamic overlay mechanisms. Static overlay places additional resources in overlay directories, while dynamic overlay uses idmap files to map resource IDs at runtime. 4. Recommends using static overlay for stability, avoiding new compilation issues when rebasing AOSP. It suggests always adding new resources to the overlay rather than AOSP.