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

Commit 16c94f69 authored by Todd Kennedy's avatar Todd Kennedy Committed by android-build-merger
Browse files

Clear calling identity am: c25fbdec am: af34fdbe

am: 62c087b4

Change-Id: I1aef6968e11cb77ddd828afe466d0d9484960b65
parents 5627fd97 62c087b4
Loading
Loading
Loading
Loading
+9 −3
Original line number Diff line number Diff line
@@ -44,6 +44,7 @@ import android.content.pm.PackageParser.ApkLite;
import android.content.pm.PackageParser.PackageLite;
import android.content.pm.PackageParser.PackageParserException;
import android.content.pm.Signature;
import android.os.Binder;
import android.os.Bundle;
import android.os.FileBridge;
import android.os.FileUtils;
@@ -271,9 +272,14 @@ public class PackageInstallerSession extends IPackageInstallerSession.Stub {
        } else {
            mPermissionsAccepted = false;
        }
        final long identity = Binder.clearCallingIdentity();
        try {
            final int uid = mPm.getPackageUid(PackageManagerService.DEFAULT_CONTAINER_PACKAGE,
                    PackageManager.MATCH_SYSTEM_ONLY, UserHandle.USER_SYSTEM);
            defaultContainerGid = UserHandle.getSharedAppGid(uid);
        } finally {
            Binder.restoreCallingIdentity(identity);
        }
    }

    public SessionInfo generateInfo() {