Merge "Add a -testdex target for apache-xml on device"
diff --git a/Android.bp b/Android.bp
index ddcebd0..6535c2c 100644
--- a/Android.bp
+++ b/Android.bp
@@ -37,3 +37,18 @@
     libs: ["core-all"],
     system_modules: "core-all-system-modules",
 }
+
+// A guaranteed unstripped version of apache-xml for use on device.
+// The build system may or may not strip the apache-xml jar, but this one will
+// not be stripped. See b/24535627.
+java_library {
+    name: "apache-xml-testdex",
+    static_libs: ["apache-xml"],
+
+    installable: true,
+    dex_preopt: {
+        enabled: false,
+    },
+
+    no_framework_libs: true,
+}