blob: 47b7f32e08c773b6669ca79d566e4e5ed280fe67 [file] [log] [blame]
on post-fs-data
# Directory for GPS
chmod 0660 /dev/gnss_ipc
chown system system /dev/gnss_ipc
mkdir /data/vendor 0771 system system
chown system system /data/vendor
mkdir /data/vendor/gps 0771 system system
chown system system /data/vendor/gps
mkdir /data/vendor/gps/sgee 0771 system system
chown system system /data/vendor/gps/sgee
rm /data/vendor/gps/gps_started
rm /data/vendor/gps/glonass_started
rm /data/vendor/gps/beidou_started
rm /data/vendor/gps/smd_started
rm /data/vendor/gps/sv_cno.info
# GPS daemon
service gpsd /vendor/bin/hw/gpsd -c /vendor/etc/gnss/gps.cfg
class main
user gps
group system inet net_raw wakelock
capabilities BLOCK_SUSPEND
ioprio be 0