[connectivity-service] Support network over USB in developer mode

Bug #1381448 reported by Benjamin Zeller
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
indicator-network (Ubuntu)
Triaged
Wishlist
Unassigned

Bug Description

Currently the SDK has to use "adb forward" in order to connect and talk to the devices.
However it would be much more reliable if we could create a network over USB and talk
directly to it.
Probably even run a DHCP server on usb0 so we do not need to setup the interface ourselves
and provide a DBUS callback so the SDK can trigger the usbnet to be created over ADB.

Quotes from a conversation with Wellark on IRC:

<zbenjamin> Wellark: would be interesting for the SDK
<zbenjamin> Wellark: instead of adb forwarding the ports, which is totally unreliable, we could create a network with the phone and talk to it directly
<Wellark> zbenjamin: well, you file a bug
<Wellark> zbenjamin: then you tell my manager to get me to do the UI
<zbenjamin> Wellark: the idea would be that we setup the initial stuff with adb. And then switch over to usb network which is decoupled from the adb completely
<Wellark> zbenjamin: yep.
<Wellark> adb would only make one call over dbus
<zbenjamin> Wellark: having a dhcp running on the usb interface would make things super easy
<Wellark> com.ubuntu.connectivity.usbnet.Enable()
<Wellark> or something
<Wellark> that would kick up the usbnet
<Wellark> zbenjamin: yep. and zeroconf dns
<zbenjamin> yeah. And we could make ssh only listen on this interface instead of all, and enable wlan only if the user checks a box in the UI
<Wellark> so you don't have to deal with IP's
<zbenjamin> exactly

Changed in indicator-network:
status: New → Triaged
importance: Undecided → Wishlist
assignee: nobody → Antti Kaijanmäki (kaijanmaki)
Ted Gould (ted)
Changed in indicator-network (Ubuntu):
assignee: nobody → Antti Kaijanmäki (kaijanmaki)
importance: Undecided → Wishlist
status: New → Triaged
Changed in connectivity-api:
status: New → Triaged
importance: Undecided → Wishlist
Changed in indicator-network:
assignee: Antti Kaijanmäki (kaijanmaki) → nobody
Changed in indicator-network (Ubuntu):
assignee: Antti Kaijanmäki (kaijanmaki) → nobody
Pete Woods (pete-woods)
no longer affects: indicator-network
summary: - Support network over USB in developer mode
+ [connectivity-service] Support network over USB in developer mode
no longer affects: connectivity-api
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.