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

Commit 16c3ec77 authored by JW Wang's avatar JW Wang
Browse files

Some cleanup (3/n)

Bug: 166694095
Test: atest StagedInstallTest
Change-Id: Ibbf7f77ca512498c7b4b3080a11174ac96bb932c
parent 2cf10416
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -575,8 +575,7 @@ public class PackageInstallerSession extends IPackageInstallerSession.Stub {
        @Override
        public void installSession(IntentSender statusReceiver) {
            assertCallerIsOwnerOrRootOrSystemLocked();
            Preconditions.checkArgument(!hasParentSessionId()); // Don't allow installing child
                                                                // sessions
            assertNotChildLocked("StagedSession#installSession");
            Preconditions.checkArgument(isCommitted() && isSessionReady());

            // Since staged sessions are installed during boot, the original reference to status
@@ -750,7 +749,6 @@ public class PackageInstallerSession extends IPackageInstallerSession.Stub {
        public void verifySession() {
            assertCallerIsOwnerOrRootOrSystemLocked();
            Preconditions.checkArgument(isCommitted());
            Preconditions.checkArgument(isStaged());
            Preconditions.checkArgument(!mSessionApplied && !mSessionFailed);
            verify();
        }