Ethernet on USB hub doesn't work on LineageOS 20, worked on 18.1 (gts4lvwifi)
I upgraded my device from LineageOS 18.1 to 20 and now ethernet doesn't work anymore.
Expected Behavior
Ethernet should work like it did on Lineage 18.1
Current Behavior
I've got an identical device still on 18.1 (18.1-20210426-NIGHTLY-gts4lvwifi) so I'm sure it's not a problem with the USB-C hub and it worked before.
Steps to Reproduce
- Connect device with USB ethernet adapter
- Devices switches to ethernet connection
- Connect device with an USB-C hub with ethernet adapter
- Device doesn't switch to ethernet connection
Device information
I've tried to USB-C hubs with ethernet, both from Ugreen. It worked previously on 18.1 and it works on my Pixel 6 Pro as well.
USB-C hub 1 (not working):
Bus 004 Device 050: ID 0bda:8153 Realtek Semiconductor Corp. RTL8153 Gigabit Ethernet Adapter
Bus 004 Device 049: ID 05e3:0749 Genesys Logic, Inc. SD Card Reader and Writer
Bus 004 Device 048: ID 2109:0817 VIA Labs, Inc. USB3.0 Hub
Bus 001 Device 038: ID 2109:2817 VIA Labs, Inc. USB2.0 Hub
USB-C hub 2 (not working, https://nl.aliexpress.com/item/4001179589261.html):
Bus 004 Device 046: ID 05e3:0626 Genesys Logic, Inc. Hub
Bus 004 Device 045: ID 05e3:0749 Genesys Logic, Inc. SD Card Reader and Writer
Bus 004 Device 047: ID 0bda:8153 Realtek Semiconductor Corp. RTL8153 Gigabit Ethernet Adapter
Bus 004 Device 044: ID 05e3:0626 Genesys Logic, Inc. Hub
Bus 001 Device 037: ID 1d5c:7102 Fresco Logic Generic Billboard Device
Bus 001 Device 036: ID 05e3:0610 Genesys Logic, Inc. Hub
Bus 001 Device 034: ID 05e3:0610 Genesys Logic, Inc. Hub
USB-A ethernet adapter (working, even when connected to one of the USB-C hubs)
Bus 001 Device 006: ID 0b95:772b ASIX Electronics Corp. AX88772B
Some information from logcat:
03-09 11:19:11.734 0 0 E : [0: kworker/0:0: 9619] usb 1-1-port4: not reset yet, waiting 10ms
03-09 11:19:11.754 0 0 E : [0: kworker/0:0: 9619] usb 1-1-port4: not reset yet, waiting 10ms
03-09 11:19:13.357 27299 27326 D BatteryTipLoader: BatteryInfoLoader post query: 2ms
03-09 11:19:13.359 27299 27326 D BatteryInfo: time for getBatteryInfo: 2ms
03-09 11:19:13.359 27299 27326 D BatteryTipLoader: BatteryInfoLoader.loadInBackground: 4ms
03-09 11:19:13.360 1360 2731 W WifiService: Permission violation - getConfiguredNetworks not allowed for uid=10195, packageName=me.twrp.twrpapp, reason=java.lang.SecurityException: UID 10195 has no location permission
03-09 11:19:11.766 0 0 E : [0: kworker/0:4:11964] hub 2-1:1.0: state 7 ports 4 chg 0000 evt 0010
03-09 11:19:11.767 0 0 E : [0: kworker/0:4:11964] usb 2-1-port4: status 0203, change 0001, 5.0 Gb/s
03-09 11:19:11.767 0 0 I : [0: kworker/0:4:11964] usb 2-1-port4: port 4, status 0203, change 0001, 5.0 Gb/s
03-09 11:19:11.774 0 0 E : [0: kworker/0:0: 9619] usb 1-1-port4: not reset yet, waiting 200ms
03-09 11:19:13.367 2394 2560 I LocationAccessPolicy: me.twrp.twrpapp is aware of fine but the app-ops permission is specifically denied.
03-09 11:19:13.373 8863 8881 D GeoIpHelper: getIspInfo: Unable to resolve host "geoip.api.c0nnectthed0ts.com": No address associated with hostname
03-09 11:19:11.893 0 0 E : [0: usb-storage:12060] usb storage -- short read transfer
03-09 11:19:11.924 0 0 E : [0: kworker/0:4:11964] usb 2-1-port4: debounce total 100ms stable 100ms status 0x203
03-09 11:19:11.984 0 0 E : [0: kworker/0:0: 9619] usb 1-1-port4: not reset yet, waiting 200ms
03-09 11:19:12.198 0 0 E : [0: kworker/0:0: 9619] usb 1-1-port4: not reset yet, waiting 200ms
03-09 11:19:12.202 0 0 E : [0: usb-storage:12060] usb storage -- short read transfer
03-09 11:19:13.801 582 597 D vold : /system/bin/sgdisk
03-09 11:19:13.801 582 597 D vold : --android-dump
03-09 11:19:13.801 582 597 D vold : /dev/block/vold/disk:8,0
03-09 11:19:13.843 582 597 E vold : Process exited with code: 8
03-09 11:19:13.843 582 597 W vold : sgdisk failed to scan /dev/block/vold/disk:8,0
03-09 11:19:12.405 0 0 E : [0: kworker/0:0: 9619] usb 1-1-port4: not reset yet, waiting 200ms
03-09 11:19:12.406 0 0 E : [0: kworker/0:0: 9619] hub 1-1:1.0: state 7 ports 4 chg 0000 evt 0010
03-09 11:19:12.407 0 0 E : [0: kworker/0:0: 9619] usb 1-1-port4: status 0100, change 0001, 12 Mb/s
03-09 11:19:12.408 0 0 E : [0: kworker/0:0: 9619] usb 1-1-port4: indicator auto status 0
03-09 11:19:12.408 0 0 I : [0: kworker/0:0: 9619] usb 1-1-port4: port 4, status 0100, change 0001, 12 Mb/s
03-09 11:19:12.410 0 0 E : [3: usb-storage:12060] usb storage -- short read transfer
03-09 11:19:14.010 582 597 D vold : /system/bin/sgdisk
03-09 11:19:14.010 582 597 D vold : --android-dump
03-09 11:19:14.010 582 597 D vold : /dev/block/vold/disk:8,16
03-09 11:19:14.044 582 597 E vold : Process exited with code: 8
03-09 11:19:14.044 582 597 W vold : sgdisk failed to scan /dev/block/vold/disk:8,16
03-09 11:19:12.495 0 0 I : [0: kworker/0:4:11964] usb 2-1.4: new SuperSpeed USB device number 4 using xhci-hcd
03-09 11:19:12.516 0 0 I : [0: kworker/0:4:11964] usb 2-1.4: udev->lpm_capable=0
03-09 11:19:12.517 0 0 I [0: kworker/0:4:11964] usb_detect_interface_lpm: Device will disable L1
03-09 11:19:12.517 0 0 E : [0: kworker/0:4:11964] usb 2-1.4: udev 4, busnum 2, minor = 131
03-09 11:19:12.518 0 0 I : [0: kworker/0:4:11964] usb 2-1.4: New USB device found, idVendor=0bda, idProduct=8153
03-09 11:19:12.518 0 0 I : [0: kworker/0:4:11964] usb 2-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=6
03-09 11:19:12.518 0 0 I : [0: kworker/0:4:11964] usb 2-1.4: Product: USB 10/100/1000 LAN
03-09 11:19:12.518 0 0 I : [0: kworker/0:4:11964] usb 2-1.4: Manufacturer: Realtek
03-09 11:19:12.518 0 0 I : [0: kworker/0:4:11964] usb 2-1.4: SerialNumber: 001000001
03-09 11:19:12.537 0 0 I [0: kworker/0:4:11964] usb_notify: call_device_notify device
03-09 11:19:12.537 0 0 I [0: kworker/0:4:11964] usb_notify: send_otg_notify event=device_connect(21) enable=1
03-09 11:19:12.537 0 0 I [0: kworker/0:4:11964] usb_notify: extra_notifier_callback event=device_connect(21)
03-09 11:19:12.537 0 0 I [0: kworker/0:4:11964] usb_notify: extra_notify_state+ event=device_connect(21), enable=on
03-09 11:19:12.537 0 0 I [0: kworker/0:4:11964] usb_notify: extra_notify_state- event=device_connect(21), cable=host_id
03-09 11:19:12.537 0 0 I [0: kworker/0:4:11964] usb_notify: check_gamepad_device : product=USB 10/100/1000 LAN
03-09 11:19:12.538 0 0 I [0: kworker/0:4:11964] usb_notify: check_lanhub_device : product=USB 10/100/1000 LAN
03-09 11:19:12.538 0 0 I [0: kworker/0:4:11964] usb_notify: check_device_speed : attached superspeed device
03-09 11:19:12.585 0 0 E : [0: kworker/0:0: 9619] usb 1-1-port4: debounce total 100ms stable 100ms status 0x100
03-09 11:19:12.650 0 0 I : [0: kworker/0:4:11964] usb 2-1.4: reset SuperSpeed USB device number 4 using xhci-hcd
03-09 11:19:12.665 0 0 I : [0: kworker/0:4:11964] usb 2-1.4: udev->lpm_capable=0
03-09 11:19:12.683 0 0 I : [0: kworker/0:4:11964] r8152 2-1.4:1.0 (unnamed net_device) (uninitialized): Unknown version 0x6010
03-09 11:19:12.683 0 0 E : [0: kworker/0:4:11964] r8152 2-1.4:1.0 (unnamed net_device) (uninitialized): Unknown Device
03-09 11:19:14.278 1360 1980 W UsbDescriptorParser: Unparsed Class-specific
03-09 11:19:14.278 1360 1980 W UsbDescriptorParser: Unparsed Class-specific
03-09 11:19:14.278 1360 1980 W UsbDescriptorParser: Unparsed Class-specific
03-09 11:19:14.281 1360 1980 D UsbHostManager: USB device attached: vidpid 0bda:8153 mfg/product/ver/serial Realtek/USB 10/100/1000 LAN/31.00/001000001 hasAudio/HID/Storage: false/false/false
03-09 11:19:14.284 1360 1980 D UsbDeviceDescriptor: 2 configs
03-09 11:19:14.288 1360 1980 D UsbHostManager: Added device UsbDevice[mName=/dev/bus/usb/002/004,mVendorId=3034,mProductId=33107,mClass=0,mSubclass=0,mProtocol=0,mManufacturerName=Realtek,mProductName=USB 10/100/1000 LAN,mVersion=31.00,mSerialNumberReader=com.android.server.usb.UsbSerialReader@8701e95, mHasAudioPlayback=false, mHasAudioCapture=false, mHasMidi=false, mHasVideoCapture=false, mHasVideoPlayback=false, mConfigurations=[
03-09 11:19:14.288 1360 1980 D UsbHostManager: UsbConfiguration[mId=1,mName=null,mAttributes=160,mMaxPower=36,mInterfaces=[
03-09 11:19:14.288 1360 1980 D UsbHostManager: UsbInterface[mId=0,mAlternateSetting=0,mName=null,mClass=255,mSubclass=255,mProtocol=0,mEndpoints=[
03-09 11:19:14.288 1360 1980 D UsbHostManager: UsbEndpoint[mAddress=129,mAttributes=2,mMaxPacketSize=1024,mInterval=0]
03-09 11:19:14.288 1360 1980 D UsbHostManager: UsbEndpoint[mAddress=2,mAttributes=2,mMaxPacketSize=1024,mInterval=0]
03-09 11:19:14.288 1360 1980 D UsbHostManager: UsbEndpoint[mAddress=131,mAttributes=3,mMaxPacketSize=2,mInterval=8]]]
03-09 11:19:14.288 1360 1980 D UsbHostManager: UsbConfiguration[mId=2,mName=null,mAttributes=160,mMaxPower=36,mInterfaces=[
03-09 11:19:14.288 1360 1980 D UsbHostManager: UsbInterface[mId=0,mAlternateSetting=0,mName=CDC Communications Control,mClass=2,mSubclass=6,mProtocol=0,mEndpoints=[
03-09 11:19:14.288 1360 1980 D UsbHostManager: UsbEndpoint[mAddress=131,mAttributes=3,mMaxPacketSize=16,mInterval=8]]
03-09 11:19:14.288 1360 1980 D UsbHostManager: UsbInterface[mId=1,mAlternateSetting=0,mName=null,mClass=10,mSubclass=0,mProtocol=0,mEndpoints=[]
03-09 11:19:14.288 1360 1980 D UsbHostManager: UsbInterface[mId=1,mAlternateSetting=1,mName=Ethernet Data,mClass=10,mSubclass=0,mProtocol=0,mEndpoints=[
03-09 11:19:14.288 1360 1980 D UsbHostManager: UsbEndpoint[mAddress=129,mAttributes=2,mMaxPacketSize=1024,mInterval=0]
03-09 11:19:14.288 1360 1980 D UsbHostManager: UsbEndpoint[mAddress=2,mAttributes=2,mMaxPacketSize=1024,mInterval=0]]]]
03-09 11:19:14.308 1360 1980 I ActivityTaskManager: START u0 {act=android.hardware.usb.action.USB_DEVICE_ATTACHED flg=0x11000000 cmp=com.android.mtp/.ReceiverActivity (has extras)} from uid 1000
03-09 11:19:14.312 1360 1980 E CellBroadcastUtils: getDefaultCellBroadcastReceiverPackageName: no package found
03-09 11:19:14.322 875 875 I android.hardware.power-service-qti: Power setMode: 5 to: 1
03-09 11:19:14.322 1360 1980 V SplashScreenExceptionList: SplashScreen checking exception for package com.android.mtp (target sdk:33) -> false
03-09 11:19:14.358 1360 2731 W ActivityTaskManager: Tried to set launchTime (0) < mLastActivityLaunchTime (33523336)
03-09 11:19:14.373 1360 1454 W libprocessgroup: Failed to open /dev/blkio//cgroup.procs: No such file or directory
03-09 11:19:14.373 8911 8911 D UsbIntentReceiver: New USB mass-storage device attached.
03-09 11:19:14.374 8911 8911 D UsbIntentReceiver: name: Realtek USB 10/100/1000 LAN
03-09 11:19:14.374 8911 8911 D UsbIntentReceiver: serialNumber: 001000001
03-09 11:19:14.374 8911 8911 D UsbIntentReceiver: productId: 33107
03-09 11:19:14.375 8911 8911 D UsbIntentReceiver: vendorId: 3034
03-09 11:19:14.375 8911 8911 D UsbIntentReceiver: isMassStorage: false
03-09 11:19:14.375 8911 8911 D UsbIntentReceiver: Checking if this is the current backup drive.
03-09 11:19:14.376 5668 5668 E MtpDevice: device not found
03-09 11:19:14.377 5668 5668 D UsbDeviceConnectionJNI: close
03-09 11:19:14.377 1360 2243 W WifiService: Permission violation - getConfiguredNetworks not allowed for uid=10195, packageName=me.twrp.twrpapp, reason=java.lang.SecurityException: UID 10195 has no location permission
/device gts4lvwifi /version lineage-20 (20-20230313-NIGHTLY-gts4lvwifi) /date 2023-03-13 /kernel 4.9.227-gb78aa1872d6f /baseband /mods Google Apps
I have read the directions.