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
1 file changed