Skip to content
Commit cf4185e2 authored by Makoto Onuki's avatar Makoto Onuki
Browse files

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
parent c1b0d9ac
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment