Add the skeleton for the client-side API
android.system.virtualmachine is added as the client-side API for the
controlling of virtual machines. This change doesn't add any new API.
It adds an empty library to the existing framework.
Bug: 183496040
Test: atest MicrodroidHostTestCases
Change-Id: I9c52dfaf7e33137e5e3d6c587b5cc3932f667025
diff --git a/javalib/Android.bp b/javalib/Android.bp
new file mode 100644
index 0000000..f920175
--- /dev/null
+++ b/javalib/Android.bp
@@ -0,0 +1,22 @@
+package {
+ default_applicable_licenses: ["Android-Apache-2.0"],
+}
+
+java_sdk_library {
+ name: "android.system.virtualmachine",
+ installable: true,
+ compile_dex: true,
+
+ srcs: ["src/**/*.java"],
+ static_libs: [
+ "android.system.virtualizationservice-java",
+ ],
+
+ apex_available: ["com.android.virt"],
+ permitted_packages: [
+ "android.system.virtualmachine",
+ "android.system.virtualizationservice",
+ ],
+ // TODO(jiyong): remove the below once this gets public
+ unsafe_ignore_missing_latest_api: true,
+}