- Decision
- ADR-076
- Date
- 2026-09-03
- Status
- AcceptedAccepted
- Part
- Duress Unlock
- Mentions
- ADR-074
1Decision
Label the decoy's own row as "Owner" in Settings ▸ Users by consuming isMainForUiDisplay in UserSettings.java's per-row summary logic (packages/apps/Settings patch 0008).
2Why and evidence
Task 3 of the same plan (docs/superpowers/specs/2026-09-03-duress-decoy-primary-profile-visual-parity-design.md) closes a real, audit-confirmed cosmetic gap: Settings ▸ Users already shows only the decoy's own row (via the already-landed getUsersForUiDisplay fix, packages/apps/Settings 0004), but that row's summary was decided by if (user.isMain()) "Owner" else if (user.isAdmin()) "Admin" else null — since the decoy is neither main nor admin, its own (only visible) row showed no summary at all, unlike a genuine single-owner phone's row, which always reads "Owner".
Fixed with a one-line condition change: if (user.isMain() \|\| mUserManager.isMainForUiDisplay(user.id)); the isAdmin() and final null-summary branches are untouched. Real current HEAD (79f050ee30fde0a7f3d835b0cabcbf3dd1a2d4e7) and the exact quoted line-1395 block were both re-confirmed against the live build-server source before editing, matching the brief exactly.
Landed via git am --3way (clean, no conflicts) at real branch SHA 885b048dd3c80cefb4e47dde2332abb058edad47. A fast m Settings build (OUT_DIR=out-preflight) confirmed frameworks/base's 0031 (isMainForUiDisplay, ADR-074) is genuinely present and resolvable from this repository: ninja: 6m53.25s Build Succeeded: 166 steps, #### build completed successfully (06:58) ####, no unresolved-symbol failure.
3Consequences
No real capability check changes — this is a display-only label, using the same isMainForUiDisplay primitive already accepted in ADR-074/075. Not yet dynamically validated (compile-time only, matching this whole visual-parity plan's current stage); deferred to a future consolidated hardware-validation round alongside Tasks 1, 2, and 4.
4Review when
A future refactor of UserSettings.java's per-row summary logic should preserve the isMainForUiDisplay check as an isMain() alternative, not a replacement, and keep the isAdmin()/null branches' ordering unchanged.
Read from docs/governance/decision-log.md, entry ADR-076.