First checking of AAPT2. The individual phases of AAPT2 work, but there are some missing pieces. For early testing we are missing: - Need to properly mark file references and include them in package - Need to package into zip Final AAPT for apps we are missing: - Need to crush PNGs - Need to parse 9-patches - Need to validate all of AndroidManifest.xml - Need to write align method to align resource tables for splits. Final AAPT for apps + system we are missing: - Need to handle overlays - Need to store comments for R file - Need to handle --shared-lib (dynamic references too). New AAPT features coming: - Need to import compiled libraries - Name mangling - R file generation for library code Change-Id: I95f8a63581b81a1f424ae6fb2c373c883b72c18d
30 lines
815 B
Plaintext
30 lines
815 B
Plaintext
XML Files
|
|
X Collect declared IDs
|
|
X Build StringPool
|
|
X Flatten
|
|
|
|
Resource Table Operations
|
|
X Build Resource Table (with StringPool) from XML.
|
|
X Modify Resource Table.
|
|
X - Copy and transform resources.
|
|
X - Pre-17/21 attr correction.
|
|
X Perform analysis of types.
|
|
X Flatten.
|
|
X Assign resource IDs.
|
|
X Assign public resource IDs.
|
|
X Merge resource tables
|
|
- Assign private attributes to different typespace.
|
|
- Align resource tables
|
|
|
|
Splits
|
|
- Collect all resources (ids from layouts).
|
|
- Generate resource table from base resources.
|
|
- Generate resource table from individual resources of the required type.
|
|
- Align resource tables (same type/name = same ID).
|
|
|
|
Fat Apk
|
|
X Collect all resources (ids from layouts).
|
|
X Generate resource tables for all configurations.
|
|
- Align individual resource tables.
|
|
- Merge resource tables.
|