From 91967398ad528f87d520b93049692810dbf0ca14 Mon Sep 17 00:00:00 2001 From: Nan Zhang Date: Fri, 8 Jun 2018 21:36:18 -0700 Subject: [PATCH 01/10] Dist-for-goal metalava-android.jar Test: N/A Bug: b/78245848 Change-Id: I277e1fbb57a8a77ebab789cc443cbe2a88c9633f Merged-In: I5180bc18979415cec6255beb3fe2c48ec298d3ae --- build/Android.mk | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/build/Android.mk b/build/Android.mk index db55681d8..e3283b62d 100644 --- a/build/Android.mk +++ b/build/Android.mk @@ -95,23 +95,7 @@ include $(LOCAL_PATH)/build_android_stubs.mk .PHONY: metalava_android_stubs metalava_android_stubs: $(full_target) $(full_src_target) -# android.jar is what we put in the SDK package. -android_jar_intermediates := $(TARGET_OUT_COMMON_INTERMEDIATES)/PACKAGING/metalava_android_jar_intermediates -android_jar_full_target := $(android_jar_intermediates)/metalava-android.jar -android_jar_src_target := $(android_jar_intermediates)/metalava-android-stubs-src.jar - -$(android_jar_full_target): $(full_target) - @echo Package SDK Stubs: $@ - $(copy-file-to-target) - -$(android_jar_src_target): $(full_src_target) - @echo Package SDK Stubs Source: $@ - $(hide)mkdir -p $(dir $@) - $(hide)$(ACP) $< $@ - -ALL_SDK_FILES += $(android_jar_full_target) -ALL_SDK_FILES += $(android_jar_src_target) - +$(call dist-for-goals,sdk win_sdk,$(full_target):metalava_android.jar) # ==================================================== # The uiautomator stubs From 266ad89c16f91d688f9177e9ecf50afe32837717 Mon Sep 17 00:00:00 2001 From: bohu Date: Tue, 12 Jun 2018 12:05:03 -0700 Subject: [PATCH 02/10] emulator: use 4.4 kernel for arm images BUG: 109735735 this cl does not impact real devices Change-Id: I56f9925bd4e0b93f2d6b71b710583e9ef298a875 --- build/sdk-android-arm64-v8a.atree | 2 +- build/sdk-android-armeabi-v7a.atree | 2 +- build/sdk-android-armeabi.atree | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/build/sdk-android-arm64-v8a.atree b/build/sdk-android-arm64-v8a.atree index e5e9f78ed..56fba15cd 100644 --- a/build/sdk-android-arm64-v8a.atree +++ b/build/sdk-android-arm64-v8a.atree @@ -14,7 +14,7 @@ # limitations under the License. # -prebuilts/qemu-kernel/${TARGET_ARCH}/3.18/kernel-qemu2 system-images/${PLATFORM_NAME}/${TARGET_CPU_ABI}/kernel-ranchu +prebuilts/qemu-kernel/${TARGET_ARCH}/4.4/kernel-qemu2 system-images/${PLATFORM_NAME}/${TARGET_CPU_ABI}/kernel-ranchu # version files for the SDK updater, from development.git ${HOST_OUT}/development/sys-img-${TARGET_CPU_ABI}/images_arm64-v8a_source.properties system-images/${PLATFORM_NAME}/${TARGET_CPU_ABI}/source.properties diff --git a/build/sdk-android-armeabi-v7a.atree b/build/sdk-android-armeabi-v7a.atree index d488c95ce..a05229c70 100644 --- a/build/sdk-android-armeabi-v7a.atree +++ b/build/sdk-android-armeabi-v7a.atree @@ -15,7 +15,7 @@ # # Copy the ARMv7 specific kernel image to .../kernel-qemu -prebuilts/qemu-kernel/arm64/3.18/kernel-qemu2 system-images/${PLATFORM_NAME}/${TARGET_CPU_ABI}/kernel-ranchu-64 +prebuilts/qemu-kernel/arm64/4.4/kernel-qemu2 system-images/${PLATFORM_NAME}/${TARGET_CPU_ABI}/kernel-ranchu-64 # version files for the SDK updater, from development.git ${HOST_OUT}/development/sys-img-${TARGET_CPU_ABI}/images_armeabi-v7a_source.properties system-images/${PLATFORM_NAME}/${TARGET_CPU_ABI}/source.properties diff --git a/build/sdk-android-armeabi.atree b/build/sdk-android-armeabi.atree index 90afc82eb..293ea4c5e 100644 --- a/build/sdk-android-armeabi.atree +++ b/build/sdk-android-armeabi.atree @@ -15,7 +15,7 @@ # prebuilts/qemu-kernel/${TARGET_ARCH}/kernel-qemu system-images/${PLATFORM_NAME}/${TARGET_CPU_ABI}/kernel-qemu -prebuilts/qemu-kernel/arm64/3.18/kernel-qemu2 system-images/${PLATFORM_NAME}/${TARGET_CPU_ABI}/kernel-ranchu-64 +prebuilts/qemu-kernel/arm64/4.4/kernel-qemu2 system-images/${PLATFORM_NAME}/${TARGET_CPU_ABI}/kernel-ranchu-64 # version files for the SDK updater, from development.git ${HOST_OUT}/development/sys-img-${TARGET_CPU_ABI}/images_armeabi_source.properties system-images/${PLATFORM_NAME}/${TARGET_CPU_ABI}/source.properties From f13bb3dab6c5617ec88d6a6ba8628ce049ed693a Mon Sep 17 00:00:00 2001 From: Tor Norbye Date: Wed, 13 Jun 2018 18:29:45 -0400 Subject: [PATCH 03/10] Use android.jar from Metalava. This CL only affects the SDK. It reverts commit 91967398ad528f87d520b93049692810dbf0ca14 and then updates the packaging source for android.jar to the metalava jar. It also packages the extracted annotations, annotations.zip. Test: Manually built various apps with android.jar file as well as some binary verification with javap Bug: 78245848 Change-Id: I5614a7f5af11d12c99cf0275ae0a88d97cc0bbc7 Merged-In: I5180bc18979415cec6255beb3fe2c48ec298d3ae --- build/Android.mk | 18 +++++++++++++++++- build/sdk.atree | 8 +++++--- 2 files changed, 22 insertions(+), 4 deletions(-) diff --git a/build/Android.mk b/build/Android.mk index e3283b62d..db55681d8 100644 --- a/build/Android.mk +++ b/build/Android.mk @@ -95,7 +95,23 @@ include $(LOCAL_PATH)/build_android_stubs.mk .PHONY: metalava_android_stubs metalava_android_stubs: $(full_target) $(full_src_target) -$(call dist-for-goals,sdk win_sdk,$(full_target):metalava_android.jar) +# android.jar is what we put in the SDK package. +android_jar_intermediates := $(TARGET_OUT_COMMON_INTERMEDIATES)/PACKAGING/metalava_android_jar_intermediates +android_jar_full_target := $(android_jar_intermediates)/metalava-android.jar +android_jar_src_target := $(android_jar_intermediates)/metalava-android-stubs-src.jar + +$(android_jar_full_target): $(full_target) + @echo Package SDK Stubs: $@ + $(copy-file-to-target) + +$(android_jar_src_target): $(full_src_target) + @echo Package SDK Stubs Source: $@ + $(hide)mkdir -p $(dir $@) + $(hide)$(ACP) $< $@ + +ALL_SDK_FILES += $(android_jar_full_target) +ALL_SDK_FILES += $(android_jar_src_target) + # ==================================================== # The uiautomator stubs diff --git a/build/sdk.atree b/build/sdk.atree index b160cbf66..421f494a2 100644 --- a/build/sdk.atree +++ b/build/sdk.atree @@ -64,7 +64,7 @@ external/chromium-trace/UPSTREAM_REVISION platfo # Compatibility: moved to platform but also leave them in platform-tools for a little # longer until all active Gradle plugins have support for looking in both places development/sdk/generated-api-versions.xml platform-tools/api/api-versions.xml -prebuilts/sdk/sdk-annotations/annotations.zip platform-tools/api/annotations.zip +${OUT_DIR}/target/common/obj/PACKAGING/metalava-api-stubs_annotations.zip platform-tools/api/annotations.zip ############################################################################## # Build Tools Component @@ -157,8 +157,9 @@ ${HOST_OUT}/development/sdk/platform_source.properties sdk/sdk-build.prop platforms/${PLATFORM_NAME}/build.prop # Main Public API jar -${OUT_DIR}/target/common/obj/PACKAGING/android_jar_intermediates/android.jar platforms/${PLATFORM_NAME}/android.jar -${OUT_DIR}/target/common/obj/PACKAGING/android_jar_intermediates/android-stubs-src.jar platforms/${PLATFORM_NAME}/android-stubs-src.jar +${OUT_DIR}/target/common/obj/PACKAGING/metalava_android_jar_intermediates/metalava-android.jar platforms/${PLATFORM_NAME}/android.jar +${OUT_DIR}/target/common/obj/PACKAGING/metalava_android_jar_intermediates/metalava-android-stubs-src.jar platforms/${PLATFORM_NAME}/android-stubs-src.jar + # optional API files. development/build/optional.json platforms/${PLATFORM_NAME}/optional/optional.json ${OUT_DIR}/target/common/obj/JAVA_LIBRARIES/org.apache.http.legacy_intermediates/javalib.jar platforms/${PLATFORM_NAME}/optional/org.apache.http.legacy.jar @@ -204,6 +205,7 @@ development/sdk/generated-api-versions.xml platforms/${PLATFORM_NAME}/data/api- # API annotations database for lint prebuilts/sdk/sdk-annotations/annotations.zip platforms/${PLATFORM_NAME}/data/annotations.zip +${OUT_DIR}/target/common/obj/PACKAGING/metalava-api-stubs_annotations.zip platforms/${PLATFORM_NAME}/data/annotations.zip # Eclipse Editors support framework/layoutlib-legacy.jar platforms/${PLATFORM_NAME}/data/layoutlib.jar From 62fff1d2d7677ff571e07fff9043c63fc5d30bc1 Mon Sep 17 00:00:00 2001 From: Weilun Du Date: Thu, 21 Jun 2018 11:40:51 -0700 Subject: [PATCH 04/10] Copy dummy userdata.img to sdk system images Avd manager in Android Studio requires userdata.img in the downloaded system image. As we no longer inlcude the real userdata.img, we copy the dummy userdata.img to pass the check. This cl does not impact real devices. BUG: 110492064 Change-Id: Ia8377ce72e32c3556a5a27100085a07f43d9917c Signed-off-by: Weilun Du --- build/sdk.atree | 1 + 1 file changed, 1 insertion(+) diff --git a/build/sdk.atree b/build/sdk.atree index 421f494a2..410d35478 100644 --- a/build/sdk.atree +++ b/build/sdk.atree @@ -237,6 +237,7 @@ development/sdk/sdk_files_NOTICE.txt platforms/${PLATFORM_NAME}/skins/NOTIC system-qemu.img system-images/${PLATFORM_NAME}/${TARGET_CPU_ABI}/system.img vendor-qemu.img system-images/${PLATFORM_NAME}/${TARGET_CPU_ABI}/vendor.img ramdisk.img system-images/${PLATFORM_NAME}/${TARGET_CPU_ABI}/ramdisk.img +device/generic/goldfish/data/etc/userdata.img system-images/${PLATFORM_NAME}/${TARGET_CPU_ABI}/userdata.img data/misc system-images/${PLATFORM_NAME}/${TARGET_CPU_ABI}/data/misc system/build.prop system-images/${PLATFORM_NAME}/${TARGET_CPU_ABI}/build.prop From 41e49c338106534443c0ae2dfe2c75c4491d1b81 Mon Sep 17 00:00:00 2001 From: Colin Cross Date: Mon, 2 Jul 2018 11:29:03 -0700 Subject: [PATCH 05/10] Pass compiled metalava stub classes through metalava again Use metalava --rewrite-annotations to pass the compiled sdk stub class files through metalava again to make the annotations package private. Bug: 110532131 Test: m out/target/common/obj/JAVA_LIBRARIES/metalava_android_stubs_current_intermediates/classes.jar Change-Id: I124e8d89075ec682e9fc3602ef232492bed849aa Merged-In: I5180bc18979415cec6255beb3fe2c48ec298d3ae --- build/build_android_stubs.mk | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/build/build_android_stubs.mk b/build/build_android_stubs.mk index d324934e5..393b21328 100644 --- a/build/build_android_stubs.mk +++ b/build/build_android_stubs.mk @@ -39,9 +39,13 @@ else $(full_target): PRIVATE_ERRORPRONE_FLAGS := endif -ifneq ($(filter metalava%,$(sdk_stub_name)),) +my_use_metalava := $(filter metalava%,$(sdk_stub_name)) +$(warning $(sdk_stub_name) $(my_use_metalava)) + +ifdef my_use_metalava $(full_target): $(HOST_OUT_JAVA_LIBRARIES)/stub-annotations$(COMMON_JAVA_PACKAGE_SUFFIX) $(full_target): PRIVATE_METALAVA_CLASSPATH := -classpath $(HOST_OUT_JAVA_LIBRARIES)/stub-annotations$(COMMON_JAVA_PACKAGE_SUFFIX) +$(full_target): $(HOST_OUT_JAVA_LIBRARIES)/metalava.jar else $(full_target): PRIVATE_METALAVA_CLASSPATH := endif @@ -74,6 +78,10 @@ $(full_target): $(stub_timestamp) $(framework_res_package) $(ZIPTIME) -g -d $(PRIVATE_CLASS_INTERMEDIATES_DIR) \ \@$(PRIVATE_INTERMEDIATES_DIR)/java-source-list \ || ( rm -rf $(PRIVATE_CLASS_INTERMEDIATES_DIR) ; exit 41 ) +ifdef my_use_metalava + $(hide) $(JAVA) -jar $(HOST_OUT_JAVA_LIBRARIES)/metalava.jar \ + --no-banner --rewrite-annotations $(PRIVATE_CLASS_INTERMEDIATES_DIR) +endif $(hide) if [ ! -f $(PRIVATE_FRAMEWORK_RES_PACKAGE) ]; then \ echo Missing file $(PRIVATE_FRAMEWORK_RES_PACKAGE); \ rm -rf $(PRIVATE_CLASS_INTERMEDIATES_DIR); \ From f29bc6c5da24ca0c5498ac2c99b2e87f7c57c329 Mon Sep 17 00:00:00 2001 From: bohu Date: Fri, 6 Jul 2018 08:59:15 -0700 Subject: [PATCH 06/10] emulator: bump sdk image revision to 4 For DP5 release of emulator system images BUG: 111204833 this cl does not impact real devices Change-Id: I32b0421dbadbf9dade9df33396bf041092e7cfd6 --- sys-img/images_arm64-v8a_source.prop_template | 2 +- sys-img/images_armeabi-v7a_source.prop_template | 2 +- sys-img/images_armeabi_source.prop_template | 2 +- sys-img/images_x86_64_source.prop_template | 2 +- sys-img/images_x86_source.prop_template | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/sys-img/images_arm64-v8a_source.prop_template b/sys-img/images_arm64-v8a_source.prop_template index 4cd941eb2..c2c385180 100644 --- a/sys-img/images_arm64-v8a_source.prop_template +++ b/sys-img/images_arm64-v8a_source.prop_template @@ -1,6 +1,6 @@ Pkg.Desc=Android SDK System Image Pkg.UserSrc=false -Pkg.Revision=3 +Pkg.Revision=4 AndroidVersion.ApiLevel=${PLATFORM_SDK_VERSION} AndroidVersion.CodeName=${PLATFORM_VERSION_CODENAME} SystemImage.Abi=arm64-v8a diff --git a/sys-img/images_armeabi-v7a_source.prop_template b/sys-img/images_armeabi-v7a_source.prop_template index 22666796e..6322547c3 100644 --- a/sys-img/images_armeabi-v7a_source.prop_template +++ b/sys-img/images_armeabi-v7a_source.prop_template @@ -1,6 +1,6 @@ Pkg.Desc=Android SDK System Image Pkg.UserSrc=false -Pkg.Revision=3 +Pkg.Revision=4 AndroidVersion.ApiLevel=${PLATFORM_SDK_VERSION} AndroidVersion.CodeName=${PLATFORM_VERSION_CODENAME} SystemImage.Abi=armeabi-v7a diff --git a/sys-img/images_armeabi_source.prop_template b/sys-img/images_armeabi_source.prop_template index c111286d8..ebfec294c 100644 --- a/sys-img/images_armeabi_source.prop_template +++ b/sys-img/images_armeabi_source.prop_template @@ -1,6 +1,6 @@ Pkg.Desc=Android SDK System Image Pkg.UserSrc=false -Pkg.Revision=3 +Pkg.Revision=4 AndroidVersion.ApiLevel=${PLATFORM_SDK_VERSION} AndroidVersion.CodeName=${PLATFORM_VERSION_CODENAME} SystemImage.Abi=armeabi diff --git a/sys-img/images_x86_64_source.prop_template b/sys-img/images_x86_64_source.prop_template index 9574d5de6..7f7af450c 100644 --- a/sys-img/images_x86_64_source.prop_template +++ b/sys-img/images_x86_64_source.prop_template @@ -1,6 +1,6 @@ Pkg.Desc=Android SDK System Image Pkg.UserSrc=false -Pkg.Revision=3 +Pkg.Revision=4 AndroidVersion.ApiLevel=${PLATFORM_SDK_VERSION} AndroidVersion.CodeName=${PLATFORM_VERSION_CODENAME} SystemImage.Abi=x86_64 diff --git a/sys-img/images_x86_source.prop_template b/sys-img/images_x86_source.prop_template index 6f701a2b4..ef470a024 100644 --- a/sys-img/images_x86_source.prop_template +++ b/sys-img/images_x86_source.prop_template @@ -1,6 +1,6 @@ Pkg.Desc=Android SDK System Image Pkg.UserSrc=false -Pkg.Revision=3 +Pkg.Revision=4 AndroidVersion.ApiLevel=${PLATFORM_SDK_VERSION} AndroidVersion.CodeName=${PLATFORM_VERSION_CODENAME} SystemImage.Abi=x86 From c1885b13d86b096f60e3e4cd6d4e0df819fbe915 Mon Sep 17 00:00:00 2001 From: Miao Wang Date: Fri, 1 Jun 2018 11:51:40 -0700 Subject: [PATCH 07/10] Update SDK tree after androidx.renderscript file name change. - androidx.renderscript prebuilt is named as androidx-rs. - android.support.v8.renderscript prebuilt is still renderscript-v8. - Note, this ONLY impact SDK and not device images. Bug: 74398526 Test: mm Change-Id: Ibdd547d4ce5ccb02394c2ce708561b1f13c8e16a (cherry picked from commit ff268369ee9d31517779f8269a7727be62db4d2f) --- build/sdk.atree | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build/sdk.atree b/build/sdk.atree index 421f494a2..ebead6434 100644 --- a/build/sdk.atree +++ b/build/sdk.atree @@ -91,7 +91,8 @@ frameworks/rs/script_api/include build-tools/${PLATFORM_NAME}/rende external/clang/lib/Headers build-tools/${PLATFORM_NAME}/renderscript/clang-include external/clang/LICENSE.TXT build-tools/${PLATFORM_NAME}/renderscript/clang-include/LICENSE.TXT -prebuilts/sdk/renderscript/lib/javalib.jar build-tools/${PLATFORM_NAME}/renderscript/lib/renderscript-v8.jar +prebuilts/sdk/renderscript/lib/javalib.jar build-tools/${PLATFORM_NAME}/renderscript/lib/androidx-rs.jar +prebuilts/sdk/renderscript/lib/javalib_legacy.jar build-tools/${PLATFORM_NAME}/renderscript/lib/renderscript-v8.jar prebuilts/sdk/renderscript/lib/arm/libc.so build-tools/${PLATFORM_NAME}/renderscript/lib/intermediates/armeabi-v7a/libc.so prebuilts/sdk/renderscript/lib/arm/libm.so build-tools/${PLATFORM_NAME}/renderscript/lib/intermediates/armeabi-v7a/libm.so From b59ccfdd284810c8f24b6938361ce365bb7be280 Mon Sep 17 00:00:00 2001 From: Tor Norbye Date: Thu, 19 Jul 2018 13:40:39 -0700 Subject: [PATCH 08/10] 111614464: Update the api-generator script This CL updates the api generator to include the fix from I6f2b3bf950fbd79f81dcd0c484be400044f2c0dd which skips package protected members. Test: Lint Bug: 111614464 Change-Id: Ib6a50a6ecc871c01895b4c903b4ff3be1cc917c4 --- build/Android.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/Android.mk b/build/Android.mk index db55681d8..4fa56f9db 100644 --- a/build/Android.mk +++ b/build/Android.mk @@ -150,7 +150,7 @@ endef ALL_SDK_FILES += $(HOST_OUT)/development/sdk/generated-api-versions.xml -api_gen_jar := $(TOPDIR)prebuilts/tools/common/api-generator/api-generator-26.0.0.jar +api_gen_jar := $(TOPDIR)prebuilts/tools/common/api-generator/api-generator-26.3.0.jar api_gen_deps := \ $(TOPDIR)prebuilts/tools/common/m2/repository/net/sf/kxml/kxml2/2.3.0/kxml2-2.3.0.jar \ $(TOPDIR)prebuilts/tools/common/m2/repository/org/ow2/asm/asm/5.0.4/asm-5.0.4.jar \ From 892d1768a44887df40b7e43b6a96beebdde9c9f2 Mon Sep 17 00:00:00 2001 From: Raju Kulkarni Date: Mon, 23 Jul 2018 12:10:29 -0700 Subject: [PATCH 09/10] Version number bump for build tools and SDK platform release for Final Pi release Bug: 111752442 Test: N/A Change-Id: I602820cce4f7bca9221cb27eee18634c523c9386 --- sdk/build_tools_source.prop_template | 2 +- sdk/platform_source.prop_template | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sdk/build_tools_source.prop_template b/sdk/build_tools_source.prop_template index 370b040dc..f0c887bbe 100644 --- a/sdk/build_tools_source.prop_template +++ b/sdk/build_tools_source.prop_template @@ -1,3 +1,3 @@ Pkg.UserSrc=false -Pkg.Revision=${PLATFORM_SDK_VERSION}.0.1 +Pkg.Revision=${PLATFORM_SDK_VERSION}.0.2 #Pkg.Revision=28.0.0 diff --git a/sdk/platform_source.prop_template b/sdk/platform_source.prop_template index ee25560b6..e3ec3af67 100644 --- a/sdk/platform_source.prop_template +++ b/sdk/platform_source.prop_template @@ -2,7 +2,7 @@ Pkg.Desc=Android SDK Platform ${PLATFORM_VERSION} Pkg.UserSrc=false Platform.Version=${PLATFORM_VERSION} Platform.CodeName= -Pkg.Revision=5 +Pkg.Revision=6 AndroidVersion.ApiLevel=${PLATFORM_SDK_VERSION} AndroidVersion.CodeName=${PLATFORM_VERSION_CODENAME} Layoutlib.Api=15 From 1c875445b6fc08333872bd295527fd1359b80e78 Mon Sep 17 00:00:00 2001 From: Mads Ager Date: Mon, 23 Jul 2018 14:35:03 +0200 Subject: [PATCH 10/10] Update version of D8 in buildtools to latest stable version (1.0.35) The version used to build the platform at a given point in time might not be the best to use for external developers. Sometimes bugs in old VMs have to be worked around in D8. Those bugs do not affect the platform build, but could affect other users. Therefore, we use separate versions for building the platform and for shipping in buildtools. Additionally, make sure that the licenses for libraries shipped with D8 are reflected in the buildtools NOTICE file. Test: make -j PRODUCT-sdk_phone_armv7-win_sdk sdk_repo Test: make -j PRODUCT-sdk_arm64-sdk sdk_repo Bug: 111748733 (cherry picked from commit 0dec39ec212aa381a2dcf3b2f24ef0f5c08e2038) Change-Id: I0ca07e45647ea95816f5e96e991673ee24ed9983 Merged-In: I0ca07e45647ea95816f5e96e991673ee24ed9983 --- build/sdk.atree | 2 +- sdk/sdk_files_NOTICE.txt | 387 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 388 insertions(+), 1 deletion(-) diff --git a/build/sdk.atree b/build/sdk.atree index a16234df3..acfc8c553 100644 --- a/build/sdk.atree +++ b/build/sdk.atree @@ -136,7 +136,7 @@ framework/dx.jar build-tools/${PLATFORM_NAME}/lib/d bin/dexdump build-tools/${PLATFORM_NAME}/dexdump # d8 -prebuilts/r8/d8-master.jar build-tools/${PLATFORM_NAME}/lib/d8.jar +prebuilts/r8/buildtools/d8-master.jar build-tools/${PLATFORM_NAME}/lib/d8.jar prebuilts/r8/d8 build-tools/${PLATFORM_NAME}/d8 # multi-dex diff --git a/sdk/sdk_files_NOTICE.txt b/sdk/sdk_files_NOTICE.txt index 366cbd904..4bb35b57f 100644 --- a/sdk/sdk_files_NOTICE.txt +++ b/sdk/sdk_files_NOTICE.txt @@ -14251,3 +14251,390 @@ exception as provided by Oracle in the LICENSE file that accompanied this code." you modify this library, you may extend this exception to your version of the library, but you are not obligated to do so. If you do not wish to do so, delete this exception statement from your version. + +============================================================ +Notices for file(s): +/lib/d8.jar +------------------------------------------------------------ +This file lists all licenses for code distributed. +All non-library code has the following 3-Clause BSD license. + + +Copyright (c) 2016, the R8 project authors. +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +* Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +* Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +* Neither the name of Google Inc. nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +Summary of distributed libraries: + +- artifact: com.google.guava:guava:+ + name: Guava Google Core Libraries for Java + copyrightHolder: The Guava Authors + license: The Apache Software License, Version 2.0 + licenseUrl: http://www.apache.org/licenses/LICENSE-2.0.txt +- artifact: com.google.code.gson:gson:+ + name: Gson + license: The Apache Software License, Version 2.0 + licenseUrl: http://www.apache.org/licenses/LICENSE-2.0.txt + url: https://github.com/google/gson +- artifact: it.unimi.dsi:fastutil:+ + name: fastutil + license: Apache License, Version 2.0 + licenseUrl: http://www.apache.org/licenses/LICENSE-2.0.html + url: http://fasutil.di.unimi.it/ +- artifact: net.sf.jopt-simple:jopt-simple:+ + name: JOpt Simple + license: The MIT License + licenseUrl: http://www.opensource.org/licenses/mit-license.php + url: http://pholser.github.com/jopt-simple +- artifact: org.ow2.asm:asm-commons:+ + name: ASM Commons + copyrightHolder: INRIA, France Telecom + license: ASM license + licenseUrl: http://asm.ow2.org/license.html + url: http://asm.ow2.org/index.html +- artifact: org.ow2.asm:asm-tree:+ + name: ASM Tree + copyrightHolder: INRIA, France Telecom + license: ASM license + licenseUrl: http://asm.ow2.org/license.html + url: http://asm.ow2.org/index.html +- artifact: org.ow2.asm:asm-util:+ + name: ASM Util + copyrightHolder: INRIA, France Telecom + license: ASM license + licenseUrl: http://asm.ow2.org/license.html + url: http://asm.ow2.org/index.html +- artifact: org.ow2.asm:asm-analysis:+ + name: ASM Util + copyrightHolder: INRIA, France Telecom + license: ASM license + licenseUrl: http://asm.ow2.org/license.html + url: http://asm.ow2.org/index.html +- artifact: org.ow2.asm:asm:+ + name: ASM Core + copyrightHolder: INRIA, France Telecom + license: ASM license + licenseUrl: http://asm.ow2.org/license.html + url: http://asm.ow2.org/index.html +- artifact: org.jetbrains.kotlin:kotlin-stdlib:+ + name: org.jetbrains.kotlin:kotlin-stdlib + copyrightHolder: JetBrains s.r.o. + license: The Apache License, Version 2.0 + licenseUrl: http://www.apache.org/licenses/LICENSE-2.0.txt + url: https://kotlinlang.org/ +- artifact: org.jetbrains.kotlin:kotlin-stdlib-common:+ + name: org.jetbrains.kotlin:kotlin-stdlib + copyrightHolder: JetBrains s.r.o. + license: The Apache License, Version 2.0 + licenseUrl: http://www.apache.org/licenses/LICENSE-2.0.txt + url: https://kotlinlang.org/ +- artifact: org.jetbrains.kotlinx:kotlinx-metadata-jvm:+ + name: org.jetbrains.kotlinx:kotlinx-metadata-jvm + copyrightHolder: JetBrains s.r.o. + license: The Apache License, Version 2.0 + licenseUrl: http://www.apache.org/licenses/LICENSE-2.0.txt + url: https://kotlinlang.org/ +- artifact: org.jetbrains:annotations:+ + name: IntelliJ IDEA Annotations + copyrightHolder: JetBrains s.r.o. + license: The Apache Software License, Version 2.0 + licenseUrl: http://www.apache.org/licenses/LICENSE-2.0.txt + url: http://www.jetbrains.org + + +Licenses details: + + + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + 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. + + +Copyright (c) 2000-2011 INRIA, France Telecom +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: + +1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + +2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + +3. Neither the name of the copyright holders nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF +THE POSSIBILITY OF SUCH DAMAGE. + +Apache Commons Compress +Copyright 2002-2016 The Apache Software Foundation + +This product includes software developed at +The Apache Software Foundation (http://www.apache.org/). + +The files in the package org.apache.commons.compress.archivers.sevenz +were derived from the LZMA SDK, version 9.20 (C/ and CPP/7zip/), +which has been placed in the public domain: + +"LZMA SDK is placed in the public domain." (http://www.7-zip.org/sdk.html) + + + The MIT License + + Copyright (c) 2004-2016 Paul R. Holser, Jr. + + Permission is hereby granted, free of charge, to any person obtaining + a copy of this software and associated documentation files (the + "Software"), to deal in the Software without restriction, including + without limitation the rights to use, copy, modify, merge, publish, + distribute, sublicense, and/or sell copies of the Software, and to + permit persons to whom the Software is furnished to do so, subject to + the following conditions: + + The above copyright notice and this permission notice shall be + included in all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE + LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION + OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION + WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.