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

Commit abbdc864 authored by Svet Ganov's avatar Svet Ganov Committed by Android (Google) Code Review
Browse files

Merge "Clear binder identity when grantint permisisons to carrier apps" into mnc-dev

parents 658bf2fa ca58d80f
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -15990,8 +15990,13 @@ public class PackageManagerService extends IPackageManager.Stub {
    public void grantDefaultPermissionsToEnabledCarrierApps(String[] packageNames, int userId) {
        enforceSystemOrPhoneCaller("grantPermissionsToEnabledCarrierApps");
        synchronized (mPackages) {
            final long identity = Binder.clearCallingIdentity();
            try {
                mDefaultPermissionPolicy.grantDefaultPermissionsToEnabledCarrierAppsLPr(
                        packageNames, userId);
            } finally {
                Binder.restoreCallingIdentity(identity);
            }
        }
    }