Loading services/core/java/com/android/server/pm/PackageInstallerSession.java +1 −4 Original line number Diff line number Diff line Loading @@ -2264,10 +2264,6 @@ public class PackageInstallerSession extends IPackageInstallerSession.Stub { } if (params.isStaged) { // TODO(b/136257624): CTS test fails if we don't send session finished broadcast, even // though ideally, we just need to send session committed broadcast. sendUpdateToRemoteStatusReceiver(INSTALL_SUCCEEDED, "Session staged", null); mStagedSession.verifySession(); } else { verify(); Loading Loading @@ -2514,6 +2510,7 @@ public class PackageInstallerSession extends IPackageInstallerSession.Stub { mStagedSession.notifyEndPreRebootVerification(); if (error == SessionInfo.SESSION_NO_ERROR) { mStagingManager.commitSession(mStagedSession); sendUpdateToRemoteStatusReceiver(INSTALL_SUCCEEDED, "Session staged", null); } else { dispatchSessionFinished(INSTALL_FAILED_VERIFICATION_FAILURE, msg, null); maybeFinishChildSessions(INSTALL_FAILED_VERIFICATION_FAILURE, msg); Loading services/core/java/com/android/server/pm/PackageManagerShellCommand.java +17 −8 Original line number Diff line number Diff line Loading @@ -3563,6 +3563,7 @@ class PackageManagerShellCommand extends ShellCommand { } final LocalIntentReceiver receiver = new LocalIntentReceiver(); session.commit(receiver.getIntentSender()); if (!session.isStaged()) { final Intent result = receiver.getResult(); final int status = result.getIntExtra(PackageInstaller.EXTRA_STATUS, PackageInstaller.STATUS_FAILURE); Loading @@ -3575,6 +3576,14 @@ class PackageManagerShellCommand extends ShellCommand { + result.getStringExtra(PackageInstaller.EXTRA_STATUS_MESSAGE) + "]"); } return status; } else { // Return immediately without retrieving the result. The caller will decide // whether to wait for the session to become ready. if (logSuccess) { pw.println("Success"); } return PackageInstaller.STATUS_SUCCESS; } } finally { IoUtils.closeQuietly(session); } Loading Loading
services/core/java/com/android/server/pm/PackageInstallerSession.java +1 −4 Original line number Diff line number Diff line Loading @@ -2264,10 +2264,6 @@ public class PackageInstallerSession extends IPackageInstallerSession.Stub { } if (params.isStaged) { // TODO(b/136257624): CTS test fails if we don't send session finished broadcast, even // though ideally, we just need to send session committed broadcast. sendUpdateToRemoteStatusReceiver(INSTALL_SUCCEEDED, "Session staged", null); mStagedSession.verifySession(); } else { verify(); Loading Loading @@ -2514,6 +2510,7 @@ public class PackageInstallerSession extends IPackageInstallerSession.Stub { mStagedSession.notifyEndPreRebootVerification(); if (error == SessionInfo.SESSION_NO_ERROR) { mStagingManager.commitSession(mStagedSession); sendUpdateToRemoteStatusReceiver(INSTALL_SUCCEEDED, "Session staged", null); } else { dispatchSessionFinished(INSTALL_FAILED_VERIFICATION_FAILURE, msg, null); maybeFinishChildSessions(INSTALL_FAILED_VERIFICATION_FAILURE, msg); Loading
services/core/java/com/android/server/pm/PackageManagerShellCommand.java +17 −8 Original line number Diff line number Diff line Loading @@ -3563,6 +3563,7 @@ class PackageManagerShellCommand extends ShellCommand { } final LocalIntentReceiver receiver = new LocalIntentReceiver(); session.commit(receiver.getIntentSender()); if (!session.isStaged()) { final Intent result = receiver.getResult(); final int status = result.getIntExtra(PackageInstaller.EXTRA_STATUS, PackageInstaller.STATUS_FAILURE); Loading @@ -3575,6 +3576,14 @@ class PackageManagerShellCommand extends ShellCommand { + result.getStringExtra(PackageInstaller.EXTRA_STATUS_MESSAGE) + "]"); } return status; } else { // Return immediately without retrieving the result. The caller will decide // whether to wait for the session to become ready. if (logSuccess) { pw.println("Success"); } return PackageInstaller.STATUS_SUCCESS; } } finally { IoUtils.closeQuietly(session); } Loading