Clock icon indicating copy to clipboard operation
Clock copied to clipboard

Phone should turn on automatically when an alarm is set

Open antodc opened this issue 1 year ago • 7 comments

Checklist

  • [X] I made sure that there are no existing issues - open or closed - to which I could contribute my information.
  • [X] I made sure that there are no existing discussions - open or closed - to which I could contribute my information.
  • [X] I have read the FAQs inside the app (Menu -> About -> FAQs) and my problem isn't listed.
  • [X] I have taken the time to fill in all the required details. I understand that the bug report will be dismissed otherwise.
  • [X] This issue contains only one feature request.
  • [X] I have read and understood the contribution guidelines.
  • [ ] I optionally donated to support the Fossify mission.

Feature description

I put it as a feature, but maybe it is a bug. When using my stock clock app, if I set an alarm and turn off the phone (as I do every night), it 'magically' turn on by itself a few minutes before the scheduled alarm, so that it can work properly. With Fossify Clock the phone remains turned off and the alarm is skipped. It would be great if Fossify Clock were able to turn on the phone when needed.

Why do you want this feature?

Alarms are important for those who set them and should always work, irrespective on whether the phone is turned on or off (voluntarily or by accident).

Additional information

Maybe somewhat related with #17.

antodc avatar Sep 06 '24 07:09 antodc

Are you actually turning the phone off or did you just turn off the screen?

Because the entire storage is encrypted and until it gets decrypted with your pin/password for first login it cannot be loaded. This is why you can't use fingerprint / face unlock when you are in before first boot state. This is an essential security feature of android and iphone's iOS.

Some manufacturers have a custom firmware that includes an auto turn on timer and possibly a hookup into their own alarm app.

https://android.stackexchange.com/questions/4206/does-the-alarm-work-when-my-phone-is-turned-off

taltamir avatar Dec 01 '24 20:12 taltamir

I am actually turning the phone off. So, are you saying that only apps installed by the manufacturer can (possibly) turn the phone on?

antodc avatar Dec 01 '24 21:12 antodc

I am actually turning the phone off. So, are you saying that only apps installed by the manufacturer can (possibly) turn the phone on?

Yes, but it depends on the phone. Not all phones support this.

On my phone, alarms set using the Fossify clock app can turn on the phone.

roberto-sartori-gl avatar Dec 29 '24 12:12 roberto-sartori-gl

@roberto-sartori-gl Thank you. Good to know. @naveensingh @Aga-C I saw that the stock clock has the following permissions, while Fossify Clock has no permissions at all. Just in case it helps in any way. Screenshot_20241229-154755

antodc avatar Dec 29 '24 14:12 antodc

Fossify Clock does use some of those permissions, not sure why they don't show up in your system:

https://github.com/FossifyOrg/Clock/blob/8a957081b3caccf2ea361a6bb9aef8101102789f/app/src/main/AndroidManifest.xml#L7-L16

But those permissions are not related to this feature request.

From what I know and as Roberto has mentioned, it really is implemented on a hardware/firmware level and some vendors choose to implement it. Some devices with the 'hardware alarm' capability might consider the RTC alarms important enough even with third party clocks apps, some might just be directly integrated with their stock clock apps.

Apparently, current behavior is now the expected behavior. We'll probably close this issue as we can not do anything about it, maybe just add a FAQ entry.

naveensingh avatar Dec 29 '24 17:12 naveensingh

@naveensingh Thank you for the kind explanation. So, do whatever you think it is right to do with this request. @roberto-sartori-gl Just out of curiosity, could you kindly let me know which phone and Android version you have?

antodc avatar Dec 30 '24 07:12 antodc

Did some cursory research on it. There's a permission called org.codeaurora.permission.POWER_OFF_ALARM for this but it's specific to Qualcomm devices and I have not yet tested if it will actually work.

Image

naveensingh avatar Apr 15 '25 09:04 naveensingh