Add a permission for CDM apps to start FGS from the background (2nd try)
Previously, any apps with a CDM association was allowed to start
foreground services from the background.
Now, only apps with
REQUEST_COMPANION_START_FOREGROUND_SERVICES_FROM_BACKGROUND
(or REQUEST_COMPANION_RUN_IN_BACKGROUND) are allowed to do so.
Bug: 186536261
Test: Manual test with a test app using CDM. With and without these
permissions.
Test: atest android.permission2.cts.PermissionPolicyTest#platformPermissionPolicyIsUnaltered
Change-Id: Ia03e8af2f730e0a4564d454685ee5463fd36ac63
4 files changed