diff --git a/Tethering/Android.bp b/Tethering/Android.bp index 9805c54ca3..742fd02bb0 100644 --- a/Tethering/Android.bp +++ b/Tethering/Android.bp @@ -14,6 +14,10 @@ // limitations under the License. // +package { + default_applicable_licenses: ["Android-Apache-2.0"], +} + java_defaults { name: "TetheringAndroidLibraryDefaults", sdk_version: "module_current", diff --git a/Tethering/apex/Android.bp b/Tethering/apex/Android.bp index acb87bf5fc..e9deeff42d 100644 --- a/Tethering/apex/Android.bp +++ b/Tethering/apex/Android.bp @@ -14,6 +14,10 @@ // limitations under the License. // +package { + default_applicable_licenses: ["Android-Apache-2.0"], +} + apex { name: "com.android.tethering", // TODO: make updatable again once this contains only updatable artifacts (in particular, this diff --git a/Tethering/bpf_progs/Android.bp b/Tethering/bpf_progs/Android.bp index b06528b9d5..2b10f89761 100644 --- a/Tethering/bpf_progs/Android.bp +++ b/Tethering/bpf_progs/Android.bp @@ -17,6 +17,10 @@ // // struct definitions shared with JNI // +package { + default_applicable_licenses: ["Android-Apache-2.0"], +} + cc_library_headers { name: "bpf_tethering_headers", vendor_available: false, diff --git a/Tethering/common/TetheringLib/Android.bp b/Tethering/common/TetheringLib/Android.bp index a10729daff..2631d08774 100644 --- a/Tethering/common/TetheringLib/Android.bp +++ b/Tethering/common/TetheringLib/Android.bp @@ -13,6 +13,10 @@ // See the License for the specific language governing permissions and // limitations under the License. +package { + default_applicable_licenses: ["Android-Apache-2.0"], +} + java_sdk_library { name: "framework-tethering", defaults: ["framework-module-defaults"], diff --git a/Tethering/tests/Android.bp b/Tethering/tests/Android.bp index 731144cee0..8f31c577a6 100644 --- a/Tethering/tests/Android.bp +++ b/Tethering/tests/Android.bp @@ -14,6 +14,10 @@ // limitations under the License. // +package { + default_applicable_licenses: ["Android-Apache-2.0"], +} + filegroup { name: "TetheringTestsJarJarRules", srcs: ["jarjar-rules.txt"], diff --git a/Tethering/tests/integration/Android.bp b/Tethering/tests/integration/Android.bp index f456273d98..f63df2c8df 100644 --- a/Tethering/tests/integration/Android.bp +++ b/Tethering/tests/integration/Android.bp @@ -13,6 +13,10 @@ // See the License for the specific language governing permissions and // limitations under the License. // +package { + default_applicable_licenses: ["Android-Apache-2.0"], +} + java_defaults { name: "TetheringIntegrationTestsDefaults", srcs: [ diff --git a/Tethering/tests/mts/Android.bp b/Tethering/tests/mts/Android.bp index f925b0a53f..20a5f1855e 100644 --- a/Tethering/tests/mts/Android.bp +++ b/Tethering/tests/mts/Android.bp @@ -12,6 +12,10 @@ // See the License for the specific language governing permissions and // limitations under the License. +package { + default_applicable_licenses: ["Android-Apache-2.0"], +} + android_test { // This tests for functionality that is not required for devices that // don't use Tethering mainline module. diff --git a/Tethering/tests/privileged/Android.bp b/Tethering/tests/privileged/Android.bp index 9217345dc2..75fdd6ef23 100644 --- a/Tethering/tests/privileged/Android.bp +++ b/Tethering/tests/privileged/Android.bp @@ -14,6 +14,10 @@ // limitations under the License. // +package { + default_applicable_licenses: ["Android-Apache-2.0"], +} + java_defaults { name: "TetheringPrivilegedTestsJniDefaults", jni_libs: [ diff --git a/Tethering/tests/unit/Android.bp b/Tethering/tests/unit/Android.bp index 6c479a0971..d469b3717e 100644 --- a/Tethering/tests/unit/Android.bp +++ b/Tethering/tests/unit/Android.bp @@ -15,6 +15,10 @@ // // Tests in this folder are included both in unit tests and CTS. +package { + default_applicable_licenses: ["Android-Apache-2.0"], +} + java_library { name: "TetheringCommonTests", srcs: [ diff --git a/tests/cts/hostside/Android.bp b/tests/cts/hostside/Android.bp index 47b114b64d..3185f7edcd 100644 --- a/tests/cts/hostside/Android.bp +++ b/tests/cts/hostside/Android.bp @@ -12,6 +12,10 @@ // See the License for the specific language governing permissions and // limitations under the License. +package { + default_applicable_licenses: ["Android-Apache-2.0"], +} + java_test_host { name: "CtsHostsideNetworkTests", defaults: ["cts_defaults"], diff --git a/tests/cts/hostside/aidl/Android.bp b/tests/cts/hostside/aidl/Android.bp index 320a1fa443..2751f6ff82 100644 --- a/tests/cts/hostside/aidl/Android.bp +++ b/tests/cts/hostside/aidl/Android.bp @@ -12,6 +12,10 @@ // See the License for the specific language governing permissions and // limitations under the License. +package { + default_applicable_licenses: ["Android-Apache-2.0"], +} + java_test_helper_library { name: "CtsHostsideNetworkTestsAidl", sdk_version: "current", diff --git a/tests/cts/hostside/app/Android.bp b/tests/cts/hostside/app/Android.bp index 99037567b5..813e6c716f 100644 --- a/tests/cts/hostside/app/Android.bp +++ b/tests/cts/hostside/app/Android.bp @@ -14,6 +14,10 @@ // limitations under the License. // +package { + default_applicable_licenses: ["Android-Apache-2.0"], +} + android_test_helper_app { name: "CtsHostsideNetworkTestsApp", defaults: ["cts_support_defaults"], diff --git a/tests/cts/hostside/app2/Android.bp b/tests/cts/hostside/app2/Android.bp index 8e279311a8..b448459b6a 100644 --- a/tests/cts/hostside/app2/Android.bp +++ b/tests/cts/hostside/app2/Android.bp @@ -14,6 +14,10 @@ // limitations under the License. // +package { + default_applicable_licenses: ["Android-Apache-2.0"], +} + android_test_helper_app { name: "CtsHostsideNetworkTestsApp2", defaults: ["cts_support_defaults"], diff --git a/tests/cts/hostside/certs/Android.bp b/tests/cts/hostside/certs/Android.bp index ab4cf340d0..60b54769ea 100644 --- a/tests/cts/hostside/certs/Android.bp +++ b/tests/cts/hostside/certs/Android.bp @@ -1,3 +1,7 @@ +package { + default_applicable_licenses: ["Android-Apache-2.0"], +} + android_app_certificate { name: "cts-net-app", certificate: "cts-net-app", diff --git a/tests/cts/net/Android.bp b/tests/cts/net/Android.bp index 528171a036..229633e9f8 100644 --- a/tests/cts/net/Android.bp +++ b/tests/cts/net/Android.bp @@ -12,6 +12,10 @@ // See the License for the specific language governing permissions and // limitations under the License. +package { + default_applicable_licenses: ["Android-Apache-2.0"], +} + java_defaults { name: "CtsNetTestCasesDefaults", defaults: ["cts_defaults"], diff --git a/tests/cts/net/api23Test/Android.bp b/tests/cts/net/api23Test/Android.bp index e43a5e82d0..5b372944c6 100644 --- a/tests/cts/net/api23Test/Android.bp +++ b/tests/cts/net/api23Test/Android.bp @@ -12,6 +12,10 @@ // See the License for the specific language governing permissions and // limitations under the License. +package { + default_applicable_licenses: ["Android-Apache-2.0"], +} + android_test { name: "CtsNetApi23TestCases", defaults: ["cts_defaults"], diff --git a/tests/cts/net/appForApi23/Android.bp b/tests/cts/net/appForApi23/Android.bp index cec6d7f5a1..b39690f14f 100644 --- a/tests/cts/net/appForApi23/Android.bp +++ b/tests/cts/net/appForApi23/Android.bp @@ -12,6 +12,10 @@ // See the License for the specific language governing permissions and // limitations under the License. +package { + default_applicable_licenses: ["Android-Apache-2.0"], +} + android_test { name: "CtsNetTestAppForApi23", defaults: ["cts_defaults"], diff --git a/tests/cts/net/jni/Android.bp b/tests/cts/net/jni/Android.bp index 3953aeb701..13f38d77cb 100644 --- a/tests/cts/net/jni/Android.bp +++ b/tests/cts/net/jni/Android.bp @@ -12,6 +12,10 @@ // See the License for the specific language governing permissions and // limitations under the License. +package { + default_applicable_licenses: ["Android-Apache-2.0"], +} + cc_library_shared { name: "libnativedns_jni", diff --git a/tests/cts/net/native/dns/Android.bp b/tests/cts/net/native/dns/Android.bp index 6defd359ab..1bc5a86068 100644 --- a/tests/cts/net/native/dns/Android.bp +++ b/tests/cts/net/native/dns/Android.bp @@ -1,3 +1,7 @@ +package { + default_applicable_licenses: ["Android-Apache-2.0"], +} + cc_defaults { name: "dns_async_defaults", diff --git a/tests/cts/net/native/qtaguid/Android.bp b/tests/cts/net/native/qtaguid/Android.bp index 4861651504..68bb14da87 100644 --- a/tests/cts/net/native/qtaguid/Android.bp +++ b/tests/cts/net/native/qtaguid/Android.bp @@ -14,6 +14,10 @@ // Build the unit tests. +package { + default_applicable_licenses: ["Android-Apache-2.0"], +} + cc_test { name: "CtsNativeNetTestCases", diff --git a/tests/cts/net/util/Android.bp b/tests/cts/net/util/Android.bp index c36d976423..88a206858d 100644 --- a/tests/cts/net/util/Android.bp +++ b/tests/cts/net/util/Android.bp @@ -15,6 +15,10 @@ // // Common utilities for cts net tests. +package { + default_applicable_licenses: ["Android-Apache-2.0"], +} + java_library { name: "cts-net-utils", srcs: ["java/**/*.java", "java/**/*.kt"], @@ -23,4 +27,4 @@ java_library { "junit", "net-tests-utils", ], -} \ No newline at end of file +} diff --git a/tests/cts/tethering/Android.bp b/tests/cts/tethering/Android.bp index b1d4a6052b..824c874330 100644 --- a/tests/cts/tethering/Android.bp +++ b/tests/cts/tethering/Android.bp @@ -12,6 +12,10 @@ // See the License for the specific language governing permissions and // limitations under the License. +package { + default_applicable_licenses: ["Android-Apache-2.0"], +} + android_test { name: "CtsTetheringTest", defaults: ["cts_defaults"],