[LSC] Add LOCAL_LICENSE_KINDS to prebuilts/sdk

Added SPDX-license-identifier-Apache-2.0 to:
  current/androidx-legacy/Android.bp
  current/extras/app-toolkit/Android.bp
  current/extras/constraint-layout-x/Android.bp
  current/extras/constraint-layout/Android.bp
  current/extras/material-design-x/Android.bp
  current/extras/material-design/Android.bp
  current/optional/Android.bp
  tools/jetifier/jetifier-standalone/Android.bp

Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD
    SPDX-license-identifier-CC0-1.0 SPDX-license-identifier-CPL-1.0
    SPDX-license-identifier-MIT SPDX-license-identifier-NCSA
    SPDX-license-identifier-OFL SPDX-license-identifier-Unicode-DFS
    SPDX-license-identifier-W3C legacy_unencumbered
to:
  Android.bp

Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD
    SPDX-license-identifier-CC0-1.0 SPDX-license-identifier-OFL
    SPDX-license-identifier-Unicode-DFS legacy_unencumbered
to:
  current/Android.bp
  current/support/Android.bp

Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD
    SPDX-license-identifier-CPL-1.0 SPDX-license-identifier-MIT
    SPDX-license-identifier-Unicode-DFS SPDX-license-identifier-W3C
to:
  tools/Android.bp
  tools/Android.mk

Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD
    SPDX-license-identifier-MIT SPDX-license-identifier-NCSA
to:
  renderscript/Android.bp

Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-OFL
    SPDX-license-identifier-Unicode-DFS
to:
  current/androidx/Android.bp

Bug: 68860345
Bug: 151177513
Bug: 151953481

Test: m all

Exempt-From-Owner-Approval: janitorial work
Change-Id: Ia89443d02c7c939370beadad6decae953b825065
Merged-in: Ia89443d02c7c939370beadad6decae953b825065
diff --git a/Android.bp b/Android.bp
index 17288f4..66fbe7a 100644
--- a/Android.bp
+++ b/Android.bp
@@ -1,3 +1,44 @@
+// *** THIS PACKAGE HAS SPECIAL LICENSING CONDITIONS.  PLEASE
+//     CONSULT THE OWNERS AND opensource-licensing@google.com BEFORE
+//     DEPENDING ON IT IN YOUR PROJECT. ***
+package {
+    default_applicable_licenses: ["prebuilts_sdk_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: "prebuilts_sdk_license",
+    visibility: [":__subpackages__"],
+    license_kinds: [
+        "SPDX-license-identifier-Apache-2.0",
+        "SPDX-license-identifier-BSD",
+        "SPDX-license-identifier-CC0-1.0",
+        "SPDX-license-identifier-CPL-1.0",
+        "SPDX-license-identifier-MIT",
+        "SPDX-license-identifier-NCSA",
+        "SPDX-license-identifier-OFL", // by exception only
+        "SPDX-license-identifier-Unicode-DFS",
+        "SPDX-license-identifier-W3C",
+        "legacy_unencumbered",
+    ],
+    license_text: [
+        "NOTICE",
+    ],
+}
+
 subdirs=["tools"]
 
 filegroup {