Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3a36f0a3 authored by Anthony Hugh's avatar Anthony Hugh Committed by android-build-merger
Browse files

Merge "Watch dialer should have phone permission fixed" into cw-e-dev am: 52c6f9ec am: 2cd707ef

am: 2b76beeb

* commit '2b76beeb':
  Watch dialer should have phone permission fixed
parents 3aed194c 2b76beeb
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -596,7 +596,10 @@ final class DefaultPermissionGrantPolicy {
    private void grantDefaultPermissionsToDefaultSystemDialerAppLPr(
            PackageParser.Package dialerPackage, int userId) {
        if (doesPackageSupportRuntimePermissions(dialerPackage)) {
            grantRuntimePermissionsLPw(dialerPackage, PHONE_PERMISSIONS, userId);
            boolean isPhonePermFixed =
                    mService.hasSystemFeature(PackageManager.FEATURE_WATCH);
            grantRuntimePermissionsLPw(
                    dialerPackage, PHONE_PERMISSIONS, isPhonePermFixed, userId);
            grantRuntimePermissionsLPw(dialerPackage, CONTACTS_PERMISSIONS, userId);
            grantRuntimePermissionsLPw(dialerPackage, SMS_PERMISSIONS, userId);
            grantRuntimePermissionsLPw(dialerPackage, MICROPHONE_PERMISSIONS, userId);