[Samsung Galaxy S9 & S9+ Cross Device Development] astrapotro:
Hi, this build is AWASOME, thanks for doing it <3

BUT i'm suffering usb tethering not working in debian/ubuntu. In windows is working fine.

This is /var/log/syslog when usb tethering is activated on the phone :

May 5 14:32:51 ideapad kernel: [ 155.998386] usb 1-3: new high-speed USB device number 7 using xhci_hcd
May 5 14:32:51 ideapad kernel: [ 156.149202] usb 1-3: New USB device found, idVendor=04e8, idProduct=6863, bcdDevice= 4.00
May 5 14:32:51 ideapad kernel: [ 156.149208] usb 1-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
May 5 14:32:51 ideapad kernel: [ 156.149212] usb 1-3: Product: SAMSUNG_Android
May 5 14:32:51 ideapad kernel: [ 156.149215] usb 1-3: Manufacturer: SAMSUNG
May 5 14:32:51 ideapad kernel: [ 156.149218] usb 1-3: SerialNumber: 2c1400813e037ece
May 5 14:32:51 ideapad kernel: [ 156.153815] rndis_host 1-3:1.0 usb0: register 'rndis_host' at usb-0000:00:14.0-3, RNDIS device, 6e:21:48:4e:3b:29
May 5 14:32:51 ideapad NetworkManager[775]: <info> [1651753971.6849] manager: (usb0): new Ethernet device (/org/freedesktop/NetworkManager/Devices/9)
May 5 14:32:51 ideapad mtp-probe: checking bus 1, device 7: "/sys/devices/pci0000:00/0000:00:14.0/usb1/1-3"
May 5 14:32:51 ideapad mtp-probe: bus: 1, device: 7 was not an MTP device
May 5 14:32:52 ideapad gvfsd[5850]: Device 0 (VID=04e8 and PID=6860) is a Samsung Galaxy models (MTP).
May 5 14:32:52 ideapad gvfsd[5850]: Android device detected, assigning default bug flags
May 5 14:32:52 ideapad systemd-udevd[5884]: Using default interface naming scheme 'v250'.
May 5 14:32:52 ideapad NetworkManager[775]: <info> [1651753972.3873] device (usb0): state change: unmanaged -> unavailable (reason 'managed', sys-iface-state: 'external')
May 5 14:32:52 ideapad NetworkManager[775]: <info> [1651753972.3918] device (usb0): carrier: link connected
May 5 14:32:52 ideapad NetworkManager[775]: <info> [1651753972.3955] device (usb0): state change: unavailable -> disconnected (reason 'none', sys-iface-state: 'managed')
May 5 14:32:52 ideapad NetworkManager[775]: <info> [1651753972.4007] policy: auto-activating connection 'Conexión cableada 1' (787e76cf-5e07-316a-82ca-e64466949929)
May 5 14:32:52 ideapad NetworkManager[775]: <info> [1651753972.4029] device (usb0): Activation: starting connection 'Conexión cableada 1' (787e76cf-5e07-316a-82ca-e64466949929)
May 5 14:32:52 ideapad NetworkManager[775]: <info> [1651753972.4032] device (usb0): state change: disconnected -> prepare (reason 'none', sys-iface-state: 'managed')
May 5 14:32:52 ideapad NetworkManager[775]: <info> [1651753972.4041] manager: NetworkManager state is now CONNECTING
May 5 14:32:52 ideapad NetworkManager[775]: <info> [1651753972.4047] device (usb0): state change: prepare -> config (reason 'none', sys-iface-state: 'managed')
May 5 14:32:52 ideapad NetworkManager[775]: <info> [1651753972.4059] device (usb0): state change: config -> ip-config (reason 'none', sys-iface-state: 'managed')
May 5 14:32:52 ideapad NetworkManager[775]: <info> [1651753972.4087] dhcp4 (usb0): activation: beginning transaction (timeout in 45 seconds)
May 5 14:32:52 ideapad avahi-daemon[732]: Joining mDNS multicast group on interface usb0.IPv6 with address fe80::39a3:a7b4:7e0b:4b25.
May 5 14:32:52 ideapad mtp-probe: checking bus 1, device 7: "/sys/devices/pci0000:00/0000:00:14.0/usb1/1-3"
May 5 14:32:52 ideapad avahi-daemon[732]: New relevant interface usb0.IPv6 for mDNS.
May 5 14:32:52 ideapad avahi-daemon[732]: Registering new address record for fe80::39a3:a7b4:7e0b:4b25 on usb0.*.
May 5 14:32:52 ideapad mtp-probe: bus: 1, device: 7 was not an MTP device
May 5 14:32:52 ideapad systemd[1]: Run anacron jobs was skipped because of a failed condition check (ConditionACPower=true).
May 5 14:32:54 ideapad NetworkManager[775]: <info> [1651753974.2838] policy: ipv6-pd: no device to obtain a subnet to share on usb0 from
May 5 14:32:54 ideapad NetworkManager[775]: <info> [1651753974.2841] device (usb0): state change: ip-config -> ip-check (reason 'none', sys-iface-state: 'managed')
May 5 14:32:54 ideapad NetworkManager[775]: <info> [1651753974.2892] device (usb0): state change: ip-check -> secondaries (reason 'none', sys-iface-state: 'managed')
May 5 14:32:54 ideapad NetworkManager[775]: <info> [1651753974.2899] device (usb0): state change: secondaries -> activated (reason 'none', sys-iface-state: 'managed')
May 5 14:32:54 ideapad NetworkManager[775]: <info> [1651753974.2909] manager: NetworkManager state is now CONNECTED_LOCAL
May 5 14:32:54 ideapad NetworkManager[775]: <info> [1651753974.3119] device (usb0): Activation: successful, device activated.
May 5 14:32:54 ideapad ModemManager[788]: <info> [base-manager] couldn't check support for device '/sys/devices/pci0000:00/0000:00:14.0/usb1/1-3': not supported by any plugin

Someone knows how to fix this?

Thanks in advance