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

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

am a8522a65: am abbdc864: Merge "Clear binder identity when grantint...

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

* commit 'a8522a65':
  Clear binder identity when grantint permisisons to carrier apps
parents d1e2789b a8522a65
Loading
Loading
Loading
Loading
+7 −2
Original line number Original line Diff line number Diff line
@@ -15990,8 +15990,13 @@ public class PackageManagerService extends IPackageManager.Stub {
    public void grantDefaultPermissionsToEnabledCarrierApps(String[] packageNames, int userId) {
    public void grantDefaultPermissionsToEnabledCarrierApps(String[] packageNames, int userId) {
        enforceSystemOrPhoneCaller("grantPermissionsToEnabledCarrierApps");
        enforceSystemOrPhoneCaller("grantPermissionsToEnabledCarrierApps");
        synchronized (mPackages) {
        synchronized (mPackages) {
            final long identity = Binder.clearCallingIdentity();
            try {
                mDefaultPermissionPolicy.grantDefaultPermissionsToEnabledCarrierAppsLPr(
                mDefaultPermissionPolicy.grantDefaultPermissionsToEnabledCarrierAppsLPr(
                        packageNames, userId);
                        packageNames, userId);
            } finally {
                Binder.restoreCallingIdentity(identity);
            }
        }
        }
    }
    }