OSDN Git Service

packages/apps/Settings: Set LOCAL_SDK_VERSION where possible.
authorAnton Hansson <hansson@google.com>
Thu, 22 Feb 2018 16:12:29 +0000 (16:12 +0000)
committerAnton Hansson <hansson@google.com>
Thu, 22 Feb 2018 16:12:29 +0000 (16:12 +0000)
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.

Test: make relevant packages
Bug: 73535841
Change-Id: Ic906adbd670c4dbfe2cdf0b71cdbeaf9ac08a27e

Android.mk
tests/anomaly-tester/Android.mk
tests/unit/Android.mk

index c59d938..cb856ce 100644 (file)
@@ -12,6 +12,7 @@ include $(BUILD_STATIC_JAVA_LIBRARY)
 include $(CLEAR_VARS)
 
 LOCAL_PACKAGE_NAME := Settings
+LOCAL_PRIVATE_PLATFORM_APIS := true
 LOCAL_CERTIFICATE := platform
 LOCAL_PRIVILEGED_MODULE := true
 LOCAL_MODULE_TAGS := optional
index ade37db..5d48ca8 100644 (file)
@@ -17,6 +17,7 @@ LOCAL_SRC_FILES := $(call all-subdir-java-files)
 LOCAL_PROGUARD_ENABLED := disabled
 
 LOCAL_PACKAGE_NAME := AnomalyTester
+LOCAL_PRIVATE_PLATFORM_APIS := true
 
 LOCAL_INSTRUMENTATION_FOR := Settings
 
index 060c3e1..ca7b1cd 100644 (file)
@@ -20,6 +20,7 @@ LOCAL_STATIC_JAVA_LIBRARIES := \
 LOCAL_SRC_FILES := $(call all-java-files-under, src)
 
 LOCAL_PACKAGE_NAME := SettingsUnitTests
+LOCAL_PRIVATE_PLATFORM_APIS := true
 LOCAL_COMPATIBILITY_SUITE := device-tests
 
 LOCAL_INSTRUMENTATION_FOR := Settings