OSDN Git Service

Eleven: Set LOCAL_PRIVATE_PLATFORM_APIS
authorAnton Hansson <hansson@google.com>
Wed, 21 Feb 2018 14:11:44 +0000 (14:11 +0000)
committerAdrian DC <radian.dc@gmail.com>
Sat, 11 Aug 2018 08:44:57 +0000 (10:44 +0200)
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

index 5bf8419..754a2aa 100644 (file)
@@ -25,6 +25,8 @@ LOCAL_USE_AAPT2 := true
 LOCAL_PACKAGE_NAME := Eleven
 LOCAL_OVERRIDES_PACKAGES := Music
 
+LOCAL_PRIVATE_PLATFORM_APIS := true
+
 LOCAL_PRIVILEGED_MODULE := true
 
 LOCAL_JNI_SHARED_LIBRARIES := librsjni