diff options
author | Makoto Onuki <omakoto@google.com> | 2021-05-06 16:27:01 -0700 |
---|---|---|
committer | Makoto Onuki <omakoto@google.com> | 2021-05-07 17:34:12 -0700 |
commit | 306ed287f45d9dc72228125e59001cf6c940fe0c (patch) | |
tree | 85f3bdb75c9e531230e517aeeaa127289ee0a165 /libs/hwui/renderthread/DrawFrameTask.cpp | |
parent | 284edfdcc60983e09bb557e38bebc4b97f8fae9d (diff) |
Send a broadcast when an app is granted SCHEDULE_EXACT_ALARM
Bug: 187206399
Test: atest AlarmManagerServiceTest
Test: Manual test with a test app.
- Grant the permission to test app and make sure it can start FGS.
Log:
```
05-07 10:12:08.671 1000 1579 9475 I ActivityManager: Background started FGS: Allowed [callingPackage: com.google.omakoto.testapp; callingUid: 10294; uidState: RCVR; intent: Intent { act=fgs cmp=com.google.omakoto.testapp/.MyFgs }; code:(unknown:207); tempAllowListReason:<broadcast:1000:android.app.action.SCHEDULE_EXACT_ALARM_PERMISSION_STATE_CHANGED,reason:,reasonCode:(unknown:207),duration:10000,callingUid:1000>; targetSdkVersion:30; callerTargetSdkVersion:30; startForegroundCount:0]
```
- Grant the permission to a different app and make sure the test app
won't receive the broadcast.
Test: CTS -- Incoming
Change-Id: Iefe3e12dcf51318d8433532ba3048caa69b1edcd
Diffstat (limited to 'libs/hwui/renderthread/DrawFrameTask.cpp')
0 files changed, 0 insertions, 0 deletions