- Decision
- ADR-075
- Date
- 2026-09-03
- Status
- AcceptedAccepted
- Part
- Duress Unlock
- Mentioned by
- ADR-080
1Decision
Suppress the QS footer's "End session" affordance for a decoy session by consuming isMainForUiDisplay in UserManagerService.getUserLogoutability() (frameworks/base patch 0032).
2Why and evidence
Task 2 of the same plan closes a genuine, 2026-09-03-audit-confirmed gap: getUserLogoutability() only ever exempted the literal userId == UserHandle.USER_SYSTEM from "End session," so a decoy user (always a non-zero ID) never tripped it and could see and use an affordance the real single-owner profile never sees. Unrelated to isMain()/isAdminUser(); no prior fix in this feature touched this method. The plan's cited line number (3426) predated 0031 shifting the file and was re-derived live via grep -n rather than trusted, landing the real edit at line 3458.
3Consequences
getUserSwitchability(), a separate real capability check governing whether the decoy session can actually be switched away from, is untouched — only the "End session" UI affordance's visibility changes.
4Review when
A future refactor of getUserLogoutability() should preserve the isMainForUiDisplay check's position between the USER_SYSTEM check and the getUserSwitchability check.
Read from docs/governance/decision-log.md, entry ADR-075.