Keep 3G connection online in Wifi Connected mode (custom Android system)
I am developing a platform using ODROID U3 with Android for a custom application. I have combined the MPTCP kernel source with the Android kernel source to get an MPTCP enabled kernel for Android.
The only thing is that Android by default disconnects the 3G connection when there is a wireless connection available and I want it to be available for MPTCP to work by sharing it.
I can manually manage everything, but I haven't found what disconnects the 3G connection and how to get around it. I also have a BSP if needed to get around it.
Does anyone know where I can get around or where it disconnects 3G?
PS: I have already seen Android High Priority Connection and this does not apply to me. I need both connections for which I transparently transform the MPTCP routes to access the network. Also I know this is not something I can do in undisturbed devices. I have root and I can also recompile the whole android system from BSP. I searched all over the internet and I didn't find anything about it (only high priority connection)
What I've already tried:
1 - High priority connection . Works fine, but the app must be open. And I want the MPTCP system not to support applications.
2 - Turn on Wi-Fi, connect. And they manually connect the mobile connection interface through the terminal: does not work. For some reason, the mobile connection is not getting an IP address from DHCP.
3 - Searching on Android BSP anywhere and anywhere it might disconnect / on mobile connection: did not find anything specific.
Thank!
source to share
I found the solution here: https://sites.google.com/site/lotuseaterarpit/news/3g4gwififorandroidconcurrently
So you need to disable wifi service from android (with svc wifi disable ) and they manually configure the wireless network like this:
Let's assume we have wireless internet on wlan0 , we'll do:
Disable Wifi interface service
svc wifi disable
Connect Wifi interface
busybox ifconfig wlan0 up
Configure wlan interface
iwconfig wlan0 mode managed essid YOUR_SSID
iwconfig wlan0 key s:WIRELESS_KEY
iwconfig wlan0 commit
DHCP interface for obtaining IP
dhcpcd eth0
This way you can connect your 3G connection online along with the Wireless Network. You need to set up the routes yourself, but this will allow you to do this.
Hope it helps!
source to share