diff options
Diffstat (limited to 'rootdir/init.target.rc')
-rw-r--r-- | rootdir/init.target.rc | 32 |
1 files changed, 24 insertions, 8 deletions
diff --git a/rootdir/init.target.rc b/rootdir/init.target.rc index d98fe50..a7431d2 100644 --- a/rootdir/init.target.rc +++ b/rootdir/init.target.rc @@ -4,14 +4,6 @@ on init export VIBE_PIPE_PATH /dev/pipes mkdir /dev/pipes 0771 shell shell -# GPS -service gpsd /system/bin/gpsd -c /system/etc/gps.xml - class main - socket gps seqpacket 0660 gps system - user gps - group system inet sdcard_rw gps - ioprio be 0 - on post-fs-data chown radio system /sys/devices/platform/samsung-pd.5/s3c-fimc.2/range_mode chmod 0660 /sys/devices/platform/samsung-pd.5/s3c-fimc.2/range_mode @@ -22,6 +14,21 @@ on post-fs-data # Restorecon restorecon_recursive /efs +# GPS init + mkdir /data/gps + chown gps system /data/gps + chmod 770 /data/gps + write /sys/class/sec/gps/GPS_PWR_EN/export 162 + write /sys/class/sec/gps/GPS_PWR_EN/value 0 + write /sys/class/sec/gps/GPS_PWR_EN/direction out + chown gps system /sys/class/sec/gps/GPS_PWR_EN/value + chmod 0664 /sys/class/sec/gps/GPS_PWR_EN/value + chown gps system /dev/ttySAC1 + chmod 0660 /dev/ttySAC1 + restorecon /sys/class/sec/gps/export + restorecon /sys/class/sec/gps/GPS_PWR_EN/value + restorecon /sys/class/sec/gps/GPS_PWR_EN/direction + # SensorHub chown system radio /sys/class/sensors/ssp_sensor/enable chown system radio /sys/class/sensors/ssp_sensor/mcu_rev @@ -40,3 +47,12 @@ service cpboot-daemon /sbin/cbd -d -p 10 class main user root group radio cache inet misc audio sdcard_rw log + +# Start GPS daemon +service gps-daemon /system/bin/sh /system/bin/gps_daemon.sh + class main + socket gps seqpacket 0660 gps system + user gps + group system inet sdcard_rw gps + ioprio be 0 + seclabel u:r:glgps:s0 |