Add microdroid_launcher
microdroid_launcher is a very thin executable that loads a shared
library and execute the entry function (android_native_main). This is
used to execute a shared library in an APK that is shared from the host
Android.
Bug: 188513012
Test: atest MicrodroidHostTestCases
Change-Id: I0f98eba4c72601adaa27733dae6a51d3852301db
diff --git a/microdroid/Android.bp b/microdroid/Android.bp
index 1fc1b7a..98b2f98 100644
--- a/microdroid/Android.bp
+++ b/microdroid/Android.bp
@@ -45,8 +45,9 @@
partition_name: "system",
deps: [
"init_second_stage",
- "microdroid_init_rc",
"microdroid_build_prop",
+ "microdroid_init_rc",
+ "microdroid_launcher",
"ueventd.rc",
"libbinder",
"libbinder_ndk",
diff --git a/microdroid/microdroid_file_contexts b/microdroid/microdroid_file_contexts
index 369c700..b033110 100644
--- a/microdroid/microdroid_file_contexts
+++ b/microdroid/microdroid_file_contexts
@@ -367,6 +367,7 @@
/system/bin/android\.frameworks\.automotive\.display@1\.0-service u:object_r:automotive_display_service_exec:s0
/system/bin/snapuserd u:object_r:snapuserd_exec:s0
/system/bin/zipfuse u:object_r:zipfuse_exec:s0
+/system/bin/microdroid_launcher u:object_r:microdroid_launcher_exec:s0
#############################
# Vendor files