Skip to content
Commit 193311a0 authored by Tony Mak's avatar Tony Mak
Browse files

Fix permission is not granted to work profile system app by default

After creating user, we will grant some runtime permissions to a set of
apps in that user.
However, DefaultPermissionGrantPolicy failed to look up some apps in
work profile cases as most apps are disabled by default.
Using MATCH_UNINSTALLED_PACKAGES flag to resolve the intent can fix
the issue.


Test: create work profile, enable calendar in work profile, observe
      that permission is granted.

Change-Id: Icee02e7257a77cb7e2d15b848628f02e7bca0b9c
Fix: 62051433
parent 6c0aba7d
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