Forwarded email 1/2 - usermode networking in android on fast models. This should cover 99% of what we want, unfortunately if you ever want to ping something, it will not work.
Hi all,
I don’t know if its generally known about, but you can use user mode networking with models from v 7 onwards. There are some limitations and (at least in my experience so far) connections occasionally drop, but personally I could not configure TAP and a bridge without my desktop locking up, so it was a vast improvement for me. When it connects, ADB works over this connection and you can use that to set up other forwarding tunnels as necessary.
More details at the arm infocenter here: http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.arn0001a/index.html
This is the setup I’ve been using:
additional model command line options:
-C motherboard.hostbridge.userNetworking=true -C motherboard.hostbridge.userNetPorts="5555=6565" -C motherboard.smsc_91c111.enabled=1
adb options on guest os:
(taken from https://wiki.linaro.org/Platform/Android/SetupAdbOverTcp - can be added to the init script too)
stop adbd
setprop service.adb.tcp.port 6565
start adbd
adb options on host OS:
export ADBHOST=127.0.0.1
sudo android-sdk-linux_x86/platform-tools/adb start-server
adb connect localhost
Best Regards,
Chris