From 42c4cc3d5b3ff3d635b56575fc81480b06c1b1ea Mon Sep 17 00:00:00 2001 From: Anton Hansson Date: Wed, 21 Feb 2018 14:11:44 +0000 Subject: [PATCH] SetupWizard: Set LOCAL_PRIVATE_PLATFORM_APIS This change sets LOCAL_SDK_VERSION for all packages where this is possible without breaking the build, and LOCAL_PRIVATE_PLATFORM_APIS := true otherwise. Setting one of these two will be made required soon, and this is a change in preparation for that. Not setting LOCAL_SDK_VERSION makes the app implicitly depend on the bootclasspath, which is often not required. This change effectively makes depending on private apis opt-in rather than opt-out. Bug: 73535841 Change-Id: Iabb0556dc1c80c7fc7f6c76d61d5e441b03cdce0 --- Android.mk | 2 ++ tests/Android.mk | 2 ++ 2 files changed, 4 insertions(+) diff --git a/Android.mk b/Android.mk index 28ad0a8b..394f09e6 100644 --- a/Android.mk +++ b/Android.mk @@ -10,6 +10,8 @@ LOCAL_CERTIFICATE := platform LOCAL_PRIVILEGED_MODULE := true LOCAL_OVERRIDES_PACKAGES := Provision +LOCAL_PRIVATE_PLATFORM_APIS := true + LOCAL_PROGUARD_FLAG_FILES := proguard.flags LOCAL_STATIC_JAVA_LIBRARIES := \ diff --git a/tests/Android.mk b/tests/Android.mk index f259ebb5..91636234 100644 --- a/tests/Android.mk +++ b/tests/Android.mk @@ -14,4 +14,6 @@ LOCAL_SRC_FILES := $(call all-java-files-under, src) LOCAL_PACKAGE_NAME := LineageSetupWizardTests LOCAL_CERTIFICATE := platform +LOCAL_PRIVATE_PLATFORM_APIS := true + include $(BUILD_PACKAGE)