diff options
| author | Badhri Jagan Sridharan <badhri@google.com> | 2018-03-27 10:35:59 -0700 |
|---|---|---|
| committer | Badhri Jagan Sridharan <badhri@google.com> | 2018-03-27 10:35:59 -0700 |
| commit | 9a2dfb5342e878e6269faa948cb7d3d1ed98b2a2 (patch) | |
| tree | 43b6c167bd87312fcfc89368f7b11cbc1699a767 /init.hardware.usb.rc | |
| parent | be4f50a51ca9efa48dee0418c6677b27b3e54d78 (diff) | |
Set USB tethering use WIRELESS_CONTROLLER_REMOTE_NDIS (0xE0/0x1/0x3)
Linux and Mac (HoRNIS) are not support MISC_RNDIS_OVER_ETHERNET(0xEF/0x4/0x1)
Set /config/usb_gadget/g1/functions/gsi.rndis/rndis_class_id 1
Phone will use WIRELESS_CONTROLLER_REMOTE_NDIS (0xE0/0x1/0x3)
Linux and Mac (HoRNIS) could open USB tethering function
Bug: 74572255
Test: USB tethering function could work when
/config/usb_gadget/g1/functions/gsi.rndis/rndis_class_id 1
Change-Id: Ib3613e27d7f0009eecbe4e60181cf0d75b651fc3
Signed-off-by: rickyniu <rickyniu@google.com>
Diffstat (limited to 'init.hardware.usb.rc')
| -rw-r--r-- | init.hardware.usb.rc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/init.hardware.usb.rc b/init.hardware.usb.rc index 21d8b8f5..17cff13a 100644 --- a/init.hardware.usb.rc +++ b/init.hardware.usb.rc @@ -48,6 +48,7 @@ on boot setprop sys.usb.mtp.device_type 3 setprop sys.usb.configfs 1 setprop sys.usb.controller "a600000.dwc3" + write /config/usb_gadget/g1/functions/gsi.rndis/rndis_class_id 1 on property:sys.usb.ffs.mtp.ready=1 && property:sys.usb.config=mtp && property:sys.usb.configfs=1 write /config/usb_gadget/g1/idProduct 0x4ee1 |
