diff options
author | Albert Wang <albertccwang@google.com> | 2021-05-28 14:30:49 +0800 |
---|---|---|
committer | Albert Wang <albertccwang@google.com> | 2021-05-31 11:20:27 +0800 |
commit | afefe3a71e4a3159bf942466ef245326af387682 (patch) | |
tree | cd8b8b30cd5b3944b3247aff4ce6d65c92974c34 | |
parent | 68287dba4697ebbc864baf9b17350016d3430b41 (diff) | |
download | gs201-afefe3a71e4a3159bf942466ef245326af387682.tar.gz |
Correct the new udc path
Bug: 189703449
Test: access attributes correctly
Signed-off-by: Albert Wang <albertccwang@google.com>
Change-Id: I2223666cf05ea69ea531991bedcf1de62686f2e7
-rw-r--r-- | usb/Usb.h | 8 | ||||
-rw-r--r-- | usb/android.hardware.usb@1.3-service.gs201.rc | 12 |
2 files changed, 10 insertions, 10 deletions
@@ -67,11 +67,11 @@ enum class HALVersion{ }; constexpr char kGadgetName[] = "11210000.dwc3"; -#define UDC_PATH "/sys/class/udc/11210000.dwc3/" +#define NEW_UDC_PATH "/sys/devices/platform/11210000.usb/" -#define ID_PATH UDC_PATH "device/id" -#define VBUS_PATH UDC_PATH "device/b_sess" -#define USB_DATA_PATH UDC_PATH "device/usb_data_enabled" +#define ID_PATH NEW_UDC_PATH "dwc3_exynos_otg_id" +#define VBUS_PATH NEW_UDC_PATH "dwc3_exynos_otg_b_sess" +#define USB_DATA_PATH NEW_UDC_PATH "usb_data_enabled" struct Usb : public IUsb { Usb(); diff --git a/usb/android.hardware.usb@1.3-service.gs201.rc b/usb/android.hardware.usb@1.3-service.gs201.rc index 64934d6..46e170c 100644 --- a/usb/android.hardware.usb@1.3-service.gs201.rc +++ b/usb/android.hardware.usb@1.3-service.gs201.rc @@ -9,15 +9,15 @@ on post-fs chown root system /sys/class/typec/port0/port_type chown root system /sys/devices/platform/10d50000.hsi2c/i2c-5/i2c-max77759tcpc/contaminant_detection chown root system /sys/devices/platform/10d50000.hsi2c/i2c-6/i2c-max77759tcpc/contaminant_detection - chown root system /sys/class/udc/11210000.usb/device/b_sess - chown root system /sys/class/udc/11210000.usb/device/id - chown root system /sys/class/udc/11210000.usb/device/usb_data_enabled + chown root system /sys/devices/platform/11210000.usb/dwc3_exynos_otg_b_sess + chown root system /sys/devices/platform/11210000.usb/dwc3_exynos_otg_id + chown root system /sys/devices/platform/11210000.usb/usb_data_enabled chmod 664 /sys/class/typec/port0/power_role chmod 664 /sys/class/typec/port0/data_role chmod 664 /sys/class/typec/port0/port_type - chmod 664 /sys/class/udc/11210000.usb/device/b_sess - chmod 664 /sys/class/udc/11210000.usb/device/id - chmod 664 /sys/class/udc/11210000.usb/device/usb_data_enabled + chmod 664 /sys/devices/platform/11210000.usb/dwc3_exynos_otg_b_sess + chmod 664 /sys/devices/platform/11210000.usb/dwc3_exynos_otg_id + chmod 664 /sys/devices/platform/11210000.usb/usb_data_enabled on property:vendor.usb.functions.ready=1 chown system system /config/usb_gadget/ |