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

Commit 10e6377f authored by Yiqun Wu's avatar Yiqun Wu Committed by Android (Google) Code Review
Browse files

Merge "Pregrant Car Dialer app nearby device permissions" into sc-v2-dev

parents 349012b8 b13d980c
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -913,6 +913,11 @@ final class DefaultPermissionGrantPolicy {
        }
        grantPermissionsToSystemPackage(pm, dialerPackage, userId,
                CONTACTS_PERMISSIONS, SMS_PERMISSIONS, MICROPHONE_PERMISSIONS, CAMERA_PERMISSIONS);
        boolean isAndroidAutomotive =
                mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_AUTOMOTIVE, 0);
        if (isAndroidAutomotive) {
            grantPermissionsToSystemPackage(pm, dialerPackage, userId, NEARBY_DEVICES_PERMISSIONS);
        }
    }

    private void grantDefaultPermissionsToDefaultSystemSmsApp(PackageManagerWrapper pm,