Change error.rs to use generated types.
This patch also removes AidlResult form the error module.
The new version of the Keystore 2.0 AIDL spec requires that ResponseCode
and ErrorCode will be returned as service specific error, instead of the
Result type.
Test: keystore2_test
Change-Id: I6f730b282c84abc8be2e693e5d2c7053648d7588
diff --git a/keystore2/Android.bp b/keystore2/Android.bp
index 7016d06..338f37e 100644
--- a/keystore2/Android.bp
+++ b/keystore2/Android.bp
@@ -18,9 +18,10 @@
srcs: ["src/lib.rs"],
rustlibs: [
+ "libandroid_hardware_keymint",
"libandroid_security_keystore2",
"libanyhow",
- "libandroid_hardware_keymint",
+ "libbinder_rs",
"libkeystore_aidl_generated",
"libkeystore2_selinux",
"liblazy_static",
@@ -40,9 +41,10 @@
auto_gen_config: true,
rustlibs: [
"libandroid_logger",
+ "libandroid_hardware_keymint",
"libandroid_security_keystore2",
"libanyhow",
- "libandroid_hardware_keymint",
+ "libbinder_rs",
"libkeystore_aidl_generated",
"libkeystore2_selinux",
"liblazy_static",