Skip to content

Give the lock screen robotOS's cover, say "screen lock", fill doc gaps - #62

Merged
windoze95 merged 2 commits into
mainfrom
screen-lock-docs
Oct 13, 2026
Merged

windoze95 merged 2 commits into
mainfrom
screen-lock-docs

Conversation

@windoze95

@windoze95 windoze95 commented Oct 13, 2026 •

Copy link
Copy Markdown
Owner

Follow-up to #61 after setting a screen lock on a real R1, where the owner chose a pattern.

  • Lock-screen look: Android's lock screen now wears robotOS's recovery cover: the robot mark glowing on black, rendered by LogoGlow.still(). LockScreenLook sets it as the lock and home wallpaper once per design version, so a wallpaper the owner picks later is never replaced.
  • Wording: a pattern or password works as well as a PIN. The recovery screen now offers Open with your screen lock, and the Android confirmation text, status line, event log entry and host settings notes match.
  • INSTALL.md "Lock it with a screen lock" fixes what the first version got wrong or left out:
    • Lock after screen timeout: 5 minutes. Android offers 5, 10 or 30, not the 15 the docs asked for, and the shorter delay is safer.
    • Power button instantly locks: why it must be off. The R1's button is its power button, and robotOS's tap-to-sleep counts as a press.
    • What device admin is used for, and how to turn it off.
    • How to check the setup took: Host & devices' protection line.
    • Limits on a rooted R1 with an unlocked bootloader.
    • The new lock-screen look.
  • HUB.md: the protection paragraph matches.

Checked on the R1, with the pattern set:

  • A sleep-key sleep followed by a wake 3 s later opened without the lock screen.
  • With the screen off, Android locked itself after exactly 5 minutes.

The locked-button check needs a physical press, because SELinux blocks injecting into the button's input device from adb.

389 Android tests pass, 2 new (lock look applied once; lock-screen snapshot). Lint has no new warnings. Robolectric's wallpaper shadow can't load on SDK 34, so the wallpaper setter is injectable for the test.

A pattern or password works as well as a PIN, so robotOS now says
"screen lock": the recovery screen offers "Open with your screen lock",
and the host settings notes match.

INSTALL.md's setup, renamed "Lock it with a screen lock":
- Lock after screen timeout: 5 minutes. Android offers no 15-minute
  option, and a shorter delay is safer.
- Why "Power button instantly locks" must be off: robotOS's tap-to-sleep
  counts as a press of the R1's power button.
- What device admin is used for and how to turn it off.
- How to check the setup took (Host & devices' protection line).
- The limits of a screen lock on a rooted R1 with an unlocked bootloader.

HUB.md's protection paragraph matches. Release notes for 0.6.8.
The lock screen now shows the recovery cover at full glow: the robot
mark on black, so swiping up to unlock looks like swiping the cover away.

- LogoGlow.still() draws the cover as a bitmap at the screen's size.
- LockScreenLook sets it as the lock and home wallpaper once per design
  version, so a wallpaper the owner picks later is never replaced. The
  service applies it in the background at start (SET_WALLPAPER).
- Tests: applied once at the screen's size; the snapshot (lock-screen.png)
  is black at the edges with the orange glow above the mark.
@windoze95 windoze95 changed the title Say "screen lock", and fill the gaps in the lock setup docs Give the lock screen robotOS's cover, say "screen lock", fill doc gaps Oct 13, 2026
@windoze95
windoze95 merged commit 6808dbd into main Oct 13, 2026
3 checks passed
@windoze95
windoze95 deleted the screen-lock-docs branch October 13, 2026 02:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant