RNDIS is not working in xenial
- Device: Nexus 5 and Nexus 7 2013 (flo)
- Channel: RC and DEV
- Build: latest
Steps to reproduce
- Enable RNDIS in UT Tweak Tool
- Connect your phone to a PC.
- Check via ifconfig if an IP address has been assigned or check in the PC itself.
Expected behavior
An IP address should be assigned and the PC should detect the new connection.
Actual behavior
Nothing happens and no IP address is assigned.
Logfiles and additional information
I've only tested this on Windows 7 and tried WinSCP and Putty to try to connect to my devices via SSH.
The PC seems to detect the new connection but it doesn't get an IP address. On the device, there's no trace of the connection in ifconfig
Same behaviour on MEIZU PRO 5 M576U
To everyone watching this bug: try this solution and let us know if it works for you https://forums.ubports.com/topic/2440/solved-impossible-usb-tethering-standard-not-reverse-connection/10
i can confirm that solution works
the issue is now resolved in UT Tweak Tool can/should this issue be closed?
Maybe. I confirm UT Tweak Tool works, despite in terminal both
android-gadget-service enable rndis
sudo tethering enable
are still required.
UT Tweak Tool implements those two commands, was this issue about both being necessary? i thought it was about rdnis not working via UTTT........
I think this issue was about tethering not working (@kugiigi please confirm or correct me), but when it was created it wasn't clear which was the reason, because in a previous version of Ubuntu Touch
android-gadget-service enable rndis
was enough to enable it. Before to understand
sudo tethering enable
was required too, UTTT was broken too.
and tethering is working now :p now i wonder if reverse tethering works without the second command
Well the issue is mainly for the command that wasn't working anymore in xenial. We learned that an additional command is necessary for RNDIS. I'm not sure if it's still necessary to find out why the new command is needed. How was it discovered anyway?
I discovered it more or less by chance reading these steps as tracked here. When I'll have some time I'll try with reverse tethering.
it is interesting that the sed is no longer neccesary even tho the sudo tethering enable is. i have attempted to follow the steps here but i'm not sure if the host computer should have an existing connection or not on step 2, as i get different ips depending on whether the ubuntu host has an active internet connection or not. I believe without the active connection is the actual rdnis ip.....but i haven't managed to test further yet that said i have made a feature request in UTTT to "prepare the phone for reverse tethering" here as well
Hi, I installed Ubuntu touch on my Fairphone 3. At first, I installed the stable 20.04 version, but I found out that UTTT was not available for that version, neither the android-gadget-service command, so I installed 16.04 instead. Now the tethering is still not working:
phablet@ubuntu-phablet:~$ sudo android-gadget-service enable rndis
rndis enabled
phablet@ubuntu-phablet:~$ sudo tethering enable
Device "rndis0" does not exist.
Error: Connection 'tethering' does not exist.
phablet@ubuntu-phablet:~$
@Zahrun at this point it is better to use focal, we no longer need android-gadget-service on focal, it has been replaced by a dbus call instead: when you have connected your cable:
gdbus call --system --dest com.meego.usb_moded --object-path /com/meego/usb_moded --method com.meego.usb_moded.set_mode rndis_adb
or if you want to configure it for the next plugin:
gdbus call --system --dest com.meego.usb_moded --object-path /com/meego/usb_moded --method com.meego.usb_moded.set_config rndis_adb
@Fuseteam it works, thank you! Is this documented anywhere?
@Zahrun at this point it is better to use focal, we no longer need android-gadget-service on focal, it has been replaced by a dbus call instead: when you have connected your cable:
gdbus call --system --dest com.meego.usb_moded --object-path /com/meego/usb_moded --method com.meego.usb_moded.set_mode rndis_adbor if you want to configure it for the next plugin:
gdbus call --system --dest com.meego.usb_moded --object-path /com/meego/usb_moded --method com.meego.usb_moded.set_config rndis_adb
oh, so it could be integrated to the settings
@Zahrun it is not, but i think getting this integrated into settings as @lduboeuf mentions is probably a better idea :D