diff options
| author | 2023-04-22 00:29:19 +0000 | |
|---|---|---|
| committer | 2023-04-27 22:26:36 +0000 | |
| commit | 458213839d86cd1b9b98e2c49329cb5e2e9eeabf (patch) | |
| tree | c94ff3a22000a45beec6e0d051184199952aa065 /libs/androidfw/FileStream.cpp | |
| parent | 9fc75ac257662669ba7c05c79bf5b53c698123bf (diff) | |
Allow background-restricted app to start FGS from alarm-clock.
Check FGS start temp allowlist reasonCode, with REASON_ALARM_MANAGER_ALARM_CLOCK,
the FGS can start even the app is background-restricted (With other reasonCode,
FGS can not start if the app is background-restricted).
With REASON_ALARM_MANAGER_ALARM_CLOCK, after FGS is started, if the app is changed to
background-restricted, the FGS can keep running (With other reasonCode, FGS
will be stopped if the app is changed to background-restricted).
Bug: 279233038
Test: atest cts/tests/app/src/android/app/cts/ActivityManagerFgsBgStartTest.java#testTempAllowListReasonCodeAlarmClock
atest cts/tests/app/src/android/app/cts/ActivityManagerFgsBgStartTest.java#testAlarmClockFgsNotStoppedByBackgroundRestricted
Change-Id: I909b15ba93735ff06787efc9c1e40c1c033a41ab
Diffstat (limited to 'libs/androidfw/FileStream.cpp')
0 files changed, 0 insertions, 0 deletions