Add VINTF manifest for android.system.keystore2
A VINTF manifest is required for services that expose VINTF stability
interfaces. Now that libbinder_rs supports stability, we need to update
this usage.
Test: m && adb shell start keystore2
Bug: 179907868
Change-Id: I9d3b363c6315bace145385867a5c495bb9051870
diff --git a/keystore2/Android.bp b/keystore2/Android.bp
index 9875d64..273bdd7 100644
--- a/keystore2/Android.bp
+++ b/keystore2/Android.bp
@@ -94,4 +94,6 @@
"libvpnprofilestore-rust",
],
init_rc: ["keystore2.rc"],
+
+ vintf_fragments: ["android.system.keystore2-service.xml"],
}
diff --git a/keystore2/android.system.keystore2-service.xml b/keystore2/android.system.keystore2-service.xml
new file mode 100644
index 0000000..6b8d0cb
--- /dev/null
+++ b/keystore2/android.system.keystore2-service.xml
@@ -0,0 +1,9 @@
+<manifest version="1.0" type="framework">
+ <hal format="aidl">
+ <name>android.system.keystore2</name>
+ <interface>
+ <name>IKeystoreService</name>
+ <instance>default</instance>
+ </interface>
+ </hal>
+</manifest>
diff --git a/keystore2/src/keystore2_main.rs b/keystore2/src/keystore2_main.rs
index 5d99449..01ead04 100644
--- a/keystore2/src/keystore2_main.rs
+++ b/keystore2/src/keystore2_main.rs
@@ -25,7 +25,7 @@
use std::{panic, path::Path, sync::mpsc::channel};
use vpnprofilestore::VpnProfileStore;
-static KS2_SERVICE_NAME: &str = "android.system.keystore2";
+static KS2_SERVICE_NAME: &str = "android.system.keystore2.IKeystoreService/default";
static APC_SERVICE_NAME: &str = "android.security.apc";
static AUTHORIZATION_SERVICE_NAME: &str = "android.security.authorization";
static REMOTE_PROVISIONING_SERVICE_NAME: &str = "android.security.remoteprovisioning";