From: Anton Hansson Date: Wed, 21 Feb 2018 14:11:44 +0000 (+0000) Subject: universal7580: SamsungDoze: Set LOCAL_PRIVATE_PLATFORM_APIS X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=03d71f6622976aabd9dc2ae44cc4cfe1ad2f26c8;p=GitHub%2FLineageOS%2Fandroid_device_samsung_universal7580-common.git universal7580: SamsungDoze: 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. Test: make relevant packages Bug: 73535841 Change-Id: Ib244e0b7de264191a94d8b0e6512be2a580ec59f --- diff --git a/SamsungDoze/Android.mk b/SamsungDoze/Android.mk index 4f9f904..2ba1d12 100644 --- a/SamsungDoze/Android.mk +++ b/SamsungDoze/Android.mk @@ -9,6 +9,8 @@ LOCAL_PACKAGE_NAME := SamsungDoze LOCAL_CERTIFICATE := platform LOCAL_PRIVILEGED_MODULE := true +LOCAL_PRIVATE_PLATFORM_APIS := true + LOCAL_USE_AAPT2 := true LOCAL_STATIC_ANDROID_LIBRARIES := \