- Decision
- ADR-213
- Date
- 2026-11-03
- Status
- ProposedProposed (owner's decision 2026-11-03 after
GRB-017failed; patch landed on the build tree as10000dab31e8(2026-11-03), not built, not run on a device) - Part
- Duress Unlock
- Mentions
- ADR-067, ADR-085
1Decision
Amend ADR-085 (Component A): a locked device never offers a user switch, with or without a decoy. UserManagerService.isUserSwitcherEnabled returns false while the keyguard shows; the hasDecoyUser() condition and its helper are removed. Patch frameworks-base/0007 of credential/duress-unlock-decoy.
2Why and evidence
Owner 2026-11-03 (chat): switching users from the lock screen must not be possible at all, also without grab detection. Cause of the failure [measured: lynx 2026110203, logcat]: after a grab lock the owner switched from the lock screen to a second user without a secure lock screen at 15:59:11 and init logged auto_reboot: on_device_unlocked: stopped timer at 15:59:12, so the 60 second restart did not happen and the device stayed unlocked in memory.
ADR-085 kept stock lock-screen switching for a device without a decoy on purpose (the owner could create an ordinary second user). The grab lock and the restart timer make that choice a hole, and a lock-screen switcher is a visible second profile before any credential is entered.
Rejected: refusing switchUser only while grab_detection_triggered is set (leaves the same switch open without a grab lock, against the owner's wish); hiding only the bouncer switcher (the six surfaces of ADR-067 already share this one method).
3Consequences
The owner with an ordinary second user can switch only after unlocking. The method is display-only (UserController.switchUser does not consult it), so a caller that may switch users still can; enforcement at switchUser is not built. The tests in UserManagerServiceTest change (locked without a decoy gives false).
4Review when
Accepted when GRB-017 passes on a device and the lock screen, notification shade and power menu show no switcher; reopen if a locked-screen path that skips isUserSwitcherEnabled is found.
Read from docs/governance/decision-log.md, entry ADR-213.