Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FR: Support Direct Boot mode / show on first lock screen #153

Open
secretmango opened this issue Jan 20, 2024 · 2 comments
Open

FR: Support Direct Boot mode / show on first lock screen #153

secretmango opened this issue Jan 20, 2024 · 2 comments

Comments

@secretmango
Copy link

I tried 2.11 from F-Droid.

The stock AOSP clock supports showing the alarm on top of the first login screen, this is called direct boot.

More info here

GrapheneOS has auto-reboot as a security method, as a reboot clears the encryption keys from RAM. This happens when the device is not unlocked for x hours, for example at night.

Also it (and hopefully other android versions) had automatic system updates with automatic reboot, here this alarm klock would then also not display.

Could be useful to implement.

@kraigs-android
Copy link
Owner

I looked into this a bit when the feature was first added to android. The big issue with respect to this app is that media isn't available before the initial unlock either. Since the app uses the android media player to play alarm noises, there's no way to actually generate an alarm sound without getting through the initial boot unlock. The screen could light up, but that wouldn't be very useful. There are a restricted set of built-in sounds that could be used (which is what I imagine the default android alarm does), but that would be a fairly invasive re-write of alarm code and I never put in the time to try...

@secretmango
Copy link
Author

thats fair. I imagine this requirement being pretty restrictive.

Would something like "use the default alarm sound if nothing else is configured" work?

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

No branches or pull requests

2 participants