diff options
author | Bob Badour <bbadour@google.com> | 2021-03-11 19:30:34 -0800 |
---|---|---|
committer | Bob Badour <bbadour@google.com> | 2021-03-11 19:30:34 -0800 |
commit | 133979c1e27188c64b95b9ef08af40ce4a4e1017 (patch) | |
tree | 743da7c5388edd93b4cf1342a966da2169930d45 | |
parent | d0b2ef730c614810c1d5e0c38af2c2409c282f7c (diff) | |
download | cuttlefish-133979c1e27188c64b95b9ef08af40ce4a4e1017.tar.gz |
[LSC] Add LOCAL_LICENSE_KINDS to device/google/cuttlefish
Added SPDX-license-identifier-Apache-2.0 to:
build/Android.bp
common/frontend/socket_vsock_proxy/Android.bp
common/libs/device_config/Android.bp
common/libs/fs/Android.bp
common/libs/net/Android.bp
common/libs/security/Android.bp
common/libs/utils/Android.bp
guest/commands/bt_vhci_forwarder/Android.bp
guest/commands/rename_netiface/Android.bp
guest/commands/rotate/Android.bp
guest/commands/setup_wifi/Android.bp
guest/commands/vsoc_input_service/Android.bp
guest/hals/audio/Android.bp
guest/hals/bt/remote/Android.bp
guest/hals/gatekeeper/remote/Android.bp
guest/hals/health/Android.bp
guest/hals/health/storage/Android.bp
guest/hals/hwcomposer/Android.bp
guest/hals/keymaster/remote/Android.bp
guest/hals/ril/reference-libril/Android.bp
guest/hals/ril/reference-ril/Android.bp
guest/hals/rild/Android.bp
guest/monitoring/cuttlefish_service/Android.bp
guest/monitoring/tombstone_transmit/Android.bp
guest/services/suspend_blocker/Android.bp
host/commands/adbshell/Android.bp
host/commands/assemble_cvd/Android.bp
host/commands/bt_connector/Android.bp
host/commands/config_server/Android.bp
host/commands/console_forwarder/Android.bp
host/commands/cvd_host_bugreport/Android.bp
host/commands/cvd_status/Android.bp
host/commands/fetcher/Android.bp
host/commands/gnss_grpc_proxy/Android.bp
host/commands/kernel_log_monitor/Android.bp
host/commands/launch/Android.bp
host/commands/log_tee/Android.bp
host/commands/logcat_receiver/Android.bp
host/commands/metrics/Android.bp
host/commands/metrics/proto/Android.bp
host/commands/modem_simulator/Android.bp
host/commands/powerwash_cvd/Android.bp
host/commands/restart_cvd/Android.bp
host/commands/run_cvd/Android.bp
host/commands/secure_env/Android.bp
host/commands/stop_cvd/Android.bp
host/commands/tapsetiff/Android.bp
host/commands/tombstone_receiver/Android.bp
host/example_custom_actions/Android.bp
host/frontend/adb_connector/Android.bp
host/frontend/vnc_server/Android.bp
host/frontend/webrtc/Android.bp
host/frontend/webrtc_operator/Android.bp
host/libs/allocd/Android.bp
host/libs/audio_connector/Android.bp
host/libs/config/Android.bp
host/libs/msg_queue/Android.bp
host/libs/screen_connector/Android.bp
host/libs/vm_manager/Android.bp
host/libs/wayland/Android.bp
host/libs/websocket/Android.bp
recovery/Android.bp
shared/config/Android.bp
shared/config/Android.mk
tests/graphics/Android.bp
tests/hal/Android.bp
tests/powerwash/Android.bp
tests/recovery/Android.bp
tests/ril/Android.bp
tests/wifi/Android.bp
Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-MIT to:
Android.bp
host/libs/graphics_detector/Android.bp
Bug: 68860345
Bug: 151177513
Bug: 151953481
Test: m all
Exempt-From-Owner-Approval: janitorial work
Change-Id: I1bad0b6e7245d7b85c0f0ba2c66e851ffd7b1693
72 files changed, 333 insertions, 3 deletions
diff --git a/Android.bp b/Android.bp index 9e9965c04..7ad70eef6 100644 --- a/Android.bp +++ b/Android.bp @@ -13,6 +13,34 @@ // See the License for the specific language governing permissions and // limitations under the License. +package { + default_applicable_licenses: ["device_google_cuttlefish_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: "device_google_cuttlefish_license", + visibility: [":__subpackages__"], + license_kinds: [ + "SPDX-license-identifier-Apache-2.0", + "SPDX-license-identifier-MIT", + ], + // large-scale-change unable to identify any license_text files +} + cc_library_headers { name: "cuttlefish_common_headers", vendor_available: true, diff --git a/build/Android.bp b/build/Android.bp index 8223218a6..870f92ec9 100644 --- a/build/Android.bp +++ b/build/Android.bp @@ -1,3 +1,7 @@ +package { + default_applicable_licenses: ["Android-Apache-2.0"], +} + bootstrap_go_package { name: "cuttlefish-soong-rules", pkgPath: "android/soong/cuttlefish", diff --git a/common/frontend/socket_vsock_proxy/Android.bp b/common/frontend/socket_vsock_proxy/Android.bp index deed7d545..93354085a 100644 --- a/common/frontend/socket_vsock_proxy/Android.bp +++ b/common/frontend/socket_vsock_proxy/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"], +} + cc_binary { name: "socket_vsock_proxy", srcs: [ diff --git a/common/libs/device_config/Android.bp b/common/libs/device_config/Android.bp index 7e87dca02..00a6a0a0d 100644 --- a/common/libs/device_config/Android.bp +++ b/common/libs/device_config/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"], +} + cc_library { name: "libcuttlefish_device_config_proto", proto: { diff --git a/common/libs/fs/Android.bp b/common/libs/fs/Android.bp index 6283e8fc3..c140e0de7 100644 --- a/common/libs/fs/Android.bp +++ b/common/libs/fs/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"], +} + cc_library { name: "libcuttlefish_fs", srcs: [ diff --git a/common/libs/net/Android.bp b/common/libs/net/Android.bp index c2cf5a963..802141e53 100644 --- a/common/libs/net/Android.bp +++ b/common/libs/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"], +} + cc_library_shared { name: "cuttlefish_net", srcs: [ diff --git a/common/libs/security/Android.bp b/common/libs/security/Android.bp index a1e5c857e..4f2295161 100644 --- a/common/libs/security/Android.bp +++ b/common/libs/security/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"], +} + cc_library { name: "libcuttlefish_security", defaults: ["hidl_defaults", "cuttlefish_host"], diff --git a/common/libs/utils/Android.bp b/common/libs/utils/Android.bp index c317048a4..f8ca5e242 100644 --- a/common/libs/utils/Android.bp +++ b/common/libs/utils/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"], +} + cc_library { name: "libcuttlefish_utils", srcs: [ diff --git a/guest/commands/bt_vhci_forwarder/Android.bp b/guest/commands/bt_vhci_forwarder/Android.bp index 6260b175a..2910022d9 100644 --- a/guest/commands/bt_vhci_forwarder/Android.bp +++ b/guest/commands/bt_vhci_forwarder/Android.bp @@ -1,3 +1,7 @@ +package { + default_applicable_licenses: ["Android-Apache-2.0"], +} + cc_binary { name: "bt_vhci_forwarder", srcs: [ diff --git a/guest/commands/rename_netiface/Android.bp b/guest/commands/rename_netiface/Android.bp index b93a46589..f7b71be0f 100644 --- a/guest/commands/rename_netiface/Android.bp +++ b/guest/commands/rename_netiface/Android.bp @@ -14,6 +14,10 @@ // limitations under the License. +package { + default_applicable_licenses: ["Android-Apache-2.0"], +} + cc_binary { name: "rename_netiface", srcs: [ diff --git a/guest/commands/rotate/Android.bp b/guest/commands/rotate/Android.bp index 5edfcf3a7..6568c0e3a 100644 --- a/guest/commands/rotate/Android.bp +++ b/guest/commands/rotate/Android.bp @@ -1,3 +1,7 @@ +package { + default_applicable_licenses: ["Android-Apache-2.0"], +} + cc_binary { name: "cuttlefish_rotate", srcs: ["main.cpp"], diff --git a/guest/commands/setup_wifi/Android.bp b/guest/commands/setup_wifi/Android.bp index e578af272..21472b1cb 100644 --- a/guest/commands/setup_wifi/Android.bp +++ b/guest/commands/setup_wifi/Android.bp @@ -14,6 +14,10 @@ // limitations under the License. +package { + default_applicable_licenses: ["Android-Apache-2.0"], +} + cc_binary { name: "setup_wifi", srcs: [ diff --git a/guest/commands/vsoc_input_service/Android.bp b/guest/commands/vsoc_input_service/Android.bp index d8f309595..79ac9898c 100644 --- a/guest/commands/vsoc_input_service/Android.bp +++ b/guest/commands/vsoc_input_service/Android.bp @@ -14,6 +14,10 @@ // limitations under the License. +package { + default_applicable_licenses: ["Android-Apache-2.0"], +} + cc_binary { name: "vsoc_input_service", srcs: [ diff --git a/guest/hals/audio/Android.bp b/guest/hals/audio/Android.bp index 93a74558a..c6faae790 100644 --- a/guest/hals/audio/Android.bp +++ b/guest/hals/audio/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: "audio.primary.cutf", relative_install_path: "hw", diff --git a/guest/hals/bt/remote/Android.bp b/guest/hals/bt/remote/Android.bp index 5f0857d33..5ad483ab4 100644 --- a/guest/hals/bt/remote/Android.bp +++ b/guest/hals/bt/remote/Android.bp @@ -1,3 +1,7 @@ +package { + default_applicable_licenses: ["Android-Apache-2.0"], +} + cc_binary { name: "android.hardware.bluetooth@1.1-service.remote", defaults: ["cuttlefish_guest_only", "hidl_defaults"], diff --git a/guest/hals/gatekeeper/remote/Android.bp b/guest/hals/gatekeeper/remote/Android.bp index 5b1812428..d20ad9f82 100644 --- a/guest/hals/gatekeeper/remote/Android.bp +++ b/guest/hals/gatekeeper/remote/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_binary { name: "android.hardware.gatekeeper@1.0-service.remote", defaults: ["cuttlefish_guest_only", "hidl_defaults"], diff --git a/guest/hals/health/Android.bp b/guest/hals/health/Android.bp index 3f2142576..81d19a3a5 100644 --- a/guest/hals/health/Android.bp +++ b/guest/hals/health/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"], +} + cc_library_shared { name: "android.hardware.health@2.1-impl-cuttlefish", stem: "android.hardware.health@2.0-impl-2.1-cuttlefish", diff --git a/guest/hals/health/storage/Android.bp b/guest/hals/health/storage/Android.bp index 930f00217..dc57d0f50 100644 --- a/guest/hals/health/storage/Android.bp +++ b/guest/hals/health/storage/Android.bp @@ -14,6 +14,10 @@ * limitations under the License. */ +package { + default_applicable_licenses: ["Android-Apache-2.0"], +} + cc_binary { name: "android.hardware.health.storage-service.cuttlefish", vendor: true, diff --git a/guest/hals/hwcomposer/Android.bp b/guest/hals/hwcomposer/Android.bp index f75639eba..1ec8929b9 100644 --- a/guest/hals/hwcomposer/Android.bp +++ b/guest/hals/hwcomposer/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: "hwcomposer.cutf", relative_install_path: "hw", diff --git a/guest/hals/keymaster/remote/Android.bp b/guest/hals/keymaster/remote/Android.bp index 791bd01e5..805a803fb 100644 --- a/guest/hals/keymaster/remote/Android.bp +++ b/guest/hals/keymaster/remote/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"], +} + cc_binary { name: "android.hardware.keymaster@4.1-service.remote", defaults: ["hidl_defaults", "cuttlefish_guest_only"], diff --git a/guest/hals/ril/reference-libril/Android.bp b/guest/hals/ril/reference-libril/Android.bp index 8d9247ca7..db265e3b2 100644 --- a/guest/hals/ril/reference-libril/Android.bp +++ b/guest/hals/ril/reference-libril/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 { name: "libril-modem-lib", vendor: true, diff --git a/guest/hals/ril/reference-ril/Android.bp b/guest/hals/ril/reference-ril/Android.bp index 54b1c9fce..de01ae131 100644 --- a/guest/hals/ril/reference-ril/Android.bp +++ b/guest/hals/ril/reference-ril/Android.bp @@ -12,6 +12,25 @@ // See the License for the specific language governing permissions and // limitations under the License. +package { + default_applicable_licenses: [ + "device_google_cuttlefish_guest_hals_ril_reference-ril_license", + ], +} + +// Added automatically by a large-scale-change +// See: http://go/android-license-faq +license { + name: "device_google_cuttlefish_guest_hals_ril_reference-ril_license", + visibility: [":__subpackages__"], + license_kinds: [ + "SPDX-license-identifier-Apache-2.0", + ], + license_text: [ + "NOTICE", + ], +} + cc_library { name: "libcuttlefish-ril-2", vendor: true, diff --git a/guest/hals/rild/Android.bp b/guest/hals/rild/Android.bp index fa22e5956..9a7ad010a 100644 --- a/guest/hals/rild/Android.bp +++ b/guest/hals/rild/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_binary { name: "libcuttlefish-rild", vendor: true, diff --git a/guest/monitoring/cuttlefish_service/Android.bp b/guest/monitoring/cuttlefish_service/Android.bp index f8745d85c..133d233c2 100644 --- a/guest/monitoring/cuttlefish_service/Android.bp +++ b/guest/monitoring/cuttlefish_service/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_app { name: "CuttlefishService", vendor: true, diff --git a/guest/monitoring/tombstone_transmit/Android.bp b/guest/monitoring/tombstone_transmit/Android.bp index a4739e4ec..d24985a25 100644 --- a/guest/monitoring/tombstone_transmit/Android.bp +++ b/guest/monitoring/tombstone_transmit/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"], +} + cc_binary { name: "tombstone_transmit", srcs: [ diff --git a/guest/services/suspend_blocker/Android.bp b/guest/services/suspend_blocker/Android.bp index a91aeda9d..6412632cc 100644 --- a/guest/services/suspend_blocker/Android.bp +++ b/guest/services/suspend_blocker/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_binary { name: "suspend_blocker", srcs: ["suspend_blocker.cpp"], diff --git a/host/commands/adbshell/Android.bp b/host/commands/adbshell/Android.bp index 045bf3866..883503eb7 100644 --- a/host/commands/adbshell/Android.bp +++ b/host/commands/adbshell/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"], +} + cc_binary_host { name: "adbshell", srcs: [ diff --git a/host/commands/assemble_cvd/Android.bp b/host/commands/assemble_cvd/Android.bp index f815b1d86..c269be958 100644 --- a/host/commands/assemble_cvd/Android.bp +++ b/host/commands/assemble_cvd/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"], +} + cc_library { name: "libcdisk_spec", srcs: [ diff --git a/host/commands/bt_connector/Android.bp b/host/commands/bt_connector/Android.bp index d6a61b21d..d617eaa37 100644 --- a/host/commands/bt_connector/Android.bp +++ b/host/commands/bt_connector/Android.bp @@ -14,6 +14,10 @@ // limitations under the License. +package { + default_applicable_licenses: ["Android-Apache-2.0"], +} + cc_binary { name: "bt_connector", srcs: [ diff --git a/host/commands/config_server/Android.bp b/host/commands/config_server/Android.bp index f99cd30c8..b567bd902 100644 --- a/host/commands/config_server/Android.bp +++ b/host/commands/config_server/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"], +} + cc_binary { name: "config_server", srcs: [ diff --git a/host/commands/console_forwarder/Android.bp b/host/commands/console_forwarder/Android.bp index b8c05b382..230a0f75f 100644 --- a/host/commands/console_forwarder/Android.bp +++ b/host/commands/console_forwarder/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"], +} + cc_binary { name: "console_forwarder", srcs: [ diff --git a/host/commands/cvd_host_bugreport/Android.bp b/host/commands/cvd_host_bugreport/Android.bp index 111581494..4f6aedaee 100644 --- a/host/commands/cvd_host_bugreport/Android.bp +++ b/host/commands/cvd_host_bugreport/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"], +} + cc_binary { name: "cvd_host_bugreport", srcs: [ diff --git a/host/commands/cvd_status/Android.bp b/host/commands/cvd_status/Android.bp index a0e636de9..ae48d1975 100644 --- a/host/commands/cvd_status/Android.bp +++ b/host/commands/cvd_status/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"], +} + cc_binary { name: "cvd_status", srcs: [ diff --git a/host/commands/fetcher/Android.bp b/host/commands/fetcher/Android.bp index 4bb9640bf..fdb97ecfe 100644 --- a/host/commands/fetcher/Android.bp +++ b/host/commands/fetcher/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"], +} + cc_binary { name: "fetch_cvd", srcs: [ diff --git a/host/commands/gnss_grpc_proxy/Android.bp b/host/commands/gnss_grpc_proxy/Android.bp index 67c6ec87e..e85a91942 100644 --- a/host/commands/gnss_grpc_proxy/Android.bp +++ b/host/commands/gnss_grpc_proxy/Android.bp @@ -13,6 +13,10 @@ // limitations under the License. +package { + default_applicable_licenses: ["Android-Apache-2.0"], +} + cc_binary { name: "gnss_grpc_proxy", srcs: [ diff --git a/host/commands/kernel_log_monitor/Android.bp b/host/commands/kernel_log_monitor/Android.bp index d3267a019..02e2be82f 100644 --- a/host/commands/kernel_log_monitor/Android.bp +++ b/host/commands/kernel_log_monitor/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"], +} + cc_binary { name: "kernel_log_monitor", srcs: [ diff --git a/host/commands/launch/Android.bp b/host/commands/launch/Android.bp index 2c39974d4..6adf7a204 100644 --- a/host/commands/launch/Android.bp +++ b/host/commands/launch/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"], +} + cc_binary { name: "launch_cvd", srcs: [ diff --git a/host/commands/log_tee/Android.bp b/host/commands/log_tee/Android.bp index 56929fe6e..49b3e6901 100644 --- a/host/commands/log_tee/Android.bp +++ b/host/commands/log_tee/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"], +} + cc_binary { name: "log_tee", srcs: [ diff --git a/host/commands/logcat_receiver/Android.bp b/host/commands/logcat_receiver/Android.bp index 081942ea9..305ab7fe5 100644 --- a/host/commands/logcat_receiver/Android.bp +++ b/host/commands/logcat_receiver/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"], +} + cc_binary { name: "logcat_receiver", srcs: [ diff --git a/host/commands/metrics/Android.bp b/host/commands/metrics/Android.bp index f2ddbfb6d..67eb3b095 100644 --- a/host/commands/metrics/Android.bp +++ b/host/commands/metrics/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"], +} + cc_binary { name: "metrics", srcs: [ diff --git a/host/commands/metrics/proto/Android.bp b/host/commands/metrics/proto/Android.bp index 6d200d24d..250abcfe0 100644 --- a/host/commands/metrics/proto/Android.bp +++ b/host/commands/metrics/proto/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: "cf_proto", vendor_available: true, diff --git a/host/commands/modem_simulator/Android.bp b/host/commands/modem_simulator/Android.bp index d3cd45b39..c0d03718e 100644 --- a/host/commands/modem_simulator/Android.bp +++ b/host/commands/modem_simulator/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"], +} + cc_defaults { name: "modem_simulator_base", srcs: [ diff --git a/host/commands/powerwash_cvd/Android.bp b/host/commands/powerwash_cvd/Android.bp index 8fa268813..adaacb903 100644 --- a/host/commands/powerwash_cvd/Android.bp +++ b/host/commands/powerwash_cvd/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"], +} + cc_binary { name: "powerwash_cvd", srcs: [ diff --git a/host/commands/restart_cvd/Android.bp b/host/commands/restart_cvd/Android.bp index ff9705a9a..dc7a044b8 100644 --- a/host/commands/restart_cvd/Android.bp +++ b/host/commands/restart_cvd/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"], +} + cc_binary { name: "restart_cvd", srcs: [ diff --git a/host/commands/run_cvd/Android.bp b/host/commands/run_cvd/Android.bp index cbde1fcaa..6100be50f 100644 --- a/host/commands/run_cvd/Android.bp +++ b/host/commands/run_cvd/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"], +} + cc_binary { name: "run_cvd", srcs: [ diff --git a/host/commands/secure_env/Android.bp b/host/commands/secure_env/Android.bp index 05657b4f0..3ceeda507 100644 --- a/host/commands/secure_env/Android.bp +++ b/host/commands/secure_env/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"], +} + cc_binary_host { name: "secure_env", srcs: [ diff --git a/host/commands/stop_cvd/Android.bp b/host/commands/stop_cvd/Android.bp index c9c634214..a670a2503 100644 --- a/host/commands/stop_cvd/Android.bp +++ b/host/commands/stop_cvd/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"], +} + cc_binary { name: "stop_cvd", srcs: [ diff --git a/host/commands/tapsetiff/Android.bp b/host/commands/tapsetiff/Android.bp index c86024126..1d7dedb61 100644 --- a/host/commands/tapsetiff/Android.bp +++ b/host/commands/tapsetiff/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"], +} + sh_binary_host { name: "tapsetiff", src: "tapsetiff.py", diff --git a/host/commands/tombstone_receiver/Android.bp b/host/commands/tombstone_receiver/Android.bp index a32df8408..51830fc7d 100644 --- a/host/commands/tombstone_receiver/Android.bp +++ b/host/commands/tombstone_receiver/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"], +} + cc_binary { name: "tombstone_receiver", srcs: [ diff --git a/host/example_custom_actions/Android.bp b/host/example_custom_actions/Android.bp index 27ca9cb3b..36161f631 100644 --- a/host/example_custom_actions/Android.bp +++ b/host/example_custom_actions/Android.bp @@ -1,3 +1,7 @@ +package { + default_applicable_licenses: ["Android-Apache-2.0"], +} + cc_binary_host { name: "cuttlefish_example_action_server", srcs: ["main.cpp"], diff --git a/host/frontend/adb_connector/Android.bp b/host/frontend/adb_connector/Android.bp index 9070dbbed..d0927afd6 100644 --- a/host/frontend/adb_connector/Android.bp +++ b/host/frontend/adb_connector/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"], +} + cc_binary { name: "adb_connector", srcs: [ diff --git a/host/frontend/vnc_server/Android.bp b/host/frontend/vnc_server/Android.bp index 459dad91a..c098e34b6 100644 --- a/host/frontend/vnc_server/Android.bp +++ b/host/frontend/vnc_server/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"], +} + cc_binary { name: "vnc_server", srcs: [ diff --git a/host/frontend/webrtc/Android.bp b/host/frontend/webrtc/Android.bp index 2f31a1cfc..791930e1f 100644 --- a/host/frontend/webrtc/Android.bp +++ b/host/frontend/webrtc/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"], +} + cc_library_static { name: "libcuttlefish_webrtc", srcs: [ diff --git a/host/frontend/webrtc_operator/Android.bp b/host/frontend/webrtc_operator/Android.bp index f27c8bcda..d2371a4c9 100644 --- a/host/frontend/webrtc_operator/Android.bp +++ b/host/frontend/webrtc_operator/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"], +} + cc_library_headers { name: "webrtc_signaling_headers", export_include_dirs: ["./constants"], diff --git a/host/libs/allocd/Android.bp b/host/libs/allocd/Android.bp index a832dc0e8..3c5250799 100644 --- a/host/libs/allocd/Android.bp +++ b/host/libs/allocd/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"], +} + cc_library { name: "libcuttlefish_allocd_utils", srcs: [ diff --git a/host/libs/audio_connector/Android.bp b/host/libs/audio_connector/Android.bp index bb93edcad..c26fecb55 100644 --- a/host/libs/audio_connector/Android.bp +++ b/host/libs/audio_connector/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"], +} + cc_library_static { name: "libcuttlefish_audio_connector", srcs: [ diff --git a/host/libs/config/Android.bp b/host/libs/config/Android.bp index 41394386a..3697f4e34 100644 --- a/host/libs/config/Android.bp +++ b/host/libs/config/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"], +} + cc_library_static { name: "libcuttlefish_host_config", srcs: [ diff --git a/host/libs/graphics_detector/Android.bp b/host/libs/graphics_detector/Android.bp index fc55129a3..bd6a55e1b 100644 --- a/host/libs/graphics_detector/Android.bp +++ b/host/libs/graphics_detector/Android.bp @@ -13,6 +13,16 @@ // 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 "device_google_cuttlefish_license" + // to get the below license kinds: + // SPDX-license-identifier-Apache-2.0 + // SPDX-license-identifier-MIT + default_applicable_licenses: ["device_google_cuttlefish_license"], +} + cc_library_headers { name: "egl_headers", export_include_dirs: ["include"], diff --git a/host/libs/msg_queue/Android.bp b/host/libs/msg_queue/Android.bp index c9fe209ce..39d9c967c 100644 --- a/host/libs/msg_queue/Android.bp +++ b/host/libs/msg_queue/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"], +} + cc_library_host_static { name: "libcuttlefish_msg_queue", srcs: [ diff --git a/host/libs/screen_connector/Android.bp b/host/libs/screen_connector/Android.bp index a944a3f41..a54c44ed9 100644 --- a/host/libs/screen_connector/Android.bp +++ b/host/libs/screen_connector/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"], +} + cc_library_static { name: "libcuttlefish_screen_connector", srcs: [ diff --git a/host/libs/vm_manager/Android.bp b/host/libs/vm_manager/Android.bp index fd16adee3..20c9027df 100644 --- a/host/libs/vm_manager/Android.bp +++ b/host/libs/vm_manager/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"], +} + cc_library_static { name: "libcuttlefish_vm_manager", srcs: [ diff --git a/host/libs/wayland/Android.bp b/host/libs/wayland/Android.bp index 0fea9f50b..4be6528ce 100644 --- a/host/libs/wayland/Android.bp +++ b/host/libs/wayland/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"], +} + cc_library_static { name: "libcuttlefish_wayland_server", srcs: [ @@ -38,4 +42,3 @@ cc_library_static { ], defaults: ["cuttlefish_host"], } - diff --git a/host/libs/websocket/Android.bp b/host/libs/websocket/Android.bp index dc3f8283f..2a4a5227f 100644 --- a/host/libs/websocket/Android.bp +++ b/host/libs/websocket/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"], +} + cc_library_host_static { name: "libcuttlefish_host_websocket", srcs: [ diff --git a/recovery/Android.bp b/recovery/Android.bp index 5e495d795..0923d17cd 100644 --- a/recovery/Android.bp +++ b/recovery/Android.bp @@ -14,6 +14,10 @@ // limitations under the License. // +package { + default_applicable_licenses: ["Android-Apache-2.0"], +} + cc_library_static { name: "librecovery_ui_cuttlefish", owner: "google", diff --git a/shared/config/Android.bp b/shared/config/Android.bp index ab63d5e80..03bbc084f 100644 --- a/shared/config/Android.bp +++ b/shared/config/Android.bp @@ -1,3 +1,7 @@ +package { + default_applicable_licenses: ["Android-Apache-2.0"], +} + prebuilt_etc_host { name: "cvd_config_auto.json", src: "config_auto.json", diff --git a/shared/config/Android.mk b/shared/config/Android.mk index 1397bcc3f..e3f25793f 100644 --- a/shared/config/Android.mk +++ b/shared/config/Android.mk @@ -22,6 +22,8 @@ include $(CLEAR_VARS) # model as that file requires such build target specific fields. LOCAL_MODULE := wpa_supplicant.vsoc.conf +LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0 +LOCAL_LICENSE_CONDITIONS := notice LOCAL_MODULE_TAGS := optional LOCAL_MODULE_CLASS := ETC LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR)/etc/wifi diff --git a/tests/graphics/Android.bp b/tests/graphics/Android.bp index cd9a61c79..676781741 100644 --- a/tests/graphics/Android.bp +++ b/tests/graphics/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: "GfxstreamEnabledTest", srcs: [ @@ -26,4 +30,4 @@ java_test_host { libs: [ "tradefed", ], -}
\ No newline at end of file +} diff --git a/tests/hal/Android.bp b/tests/hal/Android.bp index 41cb2c09f..5aa14ce2c 100644 --- a/tests/hal/Android.bp +++ b/tests/hal/Android.bp @@ -1,3 +1,7 @@ +package { + default_applicable_licenses: ["Android-Apache-2.0"], +} + cc_test { name: "hal_implementation_test", srcs: ["hal_implementation_test.cpp"], diff --git a/tests/powerwash/Android.bp b/tests/powerwash/Android.bp index 5a0df4ab7..6ef1c9242 100644 --- a/tests/powerwash/Android.bp +++ b/tests/powerwash/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: "PowerwashTest", srcs: [ @@ -23,4 +27,4 @@ java_test_host { libs: [ "tradefed", ], -}
\ No newline at end of file +} diff --git a/tests/recovery/Android.bp b/tests/recovery/Android.bp index 05207ea94..c361a0e9e 100644 --- a/tests/recovery/Android.bp +++ b/tests/recovery/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: "RebootRecoveryTest", srcs: [ diff --git a/tests/ril/Android.bp b/tests/ril/Android.bp index d86892019..ed1d30d3e 100644 --- a/tests/ril/Android.bp +++ b/tests/ril/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: "CuttlefishRilTests", srcs: ["src/**/*.java"], diff --git a/tests/wifi/Android.bp b/tests/wifi/Android.bp index 8ad1ccbc9..838e861a1 100644 --- a/tests/wifi/Android.bp +++ b/tests/wifi/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: "CuttlefishWifiTests", srcs: ["src/**/*.java"], |