Skip to content

Commit

Permalink
[LSC] Add LOCAL_LICENSE_KINDS to frameworks/native
Browse files Browse the repository at this point in the history
Added SPDX-license-identifier-Apache-2.0 to:
  cmds/atrace/Android.bp
  cmds/bugreport/Android.bp
  cmds/bugreportz/Android.bp
  cmds/cmd/Android.bp
  cmds/dumpstate/Android.bp
  cmds/dumpsys/Android.bp
  cmds/dumpsys/tests/Android.bp
  cmds/flatland/Android.mk
  cmds/idlcli/Android.bp
  cmds/installd/Android.bp
  cmds/installd/tests/Android.bp
  cmds/ip-up-vpn/Android.mk
  cmds/lshal/Android.bp
  cmds/lshal/libprocpartition/Android.bp
  cmds/rawbu/Android.bp
  cmds/rss_hwm_reset/Android.bp
  cmds/service/Android.bp
  cmds/servicemanager/Android.bp
  cmds/surfacereplayer/Android.bp
  cmds/surfacereplayer/replayer/Android.bp
  libs/adbd_auth/Android.bp
  libs/android_runtime_lazy/Android.bp
  libs/arect/Android.bp
  libs/binder/Android.bp
  libs/binder/ndk/Android.bp
  libs/binder/ndk/tests/Android.bp
  libs/binder/parcel_fuzzer/Android.bp
  libs/binder/rust/Android.bp
  libs/binder/rust/tests/Android.bp
  libs/binder/tests/Android.bp
  libs/binder/tests/fuzzers/Android.bp
  libs/binderdebug/Android.bp
  libs/binderdebug/tests/Android.bp
  libs/binderthreadstate/1.0/Android.bp
  libs/binderthreadstate/Android.bp
  libs/bufferqueueconverter/Android.bp
  libs/cputimeinstate/Android.bp
  libs/diskusage/Android.bp
  libs/dumputils/Android.bp
  libs/fakeservicemanager/Android.bp
  libs/gralloc/types/Android.bp
  libs/gralloc/types/fuzzer/Android.bp
  libs/gralloc/types/tests/Android.bp
  libs/graphicsenv/Android.bp
  libs/gui/Android.bp
  libs/gui/sysprop/Android.bp
  libs/gui/tests/Android.bp
  libs/incidentcompanion/Android.bp
  libs/input/Android.bp
  libs/input/tests/Android.bp
  libs/math/Android.bp
  libs/math/tests/Android.bp
  libs/nativebase/Android.bp
  libs/nativedisplay/Android.bp
  libs/nativewindow/Android.bp
  libs/nativewindow/tests/Android.bp
  libs/renderengine/Android.bp
  libs/renderengine/tests/Android.bp
  libs/sensor/Android.bp
  libs/sensor/tests/Android.bp
  libs/sensorprivacy/Android.bp
  libs/ui/Android.bp
  libs/ui/tests/Android.bp
  libs/ui/tools/Android.bp
  libs/vibrator/Android.bp
  libs/vibrator/fuzzer/Android.bp
  libs/vr/libpdx/Android.bp
  libs/vr/libpdx/fuzz/Android.bp
  libs/vr/libvr_manager/Android.bp
  opengl/libs/Android.bp
  opengl/tests/EGLTest/Android.bp
  opengl/tests/fillrate/Android.bp
  opengl/tests/finish/Android.bp
  opengl/tests/gl2_basic/Android.bp
  opengl/tests/gl2_cameraeye/Android.bp
  opengl/tests/gl2_copyTexImage/Android.bp
  opengl/tests/gl2_java/Android.bp
  opengl/tests/gl2_jni/Android.bp
  opengl/tests/gl2_yuvtex/Android.bp
  opengl/tests/gl_jni/Android.bp
  opengl/tests/gl_perf/Android.bp
  opengl/tests/gl_perfapp/Android.bp
  opengl/tests/gl_yuvtex/Android.bp
  opengl/tests/gldual/Android.bp
  opengl/tests/gralloc/Android.bp
  opengl/tests/hwc/Android.bp
  opengl/tests/lib/Android.bp
  opengl/tests/lighting1709/Android.bp
  opengl/tests/linetex/Android.bp
  opengl/tests/swapinterval/Android.bp
  opengl/tests/testFramerate/Android.bp
  opengl/tests/testLatency/Android.bp
  opengl/tests/testPauseResume/Android.bp
  opengl/tests/testViewport/Android.bp
  opengl/tests/textures/Android.bp
  services/audiomanager/Android.bp
  services/automotive/display/Android.bp
  services/batteryservice/Android.bp
  services/displayservice/Android.bp
  services/gpuservice/Android.bp
  services/gpuservice/bpfprogs/Android.bp
  services/gpuservice/gpumem/Android.bp
  services/gpuservice/gpustats/Android.bp
  services/gpuservice/tests/unittests/Android.bp
  services/gpuservice/tracing/Android.bp
  services/inputflinger/Android.bp
  services/inputflinger/benchmarks/Android.bp
  services/inputflinger/dispatcher/Android.bp
  services/inputflinger/host/Android.bp
  services/inputflinger/reader/Android.bp
  services/inputflinger/reporter/Android.bp
  services/inputflinger/tests/Android.bp
  services/inputflinger/tests/fuzzers/Android.bp
  services/powermanager/Android.bp
  services/schedulerservice/Android.bp
  services/sensorservice/Android.bp
  services/sensorservice/hidl/Android.bp
  services/sensorservice/tests/Android.bp
  services/stats/Android.bp
  services/surfaceflinger/Android.bp
  services/surfaceflinger/CompositionEngine/Android.bp
  services/surfaceflinger/TimeStats/Android.bp
  services/surfaceflinger/TimeStats/timestatsproto/Android.bp
  services/surfaceflinger/layerproto/Android.bp
  services/surfaceflinger/sysprop/Android.bp
  services/surfaceflinger/tests/Android.bp
  services/surfaceflinger/tests/fakehwc/Android.bp
  services/surfaceflinger/tests/unittests/Android.bp
  services/surfaceflinger/tests/vsync/Android.bp
  services/surfaceflinger/tests/waitforvsync/Android.bp
  services/utils/Android.bp
  services/utils/tests/Android.bp
  services/vr/hardware_composer/Android.bp
  services/vr/virtual_touchpad/Android.bp
  vulkan/libvulkan/Android.bp
  vulkan/nulldrv/Android.bp
  vulkan/vkjson/Android.bp

Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD
    SPDX-license-identifier-MIT SPDX-license-identifier-Unicode-DFS
    legacy_notice
to:
  Android.bp

Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD
    SPDX-license-identifier-MIT legacy_notice
to:
  opengl/Android.bp
  opengl/tests/Android.bp

Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD
    legacy_notice
to:
  libs/vr/Android.bp

Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-MIT
to:
  headers/Android.bp
  services/vr/Android.bp
  vulkan/Android.bp

Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-MIT
    SPDX-license-identifier-Unicode-DFS
to:
  cmds/surfacereplayer/proto/Android.bp
  libs/vr/libbroadcastring/Android.bp
  libs/vr/libbufferhub/Android.bp
  libs/vr/libbufferhubqueue/Android.bp
  libs/vr/libbufferhubqueue/benchmarks/Android.bp
  libs/vr/libbufferhubqueue/tests/Android.bp
  libs/vr/libdisplay/Android.bp
  libs/vr/libdvr/Android.bp
  libs/vr/libdvr/tests/Android.bp
  libs/vr/libdvrcommon/Android.bp
  libs/vr/libpdx_default_transport/Android.bp
  libs/vr/libpdx_uds/Android.bp
  libs/vr/libperformance/Android.bp
  libs/vr/libvrflinger/Android.bp
  libs/vr/libvrflinger/tests/Android.bp
  libs/vr/libvrsensor/Android.bp
  opengl/tests/configdump/Android.bp
  opengl/tests/filter/Android.bp
  opengl/tests/gl_basic/Android.bp
  opengl/tests/tritex/Android.bp
  services/vr/bufferhubd/Android.bp
  services/vr/hardware_composer/aidl/Android.bp

Added SPDX-license-identifier-BSD SPDX-license-identifier-MIT
    legacy_notice
to:
  opengl/tests/angeles/Android.bp

Added SPDX-license-identifier-MIT
to:
  services/vr/performanced/Android.bp

Bug: 68860345
Bug: 151177513
Bug: 151953481

Test: m all

Exempt-From-Owner-Approval: janitorial work

Change-Id: Ib1de8cd7b87446de45d79db15cd90b93a591846d
Merged-in: Ib1de8cd7b87446de45d79db15cd90b93a591846d
  • Loading branch information
bbadour committed Feb 17, 2021
1 parent e2edd22 commit 2e67185
Show file tree
Hide file tree
Showing 167 changed files with 1,714 additions and 9 deletions.
38 changes: 38 additions & 0 deletions Android.bp
Original file line number Diff line number Diff line change
@@ -1,3 +1,41 @@
package {
default_applicable_licenses: ["frameworks_native_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.
//
// large-scale-change filtered out the below license kinds as false-positives:
// SPDX-license-identifier-LGPL
// SPDX-license-identifier-LGPL-2.1
// SPDX-license-identifier-LGPL-3.0
// See: http://go/android-license-faq
license {
name: "frameworks_native_license",
visibility: [":__subpackages__"],
license_kinds: [
"SPDX-license-identifier-Apache-2.0",
"SPDX-license-identifier-BSD",
"SPDX-license-identifier-MIT",
"SPDX-license-identifier-Unicode-DFS",
"legacy_notice",
],
license_text: [
"NOTICE",
],
}

ndk_headers {
name: "libandroid_headers",
from: "include/android",
Expand Down
17 changes: 17 additions & 0 deletions cmds/atrace/Android.bp
Original file line number Diff line number Diff line change
@@ -1,5 +1,22 @@
// Copyright 2012 The Android Open Source Project

package {
default_applicable_licenses: ["frameworks_native_cmds_atrace_license"],
}

// Added automatically by a large-scale-change
// See: http://go/android-license-faq
license {
name: "frameworks_native_cmds_atrace_license",
visibility: [":__subpackages__"],
license_kinds: [
"SPDX-license-identifier-Apache-2.0",
],
license_text: [
"NOTICE",
],
}

cc_binary {
name: "atrace",
srcs: ["atrace.cpp"],
Expand Down
9 changes: 9 additions & 0 deletions cmds/bugreport/Android.bp
Original file line number Diff line number Diff line change
@@ -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 "frameworks_native_license"
// to get the below license kinds:
// SPDX-license-identifier-Apache-2.0
default_applicable_licenses: ["frameworks_native_license"],
}

cc_binary {
name: "bugreport",
srcs: ["bugreport.cpp"],
Expand Down
9 changes: 9 additions & 0 deletions cmds/bugreportz/Android.bp
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
// bugreportz
// ==========
package {
// See: http://go/android-license-faq
// A large-scale-change added 'default_applicable_licenses' to import
// all of the 'license_kinds' from "frameworks_native_license"
// to get the below license kinds:
// SPDX-license-identifier-Apache-2.0
default_applicable_licenses: ["frameworks_native_license"],
}

cc_binary {
name: "bugreportz",

Expand Down
17 changes: 17 additions & 0 deletions cmds/cmd/Android.bp
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
package {
default_applicable_licenses: ["frameworks_native_cmds_cmd_license"],
}

// Added automatically by a large-scale-change
// See: http://go/android-license-faq
license {
name: "frameworks_native_cmds_cmd_license",
visibility: [":__subpackages__"],
license_kinds: [
"SPDX-license-identifier-Apache-2.0",
],
license_text: [
"NOTICE",
],
}

cc_library_static {
name: "libcmd",

Expand Down
9 changes: 9 additions & 0 deletions cmds/dumpstate/Android.bp
Original file line number Diff line number Diff line change
Expand Up @@ -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 "frameworks_native_license"
// to get the below license kinds:
// SPDX-license-identifier-Apache-2.0
default_applicable_licenses: ["frameworks_native_license"],
}

cc_defaults {
name: "dumpstate_cflag_defaults",
cflags: [
Expand Down
17 changes: 17 additions & 0 deletions cmds/dumpsys/Android.bp
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
package {
default_applicable_licenses: ["frameworks_native_cmds_dumpsys_license"],
}

// Added automatically by a large-scale-change
// See: http://go/android-license-faq
license {
name: "frameworks_native_cmds_dumpsys_license",
visibility: [":__subpackages__"],
license_kinds: [
"SPDX-license-identifier-Apache-2.0",
],
license_text: [
"NOTICE",
],
}

cc_defaults {
name: "dumpsys_defaults",

Expand Down
9 changes: 9 additions & 0 deletions cmds/dumpsys/tests/Android.bp
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
// Build the unit tests for dumpsys
package {
// See: http://go/android-license-faq
// A large-scale-change added 'default_applicable_licenses' to import
// all of the 'license_kinds' from "frameworks_native_cmds_dumpsys_license"
// to get the below license kinds:
// SPDX-license-identifier-Apache-2.0
default_applicable_licenses: ["frameworks_native_cmds_dumpsys_license"],
}

cc_test {
name: "dumpsys_test",
test_suites: ["device-tests"],
Expand Down
3 changes: 3 additions & 0 deletions cmds/flatland/Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ LOCAL_SRC_FILES:= \
LOCAL_CFLAGS := -Wall -Werror

LOCAL_MODULE:= flatland
LOCAL_LICENSE_KINDS:= SPDX-license-identifier-Apache-2.0
LOCAL_LICENSE_CONDITIONS:= notice
LOCAL_NOTICE_FILE:= $(LOCAL_PATH)/../../NOTICE

LOCAL_MODULE_TAGS := tests

Expand Down
9 changes: 9 additions & 0 deletions cmds/idlcli/Android.bp
Original file line number Diff line number Diff line change
Expand Up @@ -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 "frameworks_native_license"
// to get the below license kinds:
// SPDX-license-identifier-Apache-2.0
default_applicable_licenses: ["frameworks_native_license"],
}

cc_defaults {
name: "idlcli-defaults",
shared_libs: [
Expand Down
9 changes: 9 additions & 0 deletions cmds/installd/Android.bp
Original file line number Diff line number Diff line change
@@ -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 "frameworks_native_license"
// to get the below license kinds:
// SPDX-license-identifier-Apache-2.0
default_applicable_licenses: ["frameworks_native_license"],
}

cc_defaults {
name: "installd_defaults",

Expand Down
10 changes: 9 additions & 1 deletion cmds/installd/tests/Android.bp
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
// Build the unit tests for installd
package {
// See: http://go/android-license-faq
// A large-scale-change added 'default_applicable_licenses' to import
// all of the 'license_kinds' from "frameworks_native_license"
// to get the below license kinds:
// SPDX-license-identifier-Apache-2.0
default_applicable_licenses: ["frameworks_native_license"],
}

cc_test {
name: "installd_utils_test",
test_suites: ["device-tests"],
Expand Down Expand Up @@ -157,4 +166,3 @@ cc_test {
"libotapreoptparameters"
],
}

3 changes: 3 additions & 0 deletions cmds/ip-up-vpn/Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ LOCAL_SRC_FILES := ip-up-vpn.c
LOCAL_CFLAGS := -Wall -Werror
LOCAL_SHARED_LIBRARIES := libcutils liblog
LOCAL_MODULE := ip-up-vpn
LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0
LOCAL_LICENSE_CONDITIONS := notice
LOCAL_NOTICE_FILE := $(LOCAL_PATH)/../../NOTICE
LOCAL_MODULE_PATH := $(TARGET_OUT_ETC)/ppp
LOCAL_MODULE_TAGS := optional

Expand Down
9 changes: 9 additions & 0 deletions cmds/lshal/Android.bp
Original file line number Diff line number Diff line change
Expand Up @@ -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 "frameworks_native_license"
// to get the below license kinds:
// SPDX-license-identifier-Apache-2.0
default_applicable_licenses: ["frameworks_native_license"],
}

cc_library_static {
name: "liblshal",
shared_libs: [
Expand Down
9 changes: 9 additions & 0 deletions cmds/lshal/libprocpartition/Android.bp
Original file line number Diff line number Diff line change
Expand Up @@ -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 "frameworks_native_license"
// to get the below license kinds:
// SPDX-license-identifier-Apache-2.0
default_applicable_licenses: ["frameworks_native_license"],
}

cc_library_static {
name: "libprocpartition",
shared_libs: [
Expand Down
17 changes: 17 additions & 0 deletions cmds/rawbu/Android.bp
Original file line number Diff line number Diff line change
@@ -1,5 +1,22 @@
// Copyright 2009 The Android Open Source Project

package {
default_applicable_licenses: ["frameworks_native_cmds_rawbu_license"],
}

// Added automatically by a large-scale-change
// See: http://go/android-license-faq
license {
name: "frameworks_native_cmds_rawbu_license",
visibility: [":__subpackages__"],
license_kinds: [
"SPDX-license-identifier-Apache-2.0",
],
license_text: [
"NOTICE",
],
}

cc_binary {
name: "rawbu",

Expand Down
9 changes: 9 additions & 0 deletions cmds/rss_hwm_reset/Android.bp
Original file line number Diff line number Diff line change
Expand Up @@ -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 "frameworks_native_license"
// to get the below license kinds:
// SPDX-license-identifier-Apache-2.0
default_applicable_licenses: ["frameworks_native_license"],
}

cc_binary {
name: "rss_hwm_reset",

Expand Down
17 changes: 17 additions & 0 deletions cmds/service/Android.bp
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
package {
default_applicable_licenses: ["frameworks_native_cmds_service_license"],
}

// Added automatically by a large-scale-change
// See: http://go/android-license-faq
license {
name: "frameworks_native_cmds_service_license",
visibility: [":__subpackages__"],
license_kinds: [
"SPDX-license-identifier-Apache-2.0",
],
license_text: [
"NOTICE",
],
}

cc_binary {
name: "service",

Expand Down
9 changes: 9 additions & 0 deletions cmds/servicemanager/Android.bp
Original file line number Diff line number Diff line change
@@ -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 "frameworks_native_license"
// to get the below license kinds:
// SPDX-license-identifier-Apache-2.0
default_applicable_licenses: ["frameworks_native_license"],
}

cc_defaults {
name: "servicemanager_defaults",

Expand Down
11 changes: 10 additions & 1 deletion cmds/surfacereplayer/Android.bp
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
package {
// See: http://go/android-license-faq
// A large-scale-change added 'default_applicable_licenses' to import
// all of the 'license_kinds' from "frameworks_native_license"
// to get the below license kinds:
// SPDX-license-identifier-Apache-2.0
default_applicable_licenses: ["frameworks_native_license"],
}

subdirs = [
"proto",
"replayer",
]
]
11 changes: 11 additions & 0 deletions cmds/surfacereplayer/proto/Android.bp
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
package {
// See: http://go/android-license-faq
// A large-scale-change added 'default_applicable_licenses' to import
// all of the 'license_kinds' from "frameworks_native_license"
// to get the below license kinds:
// SPDX-license-identifier-Apache-2.0
// SPDX-license-identifier-MIT
// SPDX-license-identifier-Unicode-DFS
default_applicable_licenses: ["frameworks_native_license"],
}

cc_library_static {
name: "libtrace_proto",
srcs: [
Expand Down
9 changes: 9 additions & 0 deletions cmds/surfacereplayer/replayer/Android.bp
Original file line number Diff line number Diff line change
@@ -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 "frameworks_native_license"
// to get the below license kinds:
// SPDX-license-identifier-Apache-2.0
default_applicable_licenses: ["frameworks_native_license"],
}

cc_library_shared {
name: "libsurfacereplayer",
srcs: [
Expand Down
10 changes: 10 additions & 0 deletions headers/Android.bp
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
package {
// See: http://go/android-license-faq
// A large-scale-change added 'default_applicable_licenses' to import
// all of the 'license_kinds' from "frameworks_native_license"
// to get the below license kinds:
// SPDX-license-identifier-Apache-2.0
// SPDX-license-identifier-MIT
default_applicable_licenses: ["frameworks_native_license"],
}

cc_library_headers {
name: "media_plugin_headers",
vendor_available: true,
Expand Down
Loading

0 comments on commit 2e67185

Please sign in to comment.