| 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 |