ObliviOS Developer portal Project site

Home / Decisions / ADR-074

Add UserManager.isMainForUiDisplay(int) display-only primitive (frameworks/base patch 0031).

Accepted, recorded 3 September 2026.

Decision
ADR-074
Date
2026-09-03
Status
AcceptedAccepted
Mentions
ADR-065
Mentioned by
ADR-076, ADR-077, ADR-078, ADR-081

1Decision

Add UserManager.isMainForUiDisplay(int) display-only primitive (frameworks/base patch 0031).

2Why and evidence

Generalizes the ADR-065 Wallet-tile precedent per the owner-approved 2026-09-03 design (docs/superpowers/specs/2026-09-03-duress-decoy-primary-profile-visual-parity-design.md): a single shared, current-user-keyed helper for display-only main/system-user spoofing, reused by Tasks 2-4 instead of duplicating detection logic per call site.

3Consequences

No real capability check changes; the method is additive and unused by any call site until Tasks 2-4 land.

4Review when

A future call site needs admin-specific (not main/system-user-equivalent) display spoofing not covered by this primitive.

Read from docs/governance/decision-log.md, entry ADR-074.