Wait for sessions of dependencies to complete
Dependency installation can be async. If DIS returns us session ids before committing or before completion, then PackageManager will wait until all the sessions complete before resuming the original session. There is a possibility that some of the sessions returned by DIS has already completed or don't exist in the first place. We remove such sessions from tracker assuming they were successful. If our assumption is wrong, then the installation will fail at reconcile stage. Bug: 372862145 Test: atest PackageManagerShellCommandInstallTest FLAG: android.content.pm.sdk_dependency_installer Change-Id: I3f3779415b507d18a767c06fdd64d3da3c145e41
Loading
Please register or sign in to comment