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

Commit c8967160 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

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

parents 69818781 04918fe0
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);
        }