I have written a new HAL libsensors. My new HAL libsensors can not access sysfs attributes exposed from the driver. Sensor driver already has permission set at 0664 as shown below. static DEVICE_ATTR(enable_ps, 0664, prx_show_enable_ps, prx_set_enable_ps);
libsensors has no permission to access this attribute “enable_ps”. Following is the error sensors : SensorBase: write_attr failed to open /sys/devices/soc/75b6000.i2c/i2c-8/8-001e/enable_ps (Permission denied)
Please let me know if anyone faced this kind of issue.