ARM: Exynos: Manta: add gps lib and configuration files
These files must be loaded in device for GPS operation.
gps.exynos.so - gps lib
gpsd - gps daemon
gps.conf, gps.xml - gps configuration files
device.mk,ueventd.manta.rc and init.manta.rc are used for copying lib&conf files and running gps daemon.
Change-Id: Ib4687a3b1309757f5c2c43bcde94457802ae9911
Signed-off-by: Bono Koo <mw.koo@samsung.com>
diff --git a/init.manta.rc b/init.manta.rc
old mode 100755
new mode 100644
index fae0349..f045fd8
--- a/init.manta.rc
+++ b/init.manta.rc
@@ -36,6 +36,14 @@
chmod 0660 /sys/class/backlight/pwm-backlight.0/brightness
chown system system /sys/class/backlight/pwm-backlight.0/brightness
+# create data/gps for GPS daemon
+ chown root system /sys/class/gps/bcm475x/GPS_PWR_EN/value
+ chmod 0664 /sys/class/gps/bcm475x/GPS_PWR_EN/value
+ chown root system /sys/class/gps/bcm475x/GPS_nRST/value
+ chmod 0664 /sys/class/gps/bcm475x/GPS_nRST/value
+ mkdir /data/gps 771 system system
+ chown system system /data/gps
+
# create virtual SD card at /storage/sdcard0, based on the /data/media directory
# daemon will drop to user/group system/media_rw after initializing
# underlying files in /data/media will be created with user and group media_rw (1023)
@@ -97,6 +105,12 @@
service watchdogd /sbin/watchdogd 10 20
class core
+service gpsd /system/vendor/bin/gpsd -c /system/vendor/etc/gps.xml
+ class main
+ socket gps seqpacket 0660 gps system
+ user gps
+ group system inet sdcard_rw
+
# on userdebug and eng builds, enable kgdb on the serial console
on property:ro.debuggable=1
write /sys/module/kgdboc/parameters/kgdboc ttyFIQ2