GrapheneOS / os-issue-tracker

Issue tracker for GrapheneOS Android Open Source Project hardening work. Standalone projects like Auditor, AttestationServer and hardened_malloc have their own dedicated trackers.
https://grapheneos.org/
351 stars 19 forks source link

Alarms from clock app cannot be dismissed without unlocking #350

Closed FWDekker closed 3 years ago

FWDekker commented 3 years ago

Context

Previous issues such as #218 and #335 mention the clock app stopping to work. My issue is different because the clock app does not stop working.

Issue description

Alarms cannot be dismissed or snoozed from the lock screen. When an alarm goes off, the phone vibrates and makes sound, but does not display anything related to the alarm in the lock screen. After unlocking the phone, the alarm can be dismissed after manually opening the notification tray or from the clock app itself. This is inconvenient because I usually don't unlock my phone in one try right after waking up.

This issue has started occurring since the update to Android 11.

Rebooting does not resolve my issue.

Build information

Device Pixel 2
OS Android 11
Build RP1A.200720.009.2020.09.29.20
thestinger commented 3 years ago

You should be able to tap the notification on the lockscreen. This is a known upstream change in the clock app in Android 11. It had substantial changes and has far more substantial changes in the master branch. We have the option of switching to the newer version that's in development.

randomhydrosol commented 3 years ago

@thestinger this is apparently an issue many people on stock are complaining about. I just skimmed through a few pixel chats and looks like this is widespread

beerisgood commented 3 years ago

Confirm this on my 3a.

Also the alarm app activates itself 30 minutes before alarm should make sound (a notification sound start) This is always reproducible

Edit: as example: i set my alarm for work at 6 AM at 5:30 the notification from alarm app activates itself which is annoying as i woke up.

Looks like i fixed it with that config but this shouldn't be needed as with Android 10. image

thestinger commented 3 years ago

It doesn't activate itself early but rather the notification is configured to generate a sound when it appears. You can disable that.

beerisgood commented 3 years ago

It doesn't activate itself early but rather the notification is configured to generate a sound when it appears. You can disable that.

Yeah this is what i mean. So i disable it already in the right way?

thestinger commented 3 years ago

You should configure the notification channel to disable sound. Don't outright disable the notification channel or you won't get the notification anymore. You might want to clear the app data to get rid of any legacy notification channels.

beerisgood commented 3 years ago

You should configure the notification channel to disable sound.

How can i do that? I also clear app data which fix the double/ old notification channels. After cleaning the app data and re-open the app, i get the popup may not be designed for this Android version. Wasn't this fixed before ?

thestinger commented 3 years ago

i get the popup may not be designed for this Android version. Wasn't this fixed before ?

No, it's updated to API 25 now, and we show a warning for 28+.

thestinger commented 3 years ago

In the master branch of AOSP it's rewritten as a modern Kotlin app. We could try switching to that but it might have problems.

thestinger commented 3 years ago

This should be addressed for the next release. You can let me know if it's still a problem after the update and this can be reopened.

beerisgood commented 3 years ago

Okay!

FWDekker commented 3 years ago

Thanks! Will do!

beerisgood commented 3 years ago

I clear alarm app data, but i sadly doesn't see any change with new update

sk425 commented 3 years ago

since updating to RP1A.201005.004.2020.10.06.02 on pixel 3xl

Current issues:

Issues resolved after updating and clearing app data:

Please note: I have battery optimizations turned off on the app. This seems to have improved alarm reliability in the past.

nigle-dev commented 3 years ago

I can easily hit the turn off button or snooze button if this is the only notification block. But with multiple notification blocks, even if alarm is the top one it's very hard to dismiss. You can see the button is there underneath the arrow but in most cases trying to hit it it pops up the unlock screen. This is on a Pixel 3a, after clearing app data and on RP1A.201005.004.2020.10.06.02

i90faytn3 commented 3 years ago

Not reproducible in the latest update, can drag down and then press dismiss/pause/reset quickly before the alarm time or timer counts down to zero.

Alarms and timers can be now dismissed when triggered in the lockscreen, after first unlock.

FWDekker commented 3 years ago

As of the latest update the old overlay once again appears in the lock screen where you can easily dismiss/snooze the alarm, so for me the issue is now completely resolved! :)

beerisgood commented 3 years ago

As of the latest update the old overlay once again appears in the lock screen where you can easily dismiss/snooze the alarm, so for me the issue is now completely resolved! :)

can confirm this. Works perfect now

jgeerds commented 3 years ago

Yep, for me too