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

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

Merge \"Don\'t hold lock calling into PackageMgr\" into nyc-mr1-dev

am: c8967160

Change-Id: I9e4faf9115c35a7d2995ddc5ad82ed12df6f2a9b
parents 0d99301c c8967160
Loading
Loading
Loading
Loading
+17 −14
Original line number Diff line number Diff line
@@ -666,9 +666,10 @@ public class PackageInstallerService extends IPackageInstaller.Stub {
                        "Too many historical sessions for UID " + callingUid);
            }

            final long createdMillis = System.currentTimeMillis();
            sessionId = allocateSessionIdLocked();
        }

        final long createdMillis = System.currentTimeMillis();
        // We're staging to exactly one location
        File stageDir = null;
        String stageCid = null;
@@ -683,6 +684,8 @@ public class PackageInstallerService extends IPackageInstaller.Stub {
        session = new PackageInstallerSession(mInternalCallback, mContext, mPm,
                mInstallThread.getLooper(), sessionId, userId, installerPackageName, callingUid,
                params, createdMillis, stageDir, stageCid, false, false);

        synchronized (mSessions) {
            mSessions.put(sessionId, session);
        }