diff options
author | Bob Badour <bbadour@google.com> | 2021-02-12 20:16:11 -0800 |
---|---|---|
committer | Bob Badour <bbadour@google.com> | 2021-02-12 20:16:11 -0800 |
commit | 5d7e4e41848356d00c6ee662f383e9901834b463 (patch) | |
tree | 9f03529024d8c45f1f5ea2850309edf9f7a4e8cd | |
parent | 7bd40c00435afe47a403aa252c5821d4cd2e6ef4 (diff) | |
download | sample-5d7e4e41848356d00c6ee662f383e9901834b463.tar.gz |
[LSC] Add LOCAL_LICENSE_KINDS to device/sample
Added SPDX-license-identifier-Apache-2.0 to:
Android.bp
frameworks/PlatformLibrary/Android.bp
frameworks/PlatformLibrary/Android.mk
frameworks/PlatformLibrary/jni/Android.mk
Bug: 68860345
Bug: 151177513
Bug: 151953481
Test: m all
Exempt-From-Owner-Approval: janitorial work
Change-Id: I50b528ccc25f5feaf5ad1f8b6879b7d45ee1643c
-rw-r--r-- | Android.bp | 29 | ||||
-rw-r--r-- | frameworks/PlatformLibrary/Android.bp | 9 | ||||
-rw-r--r-- | frameworks/PlatformLibrary/Android.mk | 2 | ||||
-rw-r--r-- | frameworks/PlatformLibrary/jni/Android.mk | 2 |
4 files changed, 42 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp new file mode 100644 index 0000000..f0da5bb --- /dev/null +++ b/Android.bp @@ -0,0 +1,29 @@ +// +// Copyright (C) 2021 The Android Open Source Project +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package { + default_applicable_licenses: ["device_sample_license"], +} + +// Added automatically by a large-scale-change +// See: http://go/android-license-faq +license { + name: "device_sample_license", + visibility: [":__subpackages__"], + license_kinds: [ + "SPDX-license-identifier-Apache-2.0", + ], + // large-scale-change unable to identify any license_text files +} diff --git a/frameworks/PlatformLibrary/Android.bp b/frameworks/PlatformLibrary/Android.bp index e78470f..7b3ec73 100644 --- a/frameworks/PlatformLibrary/Android.bp +++ b/frameworks/PlatformLibrary/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 "device_sample_license" + // to get the below license kinds: + // SPDX-license-identifier-Apache-2.0 + default_applicable_licenses: ["device_sample_license"], +} + javadoc { name: "platform_library-docs", srcs: [ diff --git a/frameworks/PlatformLibrary/Android.mk b/frameworks/PlatformLibrary/Android.mk index d4250af..db4c97c 100644 --- a/frameworks/PlatformLibrary/Android.mk +++ b/frameworks/PlatformLibrary/Android.mk @@ -33,6 +33,8 @@ LOCAL_MODULE_TAGS := optional # This is the target being built. LOCAL_MODULE:= com.example.android.platform_library +LOCAL_LICENSE_KINDS:= SPDX-license-identifier-Apache-2.0 +LOCAL_LICENSE_CONDITIONS:= notice LOCAL_SDK_VERSION := current include $(BUILD_JAVA_LIBRARY) diff --git a/frameworks/PlatformLibrary/jni/Android.mk b/frameworks/PlatformLibrary/jni/Android.mk index bd7ede0..1513f70 100644 --- a/frameworks/PlatformLibrary/jni/Android.mk +++ b/frameworks/PlatformLibrary/jni/Android.mk @@ -24,6 +24,8 @@ LOCAL_MODULE_TAGS := optional # This is the target being built. LOCAL_MODULE:= libplatform_library_jni +LOCAL_LICENSE_KINDS:= SPDX-license-identifier-Apache-2.0 +LOCAL_LICENSE_CONDITIONS:= notice # All of the source files that we will compile. LOCAL_SRC_FILES:= \ |