← Back to team overview

ubuntu-phone team mailing list archive

Re: USB Tethering now available with image 181

 

Hi Oliver,

this sounds really good. Do you know if there is a plan to land a system
setting for this? sounds like a good feature to have


On Sun, Aug 10, 2014 at 1:11 PM, Oliver Grawert <ogra@xxxxxxxxxx> wrote:

> hi,
>
> yesterday I finally got around to land a proper network-manager config
> (and a few watcher  upstart jobs to enable it at the right time) so that
> USB (wired) tethering now works and you can use your Ubuntu Phone as
> network gateway for your PC/laptop.
>
> to enable USB tethering wire up your phone to the PC/laptop and issue
> the following in a terminal:
>
> adb shell android-gadget-service enable rndis
>
> your network indicator should start spinning on the desktop and after a
> moment of negotiation it should pick the USB interface as default
> connection.
>
> note that the android gadget driver setup we use currently only allows
> either mtp (media storage) or rndis (networking) to be selected on most
> devices, so the above will disable mtp automatically ...
>
> switching off either happens by:
>
> adb shell android-gadget-service disable rndis
>
> or if you want to go back to mtp directly:
>
> adb shell android-gadget-service enable mtp
>
> (the latter command will disable USB networking and enable mtp again ...
> the former just disables networking without enabling mtp)
>
> indeed all of the above works also without "adb shell" in the
> terminal-app.
>
> ciao
>         oli
>
> --
> Mailing list: https://launchpad.net/~ubuntu-phone
> Post to     : ubuntu-phone@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~ubuntu-phone
> More help   : https://help.launchpad.net/ListHelp
>
>

Follow ups

References