aboutsummaryrefslogtreecommitdiff
path: root/rootdir/system
diff options
context:
space:
mode:
authortunturn <arbiter1000@gmail.com>2017-02-28 11:33:28 +1100
committerMax Weffers <rcstar6696@gmail.com>2017-03-14 13:14:42 +0100
commit09582dfc1d9a93e777e5da7582782da530776e14 (patch)
tree1430481f8761add18addad8a7dd40f8364fa55fa /rootdir/system
parent21af9d5586215e76e3e9d803d3ffafd1e5bbac12 (diff)
shinano-common: copy init.qcom-sensor.sh
Needed for sensor init Change-Id: I61a323a6c9b08946b5be243ce660e1dc12882266
Diffstat (limited to 'rootdir/system')
-rw-r--r--rootdir/system/etc/init.qcom-sensor.sh23
1 files changed, 23 insertions, 0 deletions
diff --git a/rootdir/system/etc/init.qcom-sensor.sh b/rootdir/system/etc/init.qcom-sensor.sh
new file mode 100644
index 0000000..21d24c7
--- /dev/null
+++ b/rootdir/system/etc/init.qcom-sensor.sh
@@ -0,0 +1,23 @@
+#!/system/bin/sh
+# Copyright (C) 2013 Sony Mobile Communications AB.
+
+#
+# Function to start sensors for DSPS enabled platforms
+#
+start_sensors()
+{
+ if [ -c /dev/msm_dsps -o -c /dev/sensors ]; then
+ chmod -h 775 /persist/sensors
+ chmod -h 664 /persist/sensors/sensors_settings
+ chown -h system.root /persist/sensors/sensors_settings
+
+ mkdir -p /data/misc/sensors
+ chmod -h 775 /data/misc/sensors
+
+ echo 1 > /persist/sensors/settings
+ start sensors
+ fi
+}
+
+start_sensors
+