Use sqlite with no ICU support
keystore has used libsqlite which was built with the ICU extension [1].
The extension brings huge (> 60MB) dependency to the i18n APEX which is
too big for microdroid. Since the use of sqlite in keystore doesn't
seem to require operations like upper/lower, sorting, and regex for all
unicode strings, drop the dependency to the i18n APEX.
[1] https://www.sqlite.org/src/file?name=ext/icu/README.txt
Bug: 199674764
Test: m
Change-Id: I1e7a83283c3e79e69793a2076c97bc1bf6b9e0bf
diff --git a/keystore2/Android.bp b/keystore2/Android.bp
index b591d8c..a7aa8fc 100644
--- a/keystore2/Android.bp
+++ b/keystore2/Android.bp
@@ -48,11 +48,11 @@
"libkeystore2_vintf_rust",
"liblazy_static",
"liblibc",
- "liblibsqlite3_sys",
+ "liblibsqlite3_sys_noicu",
"liblog_event_list",
"liblog_rust",
"librand",
- "librusqlite",
+ "librusqlite_noicu",
"librustutils",
"libthiserror",
],
@@ -128,7 +128,6 @@
"libc",
"libdl_android",
"libdl",
- "libandroidicu",
"libkeymint",
"libkeystore2_aaid",
"libkeystore2_apc_compat",