~/talk

How the Android Framework Monitors, Processes, and Triggers ANRs

Talkat droidcon London 2022 · 2022-10-27..10-28· [android, observability]
links:none on file
slides:none on file

Android’s framework starts a watchdog whenever work is scheduled and writes a trace to /data/anr via ANRHelper → ProcessRecord → AppErrors when thresholds are exceeded: activity input dispatch at 5 seconds input threshold, broadcast receivers at 10s, services at 10s/20s/200s depending on type, and content providers if you don’t return mime type within getProviderMimeType 1s (use the async variant). Firebase Crashlytics uses ApplicationExitInfo (Android 11+), Play Console uses on-device trace files, ANRs are discarded with a debugger attached or if a process is exiting, and Google counts bad behavior against a 0.47% Play Console threshold.

AI-written summary · about

  1. 0:00Introduction to ANRs
  2. 3:38Current ANR data limitations
  3. 9:40How ANRs are triggered
  4. 16:04Content provider ANRs
  5. 17:07Component overload and ANRs
  6. 19:36Android framework ANR collection
  7. 22:49Better ANR debugging approaches
  8. 27:02Key takeaways and summary
  9. 28:49Q&A and closing
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.