Merge "Set default visibility to private"
diff --git a/Android.bp b/Android.bp
index 84a8f14..80c7ec7 100644
--- a/Android.bp
+++ b/Android.bp
@@ -14,11 +14,16 @@
 // limitations under the License.
 //
 
+package {
+    default_visibility: ["//visibility:private"],
+}
+
 // The set of files that contribute to APIs.
 // Generally, apache-xml source files are not marked with @hide so we add them
 // one-by-one after having done so.
 filegroup {
     name: "apache-xml_api_files",
+    visibility: ["//libcore"],
     srcs: [],
 }
 
@@ -47,6 +52,9 @@
 // not be stripped. See b/24535627.
 java_library {
     name: "apache-xml-testdex",
+    visibility: [
+        "//art:__subpackages__",
+    ],
     static_libs: ["apache-xml"],
 
     installable: true,