Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 67697394 authored by Po-Chien Hsueh's avatar Po-Chien Hsueh
Browse files

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
parent 9a1627f5
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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();
        }
    }