Commit Graph

4 Commits

Author SHA1 Message Date
Po-Chien Hsueh
34de5af4fd Check if isInstalled() when boot completed
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
2019-03-13 17:07:26 +08:00
Po-Chien Hsueh
9c1500f4aa Use GSID progress API during startInstallation()
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
2019-03-05 16:07:01 +08:00
Po-Chien Hsueh
378dfdd05a Fix a misspelled permission
MANAGE_DYNAMIC_ANDROID is misspelled. Fix it.

Bug: 124637092
Test: adb shell am start-activity
Change-Id: I2db3643719f44fcd175ed175c037f17b6c4b6c07
2019-02-20 16:37:08 +08:00
Po-Chien Hsueh
64aa78297f Add DynamicAndroidInstallationService
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
2019-02-02 23:46:03 +08:00