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

Commit 5e5a01d9 authored by Jiyong Park's avatar Jiyong Park
Browse files

Add servicemanager.microdroid

servicemanager.microdroid is the servicemanager built for microdroid.
The only difference is that it's built with `bootstrap: true` so that it
can start early when APEXes are not activated.

Previously, servicemanager was started after APEXes are activated, but
the introduction of diced made it impossible. Microdroid_manager depends
on diced to select the list of APEXes to be activated. diced in turn
depends on servicemanager.

Bug: 214231981
Test: run microdroid
Change-Id: I6199e1f343d0890f6bf5498e588b92df55d87fe6
parent ebf9ccac
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -46,6 +46,14 @@ cc_binary {
    srcs: ["main.cpp"],
}

cc_binary {
    name: "servicemanager.microdroid",
    defaults: ["servicemanager_defaults"],
    init_rc: ["servicemanager.microdroid.rc"],
    srcs: ["main.cpp"],
    bootstrap: true,
}

cc_binary {
    name: "servicemanager.recovery",
    stem: "servicemanager",
+13 −0
Original line number Diff line number Diff line
service servicemanager /system/bin/servicemanager.microdroid
    class core animation
    user system
    group system readproc
    critical
    onrestart restart apexd
    onrestart restart audioserver
    onrestart restart gatekeeperd
    onrestart class_restart --only-enabled main
    onrestart class_restart --only-enabled hal
    onrestart class_restart --only-enabled early_hal
    task_profiles ServiceCapacityLow
    shutdown critical