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/lna_started
    rm /data/vendor/gps/sv_cno.info

# GPS daemon
service gpsd /vendor/bin/hw/gps.sh
    class main
    user gps
    group system inet net_raw wakelock
    capabilities BLOCK_SUSPEND
    ioprio be 0

on property:dev.gnss.silentlogging=ON
    mkdir /data/vendor/gps/silentGnssLogging 0771 system system
    restart gpsd

on property:dev.gnss.silentlogging=OFF
    rmdir /data/vendor/gps/silentGnssLogging
    restart gpsd

on property:dev.gnss.silentloggingIssueTracker=ON
    mkdir /data/vendor/gps/silentGnssLoggingIssueTracker 0771 system system
    restart gpsd

on property:dev.gnss.silentloggingIssueTracker=OFF
    rmdir /data/vendor/gps/silentGnssLoggingIssueTracker
    restart gpsd