[LSC] Add LOCAL_LICENSE_KINDS to packages/modules/adb

Added SPDX-license-identifier-Apache-2.0 to:
  Android.bp
  apex/Android.bp
  crypto/Android.bp
  crypto/tests/Android.bp
  fastdeploy/Android.bp
  libs/adbconnection/Android.bp
  libs/libadbd_fs/Android.bp
  pairing_auth/Android.bp
  pairing_auth/tests/Android.bp
  pairing_connection/Android.bp
  pairing_connection/tests/Android.bp
  proto/Android.bp
  tls/Android.bp
  tls/tests/Android.bp
  tools/Android.bp

Bug: 68860345
Bug: 151177513
Bug: 151953481

Test: m all

Exempt-From-Owner-Approval: janitorial work
Change-Id: Id2087906a4e095ad8380cc646299b3739d82aed9
diff --git a/Android.bp b/Android.bp
index 5df1cf0..360010f 100644
--- a/Android.bp
+++ b/Android.bp
@@ -12,6 +12,23 @@
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
+package {
+    default_applicable_licenses: ["packages_modules_adb_license"],
+}
+
+// Added automatically by a large-scale-change
+// See: http://go/android-license-faq
+license {
+    name: "packages_modules_adb_license",
+    visibility: [":__subpackages__"],
+    license_kinds: [
+        "SPDX-license-identifier-Apache-2.0",
+    ],
+    license_text: [
+        "NOTICE",
+    ],
+}
+
 tidy_errors = [
     "-*",
     "bugprone-inaccurate-erase",
diff --git a/apex/Android.bp b/apex/Android.bp
index 6882886..39f855b 100644
--- a/apex/Android.bp
+++ b/apex/Android.bp
@@ -1,3 +1,12 @@
+package {
+    // See: http://go/android-license-faq
+    // A large-scale-change added 'default_applicable_licenses' to import
+    // all of the 'license_kinds' from "packages_modules_adb_license"
+    // to get the below license kinds:
+    //   SPDX-license-identifier-Apache-2.0
+    default_applicable_licenses: ["packages_modules_adb_license"],
+}
+
 apex_defaults {
     name: "com.android.adbd-defaults",
     updatable: true,
diff --git a/crypto/Android.bp b/crypto/Android.bp
index 1ff76dc..8fdce89 100644
--- a/crypto/Android.bp
+++ b/crypto/Android.bp
@@ -12,6 +12,15 @@
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
+package {
+    // See: http://go/android-license-faq
+    // A large-scale-change added 'default_applicable_licenses' to import
+    // all of the 'license_kinds' from "packages_modules_adb_license"
+    // to get the below license kinds:
+    //   SPDX-license-identifier-Apache-2.0
+    default_applicable_licenses: ["packages_modules_adb_license"],
+}
+
 cc_defaults {
     name: "libadb_crypto_defaults",
     cflags: [
diff --git a/crypto/tests/Android.bp b/crypto/tests/Android.bp
index b041055..1ef5f3d 100644
--- a/crypto/tests/Android.bp
+++ b/crypto/tests/Android.bp
@@ -14,6 +14,15 @@
 // limitations under the License.
 //
 
+package {
+    // See: http://go/android-license-faq
+    // A large-scale-change added 'default_applicable_licenses' to import
+    // all of the 'license_kinds' from "packages_modules_adb_license"
+    // to get the below license kinds:
+    //   SPDX-license-identifier-Apache-2.0
+    default_applicable_licenses: ["packages_modules_adb_license"],
+}
+
 cc_test {
     name: "adb_crypto_test",
     srcs: [
diff --git a/fastdeploy/Android.bp b/fastdeploy/Android.bp
index f5893aa..c2daf9b 100644
--- a/fastdeploy/Android.bp
+++ b/fastdeploy/Android.bp
@@ -13,6 +13,15 @@
 // See the License for the specific language governing permissions and
 // limitations under the License.
 //
+package {
+    // See: http://go/android-license-faq
+    // A large-scale-change added 'default_applicable_licenses' to import
+    // all of the 'license_kinds' from "packages_modules_adb_license"
+    // to get the below license kinds:
+    //   SPDX-license-identifier-Apache-2.0
+    default_applicable_licenses: ["packages_modules_adb_license"],
+}
+
 java_library {
     name: "deployagent_lib",
     sdk_version: "24",
diff --git a/libs/adbconnection/Android.bp b/libs/adbconnection/Android.bp
index 0c01217..da0b5b6 100644
--- a/libs/adbconnection/Android.bp
+++ b/libs/adbconnection/Android.bp
@@ -2,6 +2,15 @@
 // =========================================================
 // libadbconnection_client/server implement the socket handling for jdwp
 // forwarding and the track-jdwp service.
+package {
+    // See: http://go/android-license-faq
+    // A large-scale-change added 'default_applicable_licenses' to import
+    // all of the 'license_kinds' from "packages_modules_adb_license"
+    // to get the below license kinds:
+    //   SPDX-license-identifier-Apache-2.0
+    default_applicable_licenses: ["packages_modules_adb_license"],
+}
+
 cc_library {
     name: "libadbconnection_server",
     srcs: ["adbconnection_server.cpp"],
diff --git a/libs/libadbd_fs/Android.bp b/libs/libadbd_fs/Android.bp
index d178148..ef7bc10 100644
--- a/libs/libadbd_fs/Android.bp
+++ b/libs/libadbd_fs/Android.bp
@@ -1,5 +1,14 @@
 // libadbd_fs
 // =========================================================
+package {
+    // See: http://go/android-license-faq
+    // A large-scale-change added 'default_applicable_licenses' to import
+    // all of the 'license_kinds' from "packages_modules_adb_license"
+    // to get the below license kinds:
+    //   SPDX-license-identifier-Apache-2.0
+    default_applicable_licenses: ["packages_modules_adb_license"],
+}
+
 cc_library {
     name: "libadbd_fs",
     defaults: ["adbd_defaults"],
diff --git a/pairing_auth/Android.bp b/pairing_auth/Android.bp
index 9785ee2..e2e9fc4 100644
--- a/pairing_auth/Android.bp
+++ b/pairing_auth/Android.bp
@@ -12,6 +12,15 @@
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
+package {
+    // See: http://go/android-license-faq
+    // A large-scale-change added 'default_applicable_licenses' to import
+    // all of the 'license_kinds' from "packages_modules_adb_license"
+    // to get the below license kinds:
+    //   SPDX-license-identifier-Apache-2.0
+    default_applicable_licenses: ["packages_modules_adb_license"],
+}
+
 cc_defaults {
     name: "libadb_pairing_auth_defaults",
     cflags: [
diff --git a/pairing_auth/tests/Android.bp b/pairing_auth/tests/Android.bp
index 213123d..b6cff91 100644
--- a/pairing_auth/tests/Android.bp
+++ b/pairing_auth/tests/Android.bp
@@ -14,6 +14,15 @@
 // limitations under the License.
 //
 
+package {
+    // See: http://go/android-license-faq
+    // A large-scale-change added 'default_applicable_licenses' to import
+    // all of the 'license_kinds' from "packages_modules_adb_license"
+    // to get the below license kinds:
+    //   SPDX-license-identifier-Apache-2.0
+    default_applicable_licenses: ["packages_modules_adb_license"],
+}
+
 cc_test {
     name: "adb_pairing_auth_test",
     srcs: [
diff --git a/pairing_connection/Android.bp b/pairing_connection/Android.bp
index 0cfb7c0..3c5b0a3 100644
--- a/pairing_connection/Android.bp
+++ b/pairing_connection/Android.bp
@@ -12,6 +12,15 @@
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
+package {
+    // See: http://go/android-license-faq
+    // A large-scale-change added 'default_applicable_licenses' to import
+    // all of the 'license_kinds' from "packages_modules_adb_license"
+    // to get the below license kinds:
+    //   SPDX-license-identifier-Apache-2.0
+    default_applicable_licenses: ["packages_modules_adb_license"],
+}
+
 cc_defaults {
     name: "libadb_pairing_connection_defaults",
     cflags: [
diff --git a/pairing_connection/tests/Android.bp b/pairing_connection/tests/Android.bp
index bf075bc..6070ef9 100644
--- a/pairing_connection/tests/Android.bp
+++ b/pairing_connection/tests/Android.bp
@@ -14,6 +14,15 @@
 // limitations under the License.
 //
 
+package {
+    // See: http://go/android-license-faq
+    // A large-scale-change added 'default_applicable_licenses' to import
+    // all of the 'license_kinds' from "packages_modules_adb_license"
+    // to get the below license kinds:
+    //   SPDX-license-identifier-Apache-2.0
+    default_applicable_licenses: ["packages_modules_adb_license"],
+}
+
 cc_test {
     name: "adb_pairing_connection_test",
     srcs: [
diff --git a/proto/Android.bp b/proto/Android.bp
index b7eaa48..c7271fb 100644
--- a/proto/Android.bp
+++ b/proto/Android.bp
@@ -12,6 +12,15 @@
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
+package {
+    // See: http://go/android-license-faq
+    // A large-scale-change added 'default_applicable_licenses' to import
+    // all of the 'license_kinds' from "packages_modules_adb_license"
+    // to get the below license kinds:
+    //   SPDX-license-identifier-Apache-2.0
+    default_applicable_licenses: ["packages_modules_adb_license"],
+}
+
 cc_defaults {
     name: "libadb_protos_defaults",
     cflags: [
diff --git a/tls/Android.bp b/tls/Android.bp
index eee5984..9e850ab 100644
--- a/tls/Android.bp
+++ b/tls/Android.bp
@@ -12,6 +12,15 @@
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
+package {
+    // See: http://go/android-license-faq
+    // A large-scale-change added 'default_applicable_licenses' to import
+    // all of the 'license_kinds' from "packages_modules_adb_license"
+    // to get the below license kinds:
+    //   SPDX-license-identifier-Apache-2.0
+    default_applicable_licenses: ["packages_modules_adb_license"],
+}
+
 cc_defaults {
     name: "libadb_tls_connection_defaults",
     cflags: [
diff --git a/tls/tests/Android.bp b/tls/tests/Android.bp
index 198de58..2d3bb2b 100644
--- a/tls/tests/Android.bp
+++ b/tls/tests/Android.bp
@@ -14,6 +14,15 @@
 // limitations under the License.
 //
 
+package {
+    // See: http://go/android-license-faq
+    // A large-scale-change added 'default_applicable_licenses' to import
+    // all of the 'license_kinds' from "packages_modules_adb_license"
+    // to get the below license kinds:
+    //   SPDX-license-identifier-Apache-2.0
+    default_applicable_licenses: ["packages_modules_adb_license"],
+}
+
 cc_test {
     name: "adb_tls_connection_test",
     srcs: [
diff --git a/tools/Android.bp b/tools/Android.bp
index a7af53c..a6c3d9b 100644
--- a/tools/Android.bp
+++ b/tools/Android.bp
@@ -12,6 +12,15 @@
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
+package {
+    // See: http://go/android-license-faq
+    // A large-scale-change added 'default_applicable_licenses' to import
+    // all of the 'license_kinds' from "packages_modules_adb_license"
+    // to get the below license kinds:
+    //   SPDX-license-identifier-Apache-2.0
+    default_applicable_licenses: ["packages_modules_adb_license"],
+}
+
 cc_binary_host {
     name: "check_ms_os_desc",