Mkdir data/tombstones before tombstone_transmit
Because tombstone_transmit inotifies /data/tombstones and it bails if
the directory doesn't exist. This may cause a few seconds of boot time
regression. In the worst case, VS may think that the VM hangs.
Bug: 266470759
Test: atest MicrodroidHostTestCases MicrodroidTestApp
Test: run composd_cmd test-compile and see vm_console
Test: run boot time benchmark
Change-Id: Iee275978680c7f40cda253f468a10d6876739359
diff --git a/microdroid/init.rc b/microdroid/init.rc
index bc42791..ce0cab4 100644
--- a/microdroid/init.rc
+++ b/microdroid/init.rc
@@ -149,6 +149,10 @@
# Mark boot completed. This will notify microdroid_manager to run payload.
setprop dev.bootcomplete 1
+on property:tombstone_transmit.start=1
+ mkdir /data/tombstones 0771 system system
+ start tombstone_transmit
+
service tombstone_transmit /system/bin/tombstone_transmit.microdroid -cid 2 -port 2000 -remove_tombstones_after_transmitting
user system
group system
@@ -175,4 +179,3 @@
group shell log readproc
seclabel u:r:shell:s0
setenv HOSTNAME console
-