Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 89ed5491 authored by Tetiana Meronyk's avatar Tetiana Meronyk
Browse files

Check user type before adding user wakeup

Not all user types should have their wakeups persisted.

Guest users should not run in the background. And since they are meant to be used temporarily, their activity like alarms should not disrupt other users. Therefore their alarms do not get persisted and thet are not started prior to their alarms.

System users are always running on the device, so there is no need to start them.

Profiles are not full users and have special applications. For private profile or work profile, users might want to keep them stopped so starting them in the background can be unexpected to users. So this feature at this time should only be applied to full users.

Bug: 353736798
Test: atest UserWakeupStoreTest && atest AlarmManagerServiceTest
Flag: com.android.server.alarm.start_user_before_scheduled_alarms
Change-Id: I8657342fb48b177455352ad8ec207afa5a7e0dd0
parent 65672c90
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment