diff options
author | tilaksidduram <tilaksidduram@gmail.com> | 2015-12-21 20:16:06 +0530 |
---|---|---|
committer | tilaksidduram <tilaksidduram@gmail.com> | 2015-12-21 20:16:06 +0530 |
commit | dd09dd0dc454ec211d50806a3ca3a7491ab42099 (patch) | |
tree | 43039ee0ae5522c76ca92792c3be23eb78ab1554 /rootdir | |
parent | 563a328793726c9b257f8b1937ee408d6357f6cd (diff) | |
download | device_samsung_n7100-dd09dd0dc454ec211d50806a3ca3a7491ab42099.zip device_samsung_n7100-dd09dd0dc454ec211d50806a3ca3a7491ab42099.tar.gz device_samsung_n7100-dd09dd0dc454ec211d50806a3ca3a7491ab42099.tar.bz2 |
n7100: more GPS updates
* picked up the fixes from the i9300 device tree.
referenced the below commits
* i9300: GPS modifications for use of Groupers PIE blobs [1/2] - 68ff6eba8345e3ac7c6d007fc5db720e664a5bee
* i9300: Grouper blobs update for init - ddce304caa0d9e7b7d2858f409fc99252737c3e1
* i9300: use sh to run gps_daemon and fix config location - 0f6eaf519939d51b7d2c3018047b1bcabc73fa06
all credits to keepcalm444
Diffstat (limited to 'rootdir')
-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 |