I'm developing a remote control app that will use wifi to communicate with my car stereo. The car stereo has ethernet, and I have the ethernet wired to a wireless AP in my trunk. This works great, but since the phone has a wifi connection, it wants to use it to reach the internet, which it can't do when my car is away from home.
What I'd like to do is develop a script that I can run to route LAN traffic through wifi, but WAN (internet) traffic through the cell data connection. I dug a bit into this issue, and found this, but it doesn't seem to work, even after adjusting the routing table with a default route through the rmnet0 interface and bringing up the rmnet0 interface with ifconfig.
It kinda seems like something in the OS is disabling the 3G hardware when wifi is active. Is that a known behavior, and if so, does anyone have any pointers on how I can circumvent it? I found this post where someone got working on a different phone. Can this be done on the Nexus S?