summaryrefslogtreecommitdiffstats
path: root/Android.mk
diff options
context:
space:
mode:
authorRoman Birg <roman@cyngn.com>2014-05-28 14:56:47 -0700
committerRoman Birg <roman@cyngn.com>2014-05-28 14:56:47 -0700
commitc5a4398fae1116f0db5a6fe2b3a36fb74c4b723d (patch)
treeb7f449895d7b65f2c895e9ebe48efc02c5a030f3 /Android.mk
parent2be8453fb49fe37695c8f0cf8ec8b3b791c57ee2 (diff)
downloadpackages_apps_LockClock-c5a4398fae1116f0db5a6fe2b3a36fb74c4b723d.zip
packages_apps_LockClock-c5a4398fae1116f0db5a6fe2b3a36fb74c4b723d.tar.gz
packages_apps_LockClock-c5a4398fae1116f0db5a6fe2b3a36fb74c4b723d.tar.bz2
LockClock: do not use GPS if Play Services is available
In order to conserve battery, if the device has Play Services installed (including the case where Play Services is outdated), ignore the GPS location provider. Change-Id: Iaeaa936128b91d5def10d2177a887f25c6a748f8 Signed-off-by: Roman Birg <roman@cyngn.com>
Diffstat (limited to 'Android.mk')
-rw-r--r--Android.mk12
1 files changed, 12 insertions, 0 deletions
diff --git a/Android.mk b/Android.mk
index 9c560d8..7809d91 100644
--- a/Android.mk
+++ b/Android.mk
@@ -24,6 +24,18 @@ LOCAL_PACKAGE_NAME := LockClock
LOCAL_PROGUARD_FLAG_FILES := proguard.flags
LOCAL_AAPT_INCLUDE_ALL_RESOURCES := true
+# Include res dir from chips
+google_play_dir := ../../../external/google/google_play_services/libproject/google-play-services_lib/res
+res_dir := $(google_play_dir) res
+
+LOCAL_RESOURCE_DIR := $(addprefix $(LOCAL_PATH)/, $(res_dir))
+LOCAL_AAPT_FLAGS := --auto-add-overlay
+LOCAL_AAPT_FLAGS += --extra-packages com.google.android.gms
+
+LOCAL_STATIC_JAVA_LIBRARIES := play
+LOCAL_PREBUILT_STATIC_JAVA_LIBRARIES := \
+ play:../../../external/google/google_play_services/libproject/google-play-services_lib/libs/google-play-services.jar
+
include $(BUILD_PACKAGE)
include $(call all-makefiles-under,$(LOCAL_PATH))