[LSC] Add LOCAL_LICENSE_KINDS to external/rust/crates/libsqlite3-sys am: 0f6dcf73b7 am: a0b38d2488

Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/libsqlite3-sys/+/1588707

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I044bc13a56cb149d2dd18d6d96d23b07acea1240
diff --git a/Android.bp b/Android.bp
index 34526d3..982f3fb 100644
--- a/Android.bp
+++ b/Android.bp
@@ -3,6 +3,38 @@
 // We renamed the shared_libs dependence from libsqlite3 to libsqlite.
 // srcs has been moved out of _defaults to work around b/163420435
 
+package {
+    default_applicable_licenses: [
+        "external_rust_crates_libsqlite3-sys_license",
+    ],
+}
+
+// Added automatically by a large-scale-change that took the approach of
+// 'apply every license found to every target'. While this makes sure we respect
+// every license restriction, it may not be entirely correct.
+//
+// e.g. GPL in an MIT project might only apply to the contrib/ directory.
+//
+// Please consider splitting the single license below into multiple licenses,
+// taking care not to lose any license_kind information, and overriding the
+// default license using the 'licenses: [...]' property on targets as needed.
+//
+// For unused files, consider creating a 'fileGroup' with "//visibility:private"
+// to attach the license to, and including a comment whether the files may be
+// used in the current project.
+// See: http://go/android-license-faq
+license {
+    name: "external_rust_crates_libsqlite3-sys_license",
+    visibility: [":__subpackages__"],
+    license_kinds: [
+        "SPDX-license-identifier-MIT",
+        "legacy_permissive",
+    ],
+    license_text: [
+        "LICENSE",
+    ],
+}
+
 rust_library {
     name: "liblibsqlite3_sys",
     host_supported: true,
diff --git a/android/Android.bp b/android/Android.bp
index 2df9cdb..0be2834 100644
--- a/android/Android.bp
+++ b/android/Android.bp
@@ -1,3 +1,14 @@
+package {
+    // See: http://go/android-license-faq
+    // A large-scale-change added 'default_applicable_licenses' to import
+    // all of the 'license_kinds' from "external_rust_crates_libsqlite3-sys_license"
+    // to get the below license kinds:
+    //   SPDX-license-identifier-MIT
+    default_applicable_licenses: [
+        "external_rust_crates_libsqlite3-sys_license",
+    ],
+}
+
 rust_binary_host {
     name: "sqlite3_bindgen_build",
     srcs: ["build.rs"],