mirror of
https://github.com/kvorschk/Magisk.git
synced 2026-12-04 19:10:47 -05:00
On Headless System User Mode (HSUM) devices (e.g. Android Automotive OS and shared tablets), user 0 is strictly a non-interactive background system user while human users operate as secondary users (user 10+). - Check ro.fw.mu.headless_system_user in daemon_entry and store it on MagiskD. - Enforce MultiuserMode::User on HSUM devices and seed the setting in magisk.db during post-fs-data, avoiding duplicate override logic. - For non-app UIDs (< AID_APP_START), scan all discovered users from /data/user_de to resolve the manager package/UID and broadcast su usage notifications across all users. - Include system UIDs (< 10000) in PolicyDao.fetchAll() so ADB shell (UID 2000) policies can be loaded on secondary users. - Hide the Multiuser Mode setting in the app on HSUM devices. Assisted-by: Gemini 3.8 Flash