diff options
author | Po-Chien Hsueh <pchsueh@google.com> | 2019-04-10 15:30:16 +0800 |
---|---|---|
committer | Po-Chien Hsueh <pchsueh@google.com> | 2019-04-10 16:19:53 +0800 |
commit | 67697394a23ecf1b0c542e81529dc5f4ca6a3061 (patch) | |
tree | 4cacabcb54aec76e51f85a36e4beedb2b7e0a92f /packages/DynamicSystemInstallationService/src | |
parent | 9a1627f521d5a98f1682a7d83d6e94552d97958e (diff) |
stopSelf() if there is no installed system image
On BOOT_COMPLETED, the installation checks if there is an installed
system image and shows a notification if there is.
However, if there isn't. The installation should stop itself.
Bug: 128960337
Test: boot and adb shell ps
Change-Id: I422e308020cd5ec127ea265079926c1b74547d4b
Diffstat (limited to 'packages/DynamicSystemInstallationService/src')
-rw-r--r-- | packages/DynamicSystemInstallationService/src/com/android/dynandroid/DynamicSystemInstallationService.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/DynamicSystemInstallationService/src/com/android/dynandroid/DynamicSystemInstallationService.java b/packages/DynamicSystemInstallationService/src/com/android/dynandroid/DynamicSystemInstallationService.java index fcbda1d5c63b..43d7d8fd0ac4 100644 --- a/packages/DynamicSystemInstallationService/src/com/android/dynandroid/DynamicSystemInstallationService.java +++ b/packages/DynamicSystemInstallationService/src/com/android/dynandroid/DynamicSystemInstallationService.java @@ -326,6 +326,8 @@ public class DynamicSystemInstallationService extends Service } else if (status == STATUS_READY) { startForeground(NOTIFICATION_ID, buildNotification(STATUS_READY, CAUSE_NOT_SPECIFIED)); + } else { + stopSelf(); } } |