When the service receives BOOT_COMPLETED, check not only isInUse(),
but also isInstalled(). If there is already an AOT installed, notify
the user and provide a action button to discard it, or reboot into it
again.
Bug: 126377329
Test: install AOT and reboot.
Change-Id: Ib764524bc755380164dab920c8946247757dde20
Use getInstallationProgress() while startInstallation() is running.
startIntallation() takes up to 90 seconds. So, move it to another
thread and allow user to cancel it.
Bug: 124614460
Test: adb shell am, then cancel it from notification
Change-Id: I685f7fff9992a99b8c033760a406922b41b058f6
DynamicAndroidInstallationService is a framework service to download,
unzip and write DynamicAndroid images. Apps should interact with it
using DynamicAndroidClient. Or, developers can use adb am commmands.
Test: build and run on internal target
Bug: 122015653
Change-Id: I7c834ed37de52840a407fb140743eda1f2bd82e8