From f6518caf1ec5e671bcb583110fdc22298ab96b4e Mon Sep 17 00:00:00 2001 From: Alberto97 Date: Sat, 17 Nov 2018 11:27:11 +0100 Subject: [PATCH] ueventd: Change permissions of USB role switch nodes Usb HAL expects data/power role switch to be supported if these are writable. Despite our hardware can support the functionality, it does not seem to be properly implemented. --- rootdir/etc/ueventd.qcom.rc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rootdir/etc/ueventd.qcom.rc b/rootdir/etc/ueventd.qcom.rc index b10cf82..c466d1c 100644 --- a/rootdir/etc/ueventd.qcom.rc +++ b/rootdir/etc/ueventd.qcom.rc @@ -328,6 +328,6 @@ /dev/esfp0 0660 system system # USB role switch -/sys/class/dual_role_usb/* data_role 0660 system system -/sys/class/dual_role_usb/* power_role 0660 system system -/sys/class/dual_role_usb/* mode 0660 system system +/sys/class/dual_role_usb/* data_role 0444 system system +/sys/class/dual_role_usb/* power_role 0444 system system +/sys/class/dual_role_usb/* mode 0444 system system