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

Allow triggering an alarm while device is off #456

Open
tibbi opened this issue May 17, 2023 · 3 comments
Open

Allow triggering an alarm while device is off #456

tibbi opened this issue May 17, 2023 · 3 comments

Comments

@tibbi
Copy link
Member

tibbi commented May 17, 2023

A new permission Power Off Alarm or so might be needed

@liyamahendra
Copy link

@tibbi In Android, it is not possible to trigger an alarm while the device is completely powered off. When the device is powered off, all processes and applications, including alarms, are not active.

However, if the device is in a sleep mode or standby mode, you can schedule an alarm to wake up the device and trigger an action.

Let me know your thoughts on this or if I misunderstood the feature request.

@liyamahendra
Copy link

Just to add, RTC_WAKEUP flag cannot wake up a device that is completely turned off. The RTC_WAKEUP flag is only effective when the device is in sleep mode or idle state, such as when the screen is turned off or the device is in a low-power state.

@tibbi
Copy link
Member Author

tibbi commented Jun 9, 2023

note for future reference: Some relevant LineageOS commits for implementing this are at LineageOS/android_packages_apps_DeskClock@af3a2d2 and LineageOS/android_packages_apps_DeskClock@cbde2cd

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants