diff options
| -rw-r--r-- | rootdir/etc/init.mofd_v1.rc | 10 | ||||
| -rw-r--r-- | sepolicy/sensorhubd.te | 1 |
2 files changed, 6 insertions, 5 deletions
diff --git a/rootdir/etc/init.mofd_v1.rc b/rootdir/etc/init.mofd_v1.rc index 24bc221..7845002 100644 --- a/rootdir/etc/init.mofd_v1.rc +++ b/rootdir/etc/init.mofd_v1.rc @@ -273,9 +273,9 @@ service drm /system/bin/drmserver service sensorhubd /system/bin/sensorhubd class main - user system - group system - socket sensorhubd stream 660 system system + user root + group root system readproc + socket sensorhubd stream 666 system system on charger mount ext4 /dev/block/by-name/system /system ro noatime barrier=1,data=ordered @@ -296,8 +296,8 @@ on charger #Turn on VPROG2 Power rail to avoid power leakage in Sensor -# chmod 0664 /sys/bus/pci/devices/0000:00:16.1/control -# write /sys/bus/pci/devices/0000:00:16.1/control "0 1 0" + chmod 0664 /sys/bus/pci/devices/0000:00:16.1/control + write /sys/bus/pci/devices/0000:00:16.1/control "0 1 0" on property:persist.asus.instant_camera=1 write sys/devices/platform/gpio-keys/enabled_wakeup 115 diff --git a/sepolicy/sensorhubd.te b/sepolicy/sensorhubd.te index d856a2b..bc0c928 100644 --- a/sepolicy/sensorhubd.te +++ b/sepolicy/sensorhubd.te @@ -11,6 +11,7 @@ allow sensorhubd sensor_sysfs_file:file rw_file_perms; allow sensorhubd sysfs:dir r_dir_perms; allow sensorhubd sysfs:file r_file_perms; allow sensorhubd rootfs:lnk_file r_file_perms; +allow sensorhubd self:capability dac_override; # Note: sensorhubd tries to exec a script to update the firmware, we # specifically do not allow that since we don't ship the script |
