From 2b170417895b788f64132c7546d8d2c3d12edd6f Mon Sep 17 00:00:00 2001 From: Sundong Ahn Date: Fri, 18 May 2018 09:55:27 +0900 Subject: [PATCH] Add support when LOCAL_PRIVATE_PLATFORM_APIS is true. LOCAL_PRIVATE_PLATFORM_APIS := ture means that the apps or packages can use the private API. So, if LOCAL_PRIVATE_PLATFORM_APIS := true, they are linked to ".impl" instead of ".stub". Bug: 77577799 Test: build Change-Id: I782e52078bb8c4139c3a24862cb381f6a84e53fe --- core/java_common.mk | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/core/java_common.mk b/core/java_common.mk index b75949a1f9..f4696d74a6 100644 --- a/core/java_common.mk +++ b/core/java_common.mk @@ -263,9 +263,8 @@ ifndef LOCAL_IS_HOST_MODULE ifneq (,$(TARGET_BUILD_APPS)) sdk_libs := $(foreach lib_name,$(LOCAL_SDK_LIBRARIES),$(call resolve-prebuilt-sdk-module,system_current,$(lib_name))) else - # When SDK libraries are referenced from modules built without SDK, provide the system stub to them - # because it has the largest API surface. - sdk_libs := $(foreach lib_name,$(LOCAL_SDK_LIBRARIES),$(lib_name).stubs.system) + # When SDK libraries are referenced from modules built without SDK, provide the all APIs to them + sdk_libs := $(foreach lib_name,$(LOCAL_SDK_LIBRARIES),$(lib_name).impl) endif else ifeq ($(LOCAL_NO_STANDARD_LIBRARIES),true)