App enters background应用进入后台
importance · process state
03 / Diagnostic logger诊断记录
Diagnostic logger系统诊断记录
Observe the system. Record the evidence.观察系统,记录证据。
by YubeGreenYubeGreen 制作
SESSION24—08—31 / 02:16
Position定位
Luonnatar
Unraveller析构万理
A diagnostic tool should not keep the app alive or alter the test environment. Doing so would contaminate the evidence it is meant to collect.诊断工具不应主动保活,也不应改变测试环境;否则,它会污染自己试图收集的证据。
Timeline时间轴
The aim is not to guess why Android stopped a background process. It is to collect enough ordered evidence to make the next analysis grounded.目标不是猜测 Android 为什么停止了后台进程,而是收集足够多、顺序明确的证据,让之后的分析有所依据。
importance · process state
doze · freeze · suspend
network · VPN · route
GMS · FCM · notification timing
Evidence证据
Wake-related evidence and device power transitions.唤醒相关证据与设备电源状态变化。
The states surrounding delayed background work.围绕后台任务延迟发生的系统状态。
Connectivity and route changes in the same timeline.在同一时间轴中记录连接与路由变化。
Arrival, handling, and visible notification timing.消息到达、处理与通知可见时间。
Principle原则
Structured, timestamped, and intentionally quiet: a record for understanding background behavior after it happens.结构化、带时间戳,并且刻意保持安静:为事后理解后台行为留下记录。
Available on GitHub.已在 GitHub 提供。