aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuK1337 <priv.luk@gmail.com>2018-08-15 13:49:11 +0200
committerLuK1337 <priv.luk@gmail.com>2018-08-15 13:53:01 +0200
commit9d8bd470739a6bbef153f9837e8264bfa7c4ec35 (patch)
treed898cab76661d31e26ae9916a2b5084d79c76796
parent01c781b53ff44db1c8ebc177c100b266ca86c386 (diff)
Let TimeKeep use private platform APIs
* /we/ tried to fix it before by setting LOCAL_SDK_VERSION := current but apparently no one tested if it actually compiled. * Setting LOCAL_PRIVATE_PLATFORM_APIS := true makes it compile properly as the package depends on private APIs such as android.os.SystemProperties. * Lets also remove unnecessary version filter while at it. There's literally no reason to ever do that. Change-Id: I795d6c647568be1c802e609d8ff93759da3873bd
-rw-r--r--Android.mk4
1 files changed, 1 insertions, 3 deletions
diff --git a/Android.mk b/Android.mk
index 22e107b..0d91924 100644
--- a/Android.mk
+++ b/Android.mk
@@ -17,9 +17,7 @@ LOCAL_MODULE_TAGS := optional
LOCAL_SRC_FILES := $(call all-java-files-under, src)
LOCAL_PACKAGE_NAME := TimeKeep
LOCAL_CERTIFICATE := platform
+LOCAL_PRIVATE_PLATFORM_APIS := true
LOCAL_PRIVILEGED_MODULE := true
-ifeq (1,$(filter 1,$(shell echo "$$(( $(PLATFORM_SDK_VERSION) >= 28 ))" )))
-LOCAL_SDK_VERSION := current
-endif
LOCAL_PROGUARD_ENABLED := disabled
include $(BUILD_PACKAGE)