Tag

AAPT2

0 views collected around this technical thread.

Baidu App Technology
Baidu App Technology
Aug 2, 2022 · Mobile Development

Baidu App Android APK Resource Optimization Practices

The article details Baidu App’s third‑stage Android APK size reduction, explaining the res/ and assets structure, reviewing AGP’s OptimizeResources, ShrinkResources and new flags, and describing a custom AAPT2‑based tool that shortens paths and filenames, removes extensions, collapses names, uses sparse encoding, integrates third‑party guards and image‑compression techniques to significantly shrink the package.

AAPT2APKAndroid
0 likes · 19 min read
Baidu App Android APK Resource Optimization Practices
ByteDance Terminal Technology
ByteDance Terminal Technology
Dec 17, 2021 · Mobile Development

Solving Android Plugin Resource ID Conflicts with a No‑Resource‑Fixation Approach

This article explains the problem of resource ID mismatches when Android plugins use host resources, reviews existing resource‑fixation solutions, and presents a novel “no‑resource‑fixation” method that dynamically maps host IDs at compile‑time and runtime to keep plugins stable across host updates.

AAPT2AndroidResource Management
0 likes · 26 min read
Solving Android Plugin Resource ID Conflicts with a No‑Resource‑Fixation Approach
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.

AAPT2AndroidBuild Tools
0 likes · 25 min read
Understanding AAPT2: Android Resource Compilation and the FLAT File Format