diff --git a/debuggerd/Android.bp b/debuggerd/Android.bp index 1be69c3a7..7afbbe7c6 100644 --- a/debuggerd/Android.bp +++ b/debuggerd/Android.bp @@ -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", diff --git a/debuggerd/tombstoned/tombstoned.microdroid.rc b/debuggerd/tombstoned/tombstoned.microdroid.rc new file mode 100644 index 000000000..7f5c542ca --- /dev/null +++ b/debuggerd/tombstoned/tombstoned.microdroid.rc @@ -0,0 +1,7 @@ +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