diff --git a/rootdir/etc/init.qcom.rc b/rootdir/etc/init.qcom.rc index 159f3b5e..1f87aff6 100755 --- a/rootdir/etc/init.qcom.rc +++ b/rootdir/etc/init.qcom.rc @@ -419,6 +419,7 @@ on post-fs-data # Create /data/time folder for time-services mkdir /data/vendor/time/ 0700 system system + setprop vold.post_fs_data_done 1 #Create a folder for SRS to be able to create a usercfg file @@ -630,15 +631,20 @@ service vendor.sensors /vendor/bin/sscrpcd disabled service vendor.sensors.qti /vendor/bin/sensors.qti - class core + class main user system group system + # Grants the ability for this daemon to bind IPC router ports so it can + # register QMI services + capabilities NET_BIND_SERVICE service vendor.sensors.qcom /vendor/bin/sensors.qcom - class core - user root - group root - writepid /dev/cpuset/system-background/tasks + class main + user system + group system + # Grants the ability for this daemon to bind IPC router ports so it can + # register QMI services + capabilities NET_BIND_SERVICE on property:ro.vendor.use_data_netmgrd=false # netmgr not supported on specific target diff --git a/rootdir/etc/ueventd.qcom.rc b/rootdir/etc/ueventd.qcom.rc index 4c798129..e52d5e26 100644 --- a/rootdir/etc/ueventd.qcom.rc +++ b/rootdir/etc/ueventd.qcom.rc @@ -236,7 +236,9 @@ firmware_directories /vendor/firmware_mnt/image/ /dev/tsc_ci0 0660 media media # sensors -/dev/sensors 0660 system system +# /dev/sensors only supports an ioctl to get the current SLPI timestamp +# allow the sensors daemon to perform this as non-root +/dev/sensors 0660 root system /sys/devices/i2c-12/12-* pollrate_ms 0664 system system /sys/devices/f9925000.i2c/i2c-0/0-* enable 0660 input system /sys/devices/f9925000.i2c/i2c-0/0-* poll_delay 0660 input system @@ -413,7 +415,6 @@ firmware_directories /vendor/firmware_mnt/image/ /sys/class/graphics/fb0 dynamic_bitclk 0664 system graphics /sys/devices/virtual/hdcp/msm_hdcp min_level_change 0664 system graphics - #QG device /dev/qg 0660 system system /dev/qg_battery 0660 system system