Do not restart an install or uninstall on config change

If an install or uninstall is already in progress and
(Un)InstallLaunch.java is recreated due to a configuration change, do
not process the incoming request again. The correct stage will already
be set in current(un)installStage liveData.

Bug: 394724957
Test: atest CtsPackageInstallTestCases CtsPackageUninstallTestCases CtsPackageInstallerCUJInstallationTestCases
Flag: android.content.pm.use_pia_v2
Change-Id: Ib570d499a656ce31cc03201c27cd885b103a4e00
3 files changed