跪拜 Guibai
← All articles
Android

AIW: A Free Android Performance Ebook That Pins Every Claim to AOSP Source

By Gracker ·
Read original on juejin.cn ↗ Google Translate ↗ Alt translation

A performance reference that maps each claim to a specific AOSP tag gives Android engineers a checkable alternative to generic advice, but the Android 17 baseline means readers still have to verify findings against their own OEM kernels and device behavior.

Summary

AIW organizes Android internals into five parts: system mechanisms (architecture, rendering, input, memory, CPU scheduling, storage I/O), performance issues (jank, ANR, memory, power, network, render pipeline), tools and methodology (Perfetto, APM), vendor/OEM differences, and app-level practices. Each mechanism section cites AOSP classes or file paths, with the current platform baseline pinned to android-17.0.0_r1 and the kernel baseline to android17-6.18-2026-06_r6.

The book deliberately flattens the usual fragmentation problem. It pairs symptoms with concrete code paths and tooling: a slow start is broken into process creation, initialization, first frame, and business-available timestamps, each tied to chapters that can be cross-read with Perfetto. It warns that rendering activity doesn't mean a frame is displayed, and that low CPU usage doesn't rule out thread queues. The EPUB is rebuilt weekly on GitHub Releases, and a separate Knowledge Pack makes the 26 chapters searchable with version tags for use inside SmartPerfetto. Content is licensed CC BY-NC-SA 4.0, with commercial use requiring separate permission.

Takeaways
— AIW has 5 parts and 26 chapters, covering system mechanisms, performance issues, tools, vendor optimizations, and app-level practices.
— The current platform baseline is android-17.0.0_r1; the kernel baseline is Android Common Kernel android17-6.18-2026-06_r6.
— The ebook is free online and as EPUB; GitHub Releases publishes a weekly version (e.g., ebook-2026-11-15).
— A public Knowledge Pack for SmartPerfetto makes the 26 chapters searchable and versioned, but it does not substitute for current trace evidence.
— Content is licensed CC BY-NC-SA 4.0; commercial use (sales, paid training, embedding in paid products) requires separate written permission.
— Chapter cross-references: startup (ch21, ch1, ch14), scroll jank (ch3, ch7, ch13), memory (ch4, ch10, ch23), APM evidence (ch17, ch26).
— The book is in alpha; full English text is planned after v1.0.
— Readers can file Issues or PRs with version, source path, and paragraph when the text mismatches AOSP source.
Conclusions

Pinning the entire book to one AOSP tag makes the advice checkable but also dated: by the time Android 17 devices are widespread, the next version's code paths will have diverged, so readers still need to verify against their own kernels.

The repeated examples of symptoms not mapping to causes (rendering activity without a displayed frame, low CPU with queued threads) point to a core truth: Android performance debugging is about correlating asynchronous stages, not reading a single metric.

Inviting readers to correct the text via Issues and PRs is a verification loop that most published performance books lack, and it aligns with the warning that correlation is not causation.

The book's structure assumes readers already have Android development or performance testing experience; it does not aim to teach first-time app developers.

Concepts & terms
AVF
Android Virtualization Framework, the platform layer that manages virtual machines on Android devices, including isolated execution environments.
pKVM
Protected KVM, a Linux kernel feature that provides hardware-isolated virtual machines within Android's KVM-based hypervisor, used for security-sensitive workloads.
Knowledge Pack
A searchable, versioned snapshot of the AIW book's 26 chapters, designed to be referenced during trace analysis and usable by tools like SmartPerfetto.
Source: juejin.cn ↗ Google Translate ↗ Backup ↗