diff --git a/livedisplay/AntiFlicker.cpp b/livedisplay/AntiFlicker.cpp index bac60fa..fdf2686 100644 --- a/livedisplay/AntiFlicker.cpp +++ b/livedisplay/AntiFlicker.cpp @@ -29,7 +29,7 @@ namespace V2_1 { namespace implementation { static constexpr const char* kAntiFlickerStatusPath = - "/sys/devices/platform/soc/soc:qcom,dsi-display/dc_enable"; + "/sys/devices/platform/soc/soc:qcom,dsi-display/anti_flicker"; Return AntiFlicker::isEnabled() { std::string buf; diff --git a/livedisplay/vendor.lineage.livedisplay@2.1-service.xiaomi_sm6150.rc b/livedisplay/vendor.lineage.livedisplay@2.1-service.xiaomi_sm6150.rc index 8b66cee..1d64994 100644 --- a/livedisplay/vendor.lineage.livedisplay@2.1-service.xiaomi_sm6150.rc +++ b/livedisplay/vendor.lineage.livedisplay@2.1-service.xiaomi_sm6150.rc @@ -1,8 +1,8 @@ on boot - chown system system /sys/devices/platform/soc/soc:qcom,dsi-display/dc_enable + chown system system /sys/devices/platform/soc/soc:qcom,dsi-display/anti_flicker chown system system /sys/devices/platform/soc/soc:qcom,dsi-display/hbm - chmod 0660 /sys/devices/platform/soc/soc:qcom,dsi-display/dc_enable + chmod 0660 /sys/devices/platform/soc/soc:qcom,dsi-display/anti_flicker chmod 0660 /sys/devices/platform/soc/soc:qcom,dsi-display/hbm service vendor.livedisplay-hal-2-1 /vendor/bin/hw/vendor.lineage.livedisplay@2.1-service.xiaomi_sm6150 diff --git a/sepolicy/vendor/file_contexts b/sepolicy/vendor/file_contexts index bc1ea23..17bf39e 100644 --- a/sepolicy/vendor/file_contexts +++ b/sepolicy/vendor/file_contexts @@ -22,7 +22,7 @@ # Display /dev/xiaomi-touch u:object_r:touchfeature_device:s0 /sys/devices/platform/soc/[a-f0-9]+.qcom,mdss_mdp/drm/card([0-3])+/card([0-3])+-DSI-1/panel_info u:object_r:vendor_sysfs_graphics:s0 -/sys/devices/platform/soc/soc:qcom,dsi-display/dc_enable u:object_r:sysfs_anti_flicker:s0 +/sys/devices/platform/soc/soc:qcom,dsi-display/anti_flicker u:object_r:sysfs_anti_flicker:s0 /sys/devices/platform/soc/soc:qcom,dsi-display/fod_ui u:object_r:vendor_sysfs_fod:s0 /sys/devices/platform/soc/soc:qcom,dsi-display/hbm u:object_r:sysfs_hbm:s0 /sys/devices/platform/soc/soc:qcom,dsi-display/doze_mode u:object_r:sysfs_doze:s0