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/legacykeystore/Android.bp b/keystore2/legacykeystore/Android.bp
index da6aa8a..62d593c 100644
--- a/keystore2/legacykeystore/Android.bp
+++ b/keystore2/legacykeystore/Android.bp
@@ -33,7 +33,7 @@
"libbinder_rs",
"libkeystore2",
"liblog_rust",
- "librusqlite",
+ "librusqlite_noicu",
"librustutils",
"libthiserror",
],
@@ -52,7 +52,7 @@
"libkeystore2",
"libkeystore2_test_utils",
"liblog_rust",
- "librusqlite",
+ "librusqlite_noicu",
"librustutils",
"libthiserror",
],