Phone OS architecture

How the chassis inputs flow through the system state into what you see on screen. Hardware events feed the OS kernel state, which drives every app and the status bar.

Hardware Power / sleep key unlock · sleep · wake Volume rocker ±10% with HUD Aux port (3.5mm) headphone detect Charging port power in → battery System state — OS kernel Display state locked / on / asleep Audio state volume · aux route Battery model level · charging · mode Radio state wi-fi · airplane Compositor — UI shell Status bar clock · battery · wi-fi · aux Lock · home · app views swipe + recents switcher Notification · control center pull-down overlays Apps Battery saver Calculator Demo apps (messages, maps, music, …)
Event / control flow Power & battery data flow Display / input Radio / aux