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

Commit 75be784f authored by Nikita Ioffe's avatar Nikita Ioffe
Browse files

Switch to tombstoned.microdroid

The long term plan is to completely remove tombstoned from microdroid (b/243494912), however it might take time some time to implement it.

In the meantime, we've recently removed cgroups support from the microdroid kernel. This means that starting a tombstoned results in a bunch of non-fatal errors in the logs that are related to the fact that tombstoned service specifies task_profiles.

To get rid of these error messages we temporary add a microdroid variant of the tombstoned (tombstoned.microdroid) that doesn't specify task_profiles.

Bug: 239367015
Test: microdroid presubmit
Change-Id: Ia7d37ede2276790008702e48fdfaf37f4c1fd251
parent 882c1681
Loading
Loading
Loading
Loading
+12 −2
Original line number Diff line number Diff line
@@ -426,8 +426,8 @@ cc_binary {
    local_include_dirs: ["include"],
}

cc_binary {
    name: "tombstoned",
cc_defaults {
    name: "tombstoned_defaults",
    srcs: [
        "util.cpp",
        "tombstoned/intercept_manager.cpp",
@@ -446,10 +446,20 @@ cc_binary {
        "libevent",
        "liblog",
    ],
}

cc_binary {
    name: "tombstoned",
    defaults: ["tombstoned_defaults"],
    init_rc: ["tombstoned/tombstoned.rc"],
}

cc_binary {
    name: "tombstoned.microdroid",
    defaults: ["tombstoned_defaults"],
    init_rc: ["tombstoned/tombstoned.microdroid.rc"],
}

prebuilt_etc {
    name: "crash_dump.policy",
    sub_dir: "seccomp_policy",
+7 −0
Original line number Diff line number Diff line
service tombstoned /system/bin/tombstoned.microdroid
    user tombstoned
    group system

    socket tombstoned_crash seqpacket 0666 system system
    socket tombstoned_intercept seqpacket 0666 system system
    socket tombstoned_java_trace seqpacket 0666 system system