We want connect a computer through USB with our BQ, run TCP/IP over the link, perhaps even through this to Internet, like this:
netbook ---(USB)---> BQ ---(data mobile) ---> Internet
For networking the bq supports tethering via an USB device (run the following in the terminal app):
$ android-gadget-service enable rndis
I do this after every boot from within the terminal app with a small script ~/rndis.sh:
#!/bin/sh
android-gadget-service enable rndis
The launch of the script is bound to a special key to make this easy.
This will switch the USB port from MTP to tethering and create a 'rndis0' network device whith the IP addr 10.42.0.1; The Ubuntu offers to the connected computer an IP via DHCP (somehow it takes sometime).
Oliver Grawert:
you cant, it is hardcoded on boot to always have working mtp (until
here is a UI option to turn it on or off, we want regular users to
lways be able to exchange files), but you can override it in a user
pstart job that runs at a later point ...
Create /home/phablet/.config/upstart/rndis.conf with the following
content:
--------------- snip ------------------
start on started indicator-network
task
script
android-gadget-service enable rndis
end script
--------------- snap ----------------
When the interface rndis0 is enabled, somehow HTTPS access to
the Ubuntu's app store is no longer possible; investigationg ...