From 50bf3127d97fb68903e4ebf579999770c1574048 Mon Sep 17 00:00:00 2001 From: Colin Cross Date: Thu, 18 Apr 2019 12:06:27 -0700 Subject: [PATCH] Use framework.aidl built by Soong Bug: 130798034 Test: m checkbuild Change-Id: I24621b41860ce1fd1c3ba067430c8d62b49d03cb --- CleanSpec.mk | 2 ++ core/java.mk | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CleanSpec.mk b/CleanSpec.mk index 757c513a4..ac2599605 100644 --- a/CleanSpec.mk +++ b/CleanSpec.mk @@ -620,6 +620,8 @@ $(call add-clean-step, find $(PRODUCT_OUT) -type f -name "generated_*_image_info # Clean up libicuuc.so and libicui18n.so $(call add-clean-step, rm -rf $(PRODUCT_OUT)/system/lib*/libicu*) + +$(call add-clean-step, rm -rf $(PRODUCT_OUT)/target/common/obj/framework.aidl) # ************************************************ # NEWER CLEAN STEPS MUST BE AT THE END OF THE LIST # ************************************************ diff --git a/core/java.mk b/core/java.mk index c3787ae3c..153396370 100644 --- a/core/java.mk +++ b/core/java.mk @@ -108,7 +108,7 @@ aidl_preprocess_import := ifdef LOCAL_SDK_VERSION ifneq ($(filter current system_current test_current core_current, $(LOCAL_SDK_VERSION)$(TARGET_BUILD_APPS_USE_PREBUILT_SDK)),) # LOCAL_SDK_VERSION is current and no TARGET_BUILD_APPS - aidl_preprocess_import := $(TARGET_OUT_COMMON_INTERMEDIATES)/framework.aidl + aidl_preprocess_import := $(FRAMEWORK_AIDL) else aidl_preprocess_import := $(call resolve-prebuilt-sdk-aidl-path,$(LOCAL_SDK_VERSION)) endif # not current or system_current