diff options
author | Ray Chi <raychi@google.com> | 2021-11-18 12:07:24 +0800 |
---|---|---|
committer | Ray Chi <raychi@google.com> | 2021-11-18 17:06:56 +0800 |
commit | bdd4728a17abc50075ae62c170edaff5744afc4c (patch) | |
tree | e62e02d3592ad2c9fcf81cd5bec48219b5e8d896 /conf | |
parent | f57447500640b08110c684a6acbe860c2253cf78 (diff) | |
download | gs201-bdd4728a17abc50075ae62c170edaff5744afc4c.tar.gz |
usb: modify the permission of USB gadget hal
Currently, USB gadgdet hal couldn't access configfs nodes during
device booting. The permission of configfs nodes are root as default,
and they are modified to system by init process. Therefore, USB
gadget HAL can't access them before permission changes completely.
The patch will modify permission of USB gadget hal so that it can
access configfs nodes without permission change.
Bug: 204378488
Test: check connection time
Change-Id: I97f5446a51183225227744043e4a6e0088fecf0b
Diffstat (limited to 'conf')
-rw-r--r-- | conf/init.gs201.usb.rc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/conf/init.gs201.usb.rc b/conf/init.gs201.usb.rc index be40774..3fb626a 100644 --- a/conf/init.gs201.usb.rc +++ b/conf/init.gs201.usb.rc @@ -67,7 +67,8 @@ on early-boot # etr_miu function mkdir /config/usb_gadget/g1/functions/etr_miu.gs11 - setprop vendor.usb.functions.ready 1 + # disable permission change. TODO (b/206902205): add back later + # setprop vendor.usb.functions.ready 1 on boot write /config/usb_gadget/g1/bcdDevice 0x0510 |