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/launcher/Android.bp b/launcher/Android.bp
new file mode 100644
index 0000000..2c3f093
--- /dev/null
+++ b/launcher/Android.bp
@@ -0,0 +1,9 @@
+package {
+ default_applicable_licenses: ["Android-Apache-2.0"],
+}
+
+cc_binary {
+ name: "microdroid_launcher",
+ srcs: ["main.cpp"],
+ shared_libs: ["libdl"],
+}