blob: 21d24c78fb86a83cefd225f32a4fdfdf7bd63314 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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
|