Move adb RSA utilities into its own library.
Since both the client and daemon will now be generating keys.
BUG: b/111434128
Test: atest adb_crypto_test
Change-Id: I6fac562ae5629ab30b6639fbd88d822dae6e96bd
diff --git a/adb/Android.bp b/adb/Android.bp
index 675525c..c71138a 100644
--- a/adb/Android.bp
+++ b/adb/Android.bp
@@ -255,6 +255,8 @@
},
static_libs: [
+ "libadb_crypto",
+ "libadb_protos",
"libbase",
"libcrypto_utils",
"libcrypto",
@@ -272,6 +274,7 @@
defaults: ["adb_defaults"],
srcs: libadb_test_srcs,
static_libs: [
+ "libadb_crypto",
"libadb_host",
"libbase",
"libcutils",
@@ -347,6 +350,7 @@
],
static_libs: [
+ "libadb_crypto",
"libadb_host",
"libandroidfw",
"libbase",
@@ -422,6 +426,7 @@
],
shared_libs: [
+ "libadb_crypto",
"libadbd_auth",
"libasyncio",
"libbase",
@@ -765,6 +770,7 @@
"fastdeploy/deploypatchgenerator/patch_utils_test.cpp",
],
static_libs: [
+ "libadb_crypto",
"libadb_host",
"libandroidfw",
"libbase",