Upgrade XZ for Java to v1.9

This project was upgraded with external_updater.
Usage: tools/external_updater/updater.sh update xz-java
For more info, check https://cs.android.com/android/platform/superproject/+/main:tools/external_updater/README.md

Test: TreeHugger
Change-Id: I45526f12c3b5d8ab641ffd5d3519b604a8ab0647
diff --git a/Android.bp b/Android.bp
new file mode 100644
index 0000000..f4d0a1d
--- /dev/null
+++ b/Android.bp
@@ -0,0 +1,46 @@
+//
+// Copyright (C) 2011 The Android Open Source Project
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+package {
+    default_applicable_licenses: ["external_xz-java_license"],
+}
+
+// Added automatically by a large-scale-change
+// See: http://go/android-license-faq
+license {
+    name: "external_xz-java_license",
+    visibility: [":__subpackages__"],
+    license_kinds: [
+        "legacy_unencumbered",
+    ],
+    license_text: [
+        "COPYING",
+    ],
+}
+
+java_library_static {
+    name: "xz-java",
+
+    srcs: ["src/**/*.java"],
+    java_resource_dirs: ["src"],
+
+    host_supported: true,
+    sdk_version: "current",
+    // TODO(b/237039251) use "apex_inherit" when Java modules support it
+    min_sdk_version: "29",
+    // b/267831518: Pin tradefed and dependencies to Java 11.
+    java_version: "11",
+
+}
diff --git a/LICENSE b/LICENSE
new file mode 120000
index 0000000..132d13f
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1 @@
+NOTICE
\ No newline at end of file
diff --git a/METADATA b/METADATA
new file mode 100644
index 0000000..abad0ef
--- /dev/null
+++ b/METADATA
@@ -0,0 +1,23 @@
+# This project was upgraded with external_updater.
+# Usage: tools/external_updater/updater.sh update xz-java
+# For more info, check https://cs.android.com/android/platform/superproject/+/main:tools/external_updater/README.md
+
+name: "XZ for Java"
+description: "This aims to be a complete implementation of XZ data compression in pure Java. Single-threaded streamed compression and decompression and random access decompression have been fully implemented. Threading is planned but it is unknown when it will be implemented."
+third_party {
+  license_type: UNENCUMBERED
+  last_upgrade_date {
+    year: 2023
+    month: 11
+    day: 28
+  }
+  identifier {
+    type: "HOMEPAGE"
+    value: "https://tukaani.org/xz/java.html"
+  }
+  identifier {
+    type: "GIT"
+    value: "https://github.com/tukaani-project/xz-java.git"
+    version: "v1.9"
+  }
+}
diff --git a/MODULE_LICENSE_PUBLIC_DOMAIN b/MODULE_LICENSE_PUBLIC_DOMAIN
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/MODULE_LICENSE_PUBLIC_DOMAIN
diff --git a/NOTICE b/NOTICE
new file mode 120000
index 0000000..d24842f
--- /dev/null
+++ b/NOTICE
@@ -0,0 +1 @@
+COPYING
\ No newline at end of file
diff --git a/OWNERS b/OWNERS
new file mode 100644
index 0000000..7529cb9
--- /dev/null
+++ b/OWNERS
@@ -0,0 +1 @@
+include platform/system/core:/janitors/OWNERS