Export libtextclassifier
ExtServices APK now preloads universal model.
We mmap the model file straight from the APK, so we can't
compress those files when packing them to the APK.
Added "-0 model" as the appt flag to do so.
Bug: 169395238
Test: atest -p external/libtextclassifier
Change-Id: I3d59ec717a14f71be653159ecc7dd3e87bc9a80e
diff --git a/java/Android.bp b/java/Android.bp
index 893b423..981d7c9 100644
--- a/java/Android.bp
+++ b/java/Android.bp
@@ -35,6 +35,9 @@
sdk_version: "system_current",
min_sdk_version: "30",
manifest: "AndroidManifest.xml",
+ aaptflags: [
+ "-0 .model",
+ ],
}
// Similar to TextClassifierServiceLib, but without the AndroidManifest.
@@ -52,6 +55,10 @@
],
sdk_version: "system_current",
min_sdk_version: "30",
+ aaptflags: [
+ "-0 .model",
+ ],
+
}
java_library {