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

Commit 0b223c70 authored by Eun Jeong Shin's avatar Eun Jeong Shin
Browse files

Deprecate the DefaultPermissionGrantPolicy,...

Deprecate the DefaultPermissionGrantPolicy, grantDefaultPermissionsToEnabledCarrierApps, that grants a set of location permissions including ACCESS_FINE_LOCATION, ACCESS_COARSE_LOCATION, ACCESS_BACKGROUND_LOCATION to carriers

Bug: 434178921
Flag: android.permission.flags.deprecate_default_permission_pregrant_policy
Change-Id: I16d44b2d01d9d23cb4d8591af09a19532f43dce3
parent c6266cf3
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1059,6 +1059,7 @@ final class DefaultPermissionGrantPolicy {
        }
    }

    @Deprecated
    public void grantDefaultPermissionsToEnabledCarrierApps(String[] packageNames, int userId) {
        Log.i(TAG, "Granting permissions to enabled carrier apps for user:" + userId);
        if (packageNames == null) {
+1 −1
Original line number Diff line number Diff line
@@ -308,7 +308,7 @@ public class LegacyPermissionManagerService extends ILegacyPermissionManager.Stu
                        userId));
    }

    @Override
    @Deprecated
    public void grantDefaultPermissionsToEnabledCarrierApps(String[] packageNames, int userId) {
        final int callingUid = Binder.getCallingUid();
        PackageManagerServiceUtils.enforceSystemOrPhoneCaller(