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
Loading
Please register or sign in to comment