Some cleanup (3/n)
Bug: 166694095 Test: atest StagedInstallTest Change-Id: Ibbf7f77ca512498c7b4b3080a11174ac96bb932c
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user