Skip to content

Instantly share code, notes, and snippets.

@luk1337
Created December 18, 2015 14:41
Show Gist options
  • Save luk1337/c41d47daccea9e529a42 to your computer and use it in GitHub Desktop.
Save luk1337/c41d47daccea9e529a42 to your computer and use it in GitHub Desktop.
From a800c758397e535cc11aabc574e6c09a190808ee Mon Sep 17 00:00:00 2001
From: LuK1337 <priv.luk@gmail.com>
Date: Fri, 18 Dec 2015 15:40:40 +0100
Subject: [PATCH] titan: Enable step counter and detector feature
Change-Id: I26a1d5d20cdf1af0c1eb288d87a918749bc003f4
---
device.mk | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/device.mk b/device.mk
index d5866c1..ef859cf 100644
--- a/device.mk
+++ b/device.mk
@@ -20,6 +20,11 @@ $(call inherit-product-if-exists, vendor/motorola/titan/titan-vendor.mk)
# Overlay
DEVICE_PACKAGE_OVERLAYS += $(LOCAL_PATH)/overlay
+# Permissions
+PRODUCT_COPY_FILES += \
+ frameworks/native/data/etc/android.hardware.sensor.stepcounter.xml:system/etc/permissions/android.hardware.sensor.stepcounter.xml \
+ frameworks/native/data/etc/android.hardware.sensor.stepdetector.xml:system/etc/permissions/android.hardware.sensor.stepdetector.xml
+
# Audio configuration
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/mixer_paths.xml:system/etc/mixer_paths.xml
--
2.6.4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment