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

Commit 2cd707ef 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

* commit '52c6f9ec':
  Watch dialer should have phone permission fixed
parents f0e4b99b 52c6f9ec
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);