Skip to content
Commit a49b7c68 authored by JW Wang's avatar JW Wang
Browse files

Apply APPLIED/FAILED to non-staged sessions (8/n)

1. installNonStaged() now returns a future so we can do cleanup and
   state changes when the whole install phase is completed. This makes
   it easy to apply APPLIED/FAILED to both staged and non-staged
   sessions.
2. Following (1), dispatchSessionFinished() is no longer needed inside
   onPackageInstalled(). It is now called in install() when the install
   phase is completed.
3. Following (2), child sessions don't need mRemoteStatusReceiver
   anymore. The parent's mRemoteStatusReceiver will be used when needing
   user actions.
4. StagedSession#installSession() is always called for apex-only
   sessions. Now we have a single code path to do cleanup and state
   changes for all staged/non-staged apk/apex/mix sessions.

Bug: 210359798
Test: atest StagingManagerTest \
            CtsAtomicInstallTestCases \
	    GtsStagedInstallHostTestCases \
	    CtsRootPackageInstallerHostTestCases \
	    CtsStagedInstallHostTestCases \
	    CtsInstallHostTestCases \
	    StagedInstallInternalTest

Change-Id: I5b37185256a11fa3c534f4cbe0b56154f4816a82
parent 47ef1e92
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment