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

Commit a8522a65 authored by Svet Ganov's avatar Svet Ganov Committed by Android Git Automerger
Browse files

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

* commit 'abbdc864':
  Clear binder identity when grantint permisisons to carrier apps
parents 141a9022 abbdc864
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);
            }
        }
    }