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/
358 stars 21 forks source link

[Clock App] Alarm silenced when phone is in silent mode #3249

Closed Th0masL closed 8 months ago

Th0masL commented 8 months ago

Hey guys !

Thanks for this great OS !

I've been using GrapheneOS since 2 weeks on my Pixel 8, and I realized today that if I put my phone in silence mode, the alarms are also silenced.

I am surprised by this behavior, because I'm pretty sure it was not happening with my previous phone, a Galaxy S10e, that was running LineageOS 20 (Android 13).

After some investigation, it looks like the Clock app in GrapheneOS is using sounds as "ringtones", and not as "notifications". This also explains why I can't select any of the sounds that are in the "notifications" category as Alarm sounds, and it's only offering the choice in the "ringtones" category.

Basically it seems like the Clock app falls in the same category as the Phone app, and that's why it's getting silenced when the phone is set in silence mode.

On all the android phones I used in the past, the Clock app was never impacted by the phone's sound settings, and was always ringing correctly, even if the phone was in silent.

I'm adding 2 screenshots, to show the difference between my old Galaxy S10e on LineageOS20 and my Pixel 8 on the latest GrapheneOS.

Samsung Galaxy S10e on LineageOS20 (Android 13) s10e

Pixel8 on GrapheneOS (Android 14): pixel8

It might be an expected behavior from the Clock app, but this behavior is different than all the phones I had in the past, and it's annoying to have to remember to remove the phone from silent mode at night, as I don't want to be woken up by phone calls, but I still want the alarm to wake me up.

Let me know if you need more information.

Thanks

thestinger commented 8 months ago

You should try another Clock app and compare how it behaves.

Th0masL commented 8 months ago

I just tried with another clock (Simple Clock, from F-Droid here).

This clock app is offering to chose the sound in the "Alarm" category, which looks better than "Ringtones".

pixel8-simple-clock

But the sound is still being silenced when the phone is in silent mode.

This could be an Android 14 feature, or it could be something that only impact GrapheneOS.

I will try to get another phone on Android 14 to compare the behavior.

Th0masL commented 8 months ago

I just tried with my girlfriend's phone, which is a OnePlus 11 on OxygenOS 14 (Android 14), and when the phone is in silent mode, the alarm still ring.

Of course it's hard to compare because this is OxygenOS, but still, the alarm ring correctly on her phone, even in silent mode.

matchboxbananasynergy commented 8 months ago

I just tried this with the bundled AOSP clock app. I set an alarm 1 minute into the future and put the phone on silent. It rung loud and clear. Am I perhaps misunderstanding the issue here?

Th0masL commented 8 months ago

Thanks for asking for clarification @matchboxbananasynergy.

The fact that you confirmed it was working for you made me verify everything again on my side.

I realized I had set my alarm to "Silent" in the Clock app itself, couple of days ago, as I needed a special non-ringing alarm, and I forgot to re-enable the sound. This is why my alarm would never make noise.

When I was trying to troubleshoot, I went in the app's global settings and I was seeing that I could only select a sound from the "Ringtones" list, so that got me thinking that the Clock app was being applied the same settings as the Phone app, and that's why it would be silenced when the phone was in silent mode.

So yeah, long story short, the Clock app is ringing correctly even in silent mode. It's possible that the Clock app is not tagged as a proper "Alarm" type app, that's why we can't see the list of alarm sounds in the selection menu of the app itself, but it probably doesn't matter, as the sound can be selected on a per-alarm basis, on every alarm.

I made a new screenshot to explain why I got confused.

pixel8-alarm-config

I will close this issue, as I don't think it's needed to change the Clock app's default tagging as "Alarm" simply to show the list of Alarm sounds.

matchboxbananasynergy commented 8 months ago

Thanks for checking again and reporting back; much appreciated!