[LSC] Add LOCAL_LICENSE_KINDS to packages/modules/NetworkStack
Added SPDX-license-identifier-Apache-2.0 to:
Android.bp
common/captiveportal/Android.bp
common/moduleutils/Android.bp
common/netlinkclient/Android.bp
common/networkstackclient/Android.bp
tests/hostdriven/Android.bp
tests/hostlib/Android.bp
tests/integration/Android.bp
tests/unit/Android.bp
tests/unit/jni/Android.bp
Bug: 68860345
Bug: 151177513
Bug: 151953481
Test: m all
Exempt-From-Owner-Approval: janitorial work
Change-Id: I96e353c36423f44fd0eecad3a92542ee457c16de
diff --git a/Android.bp b/Android.bp
index ae1fd89..b1bce40 100644
--- a/Android.bp
+++ b/Android.bp
@@ -41,6 +41,10 @@
// TestNetworkStack
// Common defaults to define SDK level
+package {
+ default_applicable_licenses: ["Android-Apache-2.0"],
+}
+
java_defaults {
name: "NetworkStackDevApiLevel",
min_sdk_version: "29",
diff --git a/common/captiveportal/Android.bp b/common/captiveportal/Android.bp
index 0b49eb2..876e733 100644
--- a/common/captiveportal/Android.bp
+++ b/common/captiveportal/Android.bp
@@ -14,6 +14,10 @@
// limitations under the License.
//
+package {
+ default_applicable_licenses: ["Android-Apache-2.0"],
+}
+
java_library {
name: "captiveportal-lib",
srcs: ["src/**/*.java"],
@@ -23,4 +27,4 @@
sdk_version: "system_current",
// this is part of updatable modules(NetworkStack) which targets 29(Q)
min_sdk_version: "29",
-}
\ No newline at end of file
+}
diff --git a/common/moduleutils/Android.bp b/common/moduleutils/Android.bp
index 644b0a4..5d1c9e3 100644
--- a/common/moduleutils/Android.bp
+++ b/common/moduleutils/Android.bp
@@ -17,6 +17,10 @@
// Shared utility sources to be used by multiple network modules
// TODO: remove all frameworks/base dependencies on packages/modules/NetworkStack and
// frameworks/base/packages/Tethering by moving these files to frameworks/libs/net.
+package {
+ default_applicable_licenses: ["Android-Apache-2.0"],
+}
+
filegroup {
name: "net-module-utils-srcs",
srcs: [
diff --git a/common/netlinkclient/Android.bp b/common/netlinkclient/Android.bp
index 2b4a2d6..9a60e57 100644
--- a/common/netlinkclient/Android.bp
+++ b/common/netlinkclient/Android.bp
@@ -14,6 +14,10 @@
// limitations under the License.
//
+package {
+ default_applicable_licenses: ["Android-Apache-2.0"],
+}
+
java_library {
name: "netlink-client",
srcs: [
diff --git a/common/networkstackclient/Android.bp b/common/networkstackclient/Android.bp
index 1bcbb34..96ff315 100644
--- a/common/networkstackclient/Android.bp
+++ b/common/networkstackclient/Android.bp
@@ -15,6 +15,10 @@
//
// AIDL interfaces between the core system and the networking mainline module.
+package {
+ default_applicable_licenses: ["Android-Apache-2.0"],
+}
+
aidl_interface {
name: "ipmemorystore-aidl-interfaces",
local_include_dir: "src",
diff --git a/tests/hostdriven/Android.bp b/tests/hostdriven/Android.bp
index 3509f89..6c3de45 100644
--- a/tests/hostdriven/Android.bp
+++ b/tests/hostdriven/Android.bp
@@ -14,6 +14,10 @@
// limitations under the License.
//
+package {
+ default_applicable_licenses: ["Android-Apache-2.0"],
+}
+
java_test_host {
name: "NetworkStackHostTests",
srcs: ["host/src/**/*.kt"],
diff --git a/tests/hostlib/Android.bp b/tests/hostlib/Android.bp
index 9a88634..189a88c 100644
--- a/tests/hostlib/Android.bp
+++ b/tests/hostlib/Android.bp
@@ -14,6 +14,10 @@
// limitations under the License.
//
+package {
+ default_applicable_licenses: ["Android-Apache-2.0"],
+}
+
java_library_host {
name: "net-host-tests-utils",
srcs: [
@@ -26,4 +30,4 @@
"kotlin-test",
"cts-install-lib-host",
],
-}
\ No newline at end of file
+}
diff --git a/tests/integration/Android.bp b/tests/integration/Android.bp
index 53de58b..875b089 100644
--- a/tests/integration/Android.bp
+++ b/tests/integration/Android.bp
@@ -14,6 +14,10 @@
// limitations under the License.
//
+package {
+ default_applicable_licenses: ["Android-Apache-2.0"],
+}
+
java_defaults {
name: "NetworkStackIntegrationTestsJniDefaults",
defaults: ["libnetworkstackutilsjni_deps"],
diff --git a/tests/unit/Android.bp b/tests/unit/Android.bp
index 50974c3..e673c5a 100644
--- a/tests/unit/Android.bp
+++ b/tests/unit/Android.bp
@@ -14,6 +14,10 @@
// limitations under the License.
//
+package {
+ default_applicable_licenses: ["Android-Apache-2.0"],
+}
+
java_defaults {
name: "NetworkStackTestsDefaults",
platform_apis: true,
diff --git a/tests/unit/jni/Android.bp b/tests/unit/jni/Android.bp
index fa1f420..0c9087f 100644
--- a/tests/unit/jni/Android.bp
+++ b/tests/unit/jni/Android.bp
@@ -14,6 +14,10 @@
// limitations under the License.
//
+package {
+ default_applicable_licenses: ["Android-Apache-2.0"],
+}
+
cc_library_shared {
name: "libnetworkstacktestsjni",
srcs: [