[Nexus One Android Development] cbhawsar:
No Edge/Data connection

Hi evervolv team,

Like some other users I am facing the issues with Edge connectivity as well. It gets connected when the phone is restarted but some time later, it disconnects and the only way to make it work again is to reboot the phone.

I took out a logcat output and found that as soon as the mobile network is turned on, There is an exception trying to add a route

i have been switching from gingerbread to evervolv jellybean and back to gingerbread, and this issue is there in Jellybean only.

I would be glad if you could help in resolving it.

Please let me know if some more information is required. Thanks

E/ConnectivityService( 1213): Exception trying to add a route: java.lang.IllegalStateException: command '12 interface route add rmnet0 default 42.108.222.137 32 0.0.0.0' failed with '400 12 Failed to add route to default table (Network is down)'

E/ConnectivityService( 1213): Exception trying to add a route: java.lang.IllegalStateException: command '13 interface route add rmnet0 default 0.0.0.0 0 42.108.222.137' failed with '400 13 Failed to add route to default table (Network is unreachable)'

D/ConnectivityService( 1213): ConnectivityService starting up
E/ConnectivityService( 1213): Ignoring protectedNetwork 10
E/ConnectivityService( 1213): Ignoring protectedNetwork 11
E/ConnectivityService( 1213): Ignoring protectedNetwork 12
D/ConnectivityService( 1213): handleInetConditionChange: no active default network - ignore
D/ConnectivityService( 1213): ConnectivityChange for mobile: CONNECTED/CONNECTED
E/ConnectivityService( 1213): Exception trying to add a route: java.lang.IllegalStateException: command '12 interface route add rmnet0 default 42.108.222.137 32 0.0.0.0' failed with '400 12 Failed to add route to default table (Network is down)'
E/ConnectivityService( 1213): Exception trying to add a route: java.lang.IllegalStateException: command '13 interface route add rmnet0 default 0.0.0.0 0 42.108.222.137' failed with '400 13 Failed to add route to default table (Network is unreachable)'
D/ConnectivityService( 1213): ConnectivityChange for mobile: DISCONNECTED/DISCONNECTED
D/ConnectivityService( 1213): Attempting to switch to wifi
D/ConnectivityService( 1213): Attempting to switch to BLUETOOTH_TETHER
D/ConnectivityService( 1213): resetConnections(rmnet0, 3)
D/ConnectivityService( 1213): handleInetConditionChange: no active default network - ignore
D/ConnectivityService( 1213): handleInetConditionChange: no active default network - ignore
D/ConnectivityService( 1213): ConnectivityChange for mobile: CONNECTED/CONNECTED
D/ConnectivityService( 1213): ConnectivityChange for mobile: DISCONNECTED/DISCONNECTED
D/ConnectivityService( 1213): Attempting to switch to wifi
D/ConnectivityService( 1213): Attempting to switch to BLUETOOTH_TETHER
D/ConnectivityService( 1213): resetConnections(rmnet0, 3)
D/ConnectivityService( 1213): handleInetConditionChange: no active default network - ignore
D/ConnectivityService( 1213): handleInetConditionChange: no active default network - ignore
D/ConnectivityService( 1213): ConnectivityChange for WIFI: DISCONNECTED/DISCONNECTED
D/ConnectivityService( 1213): Attempting to switch to mobile
D/ConnectivityService( 1213): Attempting to switch to BLUETOOTH_TETHER
D/ConnectivityService( 1213): handleInetConditionChange: no active default network - ignore
D/ConnectivityService( 1213): ConnectivityChange for WIFI: CONNECTED/CONNECTED
D/ConnectivityService( 1213): ConnectivityChange for mobile: CONNECTED/CONNECTED
D/ConnectivityService( 1213): ConnectivityChange for mobile: DISCONNECTED/DISCONNECTED
D/ConnectivityService( 1213): Attempting to switch to WIFI
D/ConnectivityService( 1213): Attempting to switch to BLUETOOTH_TETHER
D/ConnectivityService( 1213): resetConnections(rmnet0, 3)
D/ConnectivityService( 1213): handleInetConditionChange: net=-1 != default=1 - ignore
D/ConnectivityService( 1213): handleInetConditionChange: net=-1 != default=1 - ignore
D/ConnectivityService( 1213): handleInetConditionChange: net=-1 != default=1 - ignore
D/ConnectivityService( 1213): handleInetConditionHoldEnd: net=1, condition=100, published condition=0
D/ConnectivityService( 1213): ConnectivityChange for WIFI: DISCONNECTED/DISCONNECTED
D/ConnectivityService( 1213): Attempting to switch to mobile
D/ConnectivityService( 1213): Attempting to switch to BLUETOOTH_TETHER
D/ConnectivityService( 1213): resetConnections(wlan0, 3)
D/ConnectivityService( 1213): ConnectivityChange for mobile: CONNECTED/CONNECTED
D/ConnectivityService( 1213): NetTransition Wakelock for WifiStateMachine released by timeout
D/ConnectivityService( 1213): handleInetConditionHoldEnd: net=0, condition=0, published condition=0
D/ConnectivityService( 1213): handleInetConditionHoldEnd: net=0, condition=100, published condition=0
D/ConnectivityService( 1213): ConnectivityChange for mobile: DISCONNECTED/DISCONNECTED
D/ConnectivityService( 1213): Attempting to switch to WIFI
D/ConnectivityService( 1213): Attempting to switch to BLUETOOTH_TETHER
D/ConnectivityService( 1213): resetConnections(rmnet0, 3)
D/ConnectivityService( 1213): handleInetConditionChange: no active default network - ignore
D/ConnectivityService( 1213): ConnectivityChange for mobile: CONNECTED/CONNECTED
D/ConnectivityService( 1213): handleInetConditionHoldEnd: net=0, condition=100, published condition=0
D/ConnectivityService( 1213): ConnectivityChange for mobile: DISCONNECTED/DISCONNECTED
D/ConnectivityService( 1213): Attempting to switch to WIFI
D/ConnectivityService( 1213): Attempting to switch to BLUETOOTH_TETHER
D/ConnectivityService( 1213): resetConnections(rmnet0, 3)
D/ConnectivityService( 1213): handleInetConditionChange: no active default network - ignore
D/ConnectivityService( 1213): ConnectivityChange for mobile: CONNECTED/CONNECTED
D/ConnectivityService( 1213): ConnectivityChange for mobile: DISCONNECTED/DISCONNECTED
D/ConnectivityService( 1213): Attempting to switch to WIFI
D/ConnectivityService( 1213): Attempting to switch to BLUETOOTH_TETHER
D/ConnectivityService( 1213): resetConnections(rmnet0, 3)
D/ConnectivityService( 1213): ConnectivityChange for mobile: CONNECTED/CONNECTED
D/ConnectivityService( 1213): ConnectivityChange for mobile: DISCONNECTED/DISCONNECTED
D/ConnectivityService( 1213): Attempting to switch to WIFI
D/ConnectivityService( 1213): Attempting to switch to BLUETOOTH_TETHER
D/ConnectivityService( 1213): resetConnections(rmnet0, 3)
D/ConnectivityService( 1213): ConnectivityChange for mobile: CONNECTED/CONNECTED
D/ConnectivityService( 1213): ConnectivityChange for mobile: DISCONNECTED/DISCONNECTED
D/ConnectivityService( 1213): Attempting to switch to WIFI
D/ConnectivityService( 1213): Attempting to switch to BLUETOOTH_TETHER
D/ConnectivityService( 1213): resetConnections(rmnet0, 3)
D/ConnectivityService( 1213): ConnectivityChange for mobile: CONNECTED/CONNECTED
D/ConnectivityService( 1213): handleInetConditionHoldEnd: net=0, condition=100, published condition=0
D/ConnectivityService( 1213): ConnectivityChange for WIFI: CONNECTED/CONNECTED
D/ConnectivityService( 1213): Policy requires mobile teardown
D/ConnectivityService( 1213): ConnectivityChange for mobile: DISCONNECTED/DISCONNECTED
D/ConnectivityService( 1213): Attempting to switch to WIFI
D/ConnectivityService( 1213): Attempting to switch to BLUETOOTH_TETHER
D/ConnectivityService( 1213): resetConnections(rmnet0, 3)
D/ConnectivityService( 1213): handleInetConditionChange: net=0 != default=1 - ignore
D/ConnectivityService( 1213): handleInetConditionHoldEnd: net=1, condition=100, published condition=0
D/ConnectivityService( 1213): ConnectivityChange for WIFI: DISCONNECTED/DISCONNECTED
D/ConnectivityService( 1213): Attempting to switch to mobile
D/ConnectivityService( 1213): Attempting to switch to BLUETOOTH_TETHER
D/ConnectivityService( 1213): resetConnections(wlan0, 3)
D/ConnectivityService( 1213): ConnectivityChange for mobile: CONNECTED/CONNECTED
D/ConnectivityService( 1213): NetTransition Wakelock for WifiStateMachine released by timeout
D/ConnectivityService( 1213): handleInetConditionHoldEnd: net=0, condition=0, published condition=0
D/ConnectivityService( 1213): handleInetConditionHoldEnd: net=0, condition=100, published condition=0
D/ConnectivityService( 1213): ConnectivityChange for WIFI: CONNECTED/CONNECTED
D/ConnectivityService( 1213): Policy requires mobile teardown
D/ConnectivityService( 1213): ConnectivityChange for mobile: DISCONNECTED/DISCONNECTED
D/ConnectivityService( 1213): Attempting to switch to WIFI
D/ConnectivityService( 1213): Attempting to switch to BLUETOOTH_TETHER
D/ConnectivityService( 1213): resetConnections(rmnet0, 3)
D/ConnectivityService( 1213): handleInetConditionChange: net=0 != default=1 - ignore
D/ConnectivityService( 1213): handleInetConditionHoldEnd: net=1, condition=100, published condition=0
D/ConnectivityService( 1213): ConnectivityChange for WIFI: DISCONNECTED/DISCONNECTED
D/ConnectivityService( 1213): Attempting to switch to mobile
D/ConnectivityService( 1213): Attempting to switch to BLUETOOTH_TETHER
D/ConnectivityService( 1213): resetConnections(wlan0, 3)
D/ConnectivityService( 1213): ConnectivityChange for mobile: CONNECTED/CONNECTED
D/ConnectivityService( 1213): NetTransition Wakelock for WifiStateMachine released by timeout
D/ConnectivityService( 1213): handleInetConditionHoldEnd: net=0, condition=0, published condition=0
D/ConnectivityService( 1213): handleInetConditionHoldEnd: net=0, condition=100, published condition=0
D/ConnectivityService( 1213): ConnectivityChange for mobile: DISCONNECTED/DISCONNECTED
D/ConnectivityService( 1213): Attempting to switch to WIFI
D/ConnectivityService( 1213): Attempting to switch to BLUETOOTH_TETHER
D/ConnectivityService( 1213): resetConnections(rmnet0, 3)
D/ConnectivityService( 1213): handleInetConditionChange: no active default network - ignore
D/ConnectivityService( 1213): ConnectivityChange for mobile: CONNECTED/CONNECTED
D/ConnectivityService( 1213): ConnectivityChange for mobile: DISCONNECTED/DISCONNECTED
D/ConnectivityService( 1213): Attempting to switch to WIFI
D/ConnectivityService( 1213): Attempting to switch to BLUETOOTH_TETHER
D/ConnectivityService( 1213): resetConnections(rmnet0, 3)
D/ConnectivityService( 1213): ConnectivityChange for mobile: CONNECTED/CONNECTED
D/ConnectivityService( 1213): handleInetConditionHoldEnd: net=0, condition=100, published condition=0
D/ConnectivityService( 1213): ConnectivityChange for mobile: DISCONNECTED/DISCONNECTED
D/ConnectivityService( 1213): Attempting to switch to WIFI
D/ConnectivityService( 1213): Attempting to switch to BLUETOOTH_TETHER
D/ConnectivityService( 1213): resetConnections(rmnet0, 3)
D/ConnectivityService( 1213): handleInetConditionChange: no active default network - ignore
D/ConnectivityService( 1213): ConnectivityChange for mobile: CONNECTED/CONNECTED
D/ConnectivityService( 1213): handleInetConditionHoldEnd: net=0, condition=100, published condition=0
D/ConnectivityService( 1213): ConnectivityChange for mobile: DISCONNECTED/DISCONNECTED
D/ConnectivityService( 1213): Attempting to switch to WIFI
D/ConnectivityService( 1213): Attempting to switch to BLUETOOTH_TETHER
D/ConnectivityService( 1213): resetConnections(rmnet0, 3)
D/ConnectivityService( 1213): handleInetConditionChange: no active default network - ignore
D/ConnectivityService( 1213): ConnectivityChange for mobile: CONNECTED/CONNECTED
D/ConnectivityService( 1213): ConnectivityChange for mobile: DISCONNECTED/DISCONNECTED
D/ConnectivityService( 1213): Attempting to switch to WIFI
D/ConnectivityService( 1213): Attempting to switch to BLUETOOTH_TETHER
D/ConnectivityService( 1213): resetConnections(rmnet0, 3)
D/ConnectivityService( 1213): ConnectivityChange for mobile: CONNECTED/CONNECTED
D/ConnectivityService( 1213): handleInetConditionHoldEnd: net=0, condition=100, published condition=0
D/ConnectivityService( 1213): ConnectivityChange for mobile: DISCONNECTED/DISCONNECTED
D/ConnectivityService( 1213): Attempting to switch to WIFI
D/ConnectivityService( 1213): Attempting to switch to BLUETOOTH_TETHER
D/ConnectivityService( 1213): resetConnections(rmnet0, 3)
D/ConnectivityService( 1213): handleInetConditionChange: no active default network - ignore
D/ConnectivityService( 1213): ConnectivityChange for mobile: CONNECTED/CONNECTED
D/ConnectivityService( 1213): handleInetConditionHoldEnd: net=0, condition=100, published condition=0
D/ConnectivityService( 1213): ConnectivityChange for mobile: DISCONNECTED/DISCONNECTED
D/ConnectivityService( 1213): Attempting to switch to WIFI
D/ConnectivityService( 1213): Attempting to switch to BLUETOOTH_TETHER
D/ConnectivityService( 1213): resetConnections(rmnet0, 3)
D/ConnectivityService( 1213): handleInetConditionChange: no active default network - ignore
D/ConnectivityService( 1213): ConnectivityChange for mobile: CONNECTED/CONNECTED
D/ConnectivityService( 1213): handleInetConditionHoldEnd: net=0, condition=100, published condition=0
D/ConnectivityService( 1213): ConnectivityChange for mobile: DISCONNECTED/DISCONNECTED
D/ConnectivityService( 1213): Attempting to switch to WIFI
D/ConnectivityService( 1213): Attempting to switch to BLUETOOTH_TETHER
D/ConnectivityService( 1213): resetConnections(rmnet0, 3)
D/ConnectivityService( 1213): handleInetConditionChange: no active default network - ignore
D/ConnectivityService( 1213): ConnectivityChange for mobile: CONNECTED/CONNECTED
D/ConnectivityService( 1213): handleInetConditionHoldEnd: net=0, condition=100, published condition=0
D/ConnectivityService( 1213): ConnectivityChange for mobile: DISCONNECTED/DISCONNECTED
D/ConnectivityService( 1213): Attempting to switch to WIFI
D/ConnectivityService( 1213): Attempting to switch to BLUETOOTH_TETHER
D/ConnectivityService( 1213): resetConnections(rmnet0, 3)
D/ConnectivityService( 1213): handleInetConditionChange: no active default network - ignore
D/ConnectivityService( 1213): ConnectivityChange for mobile: CONNECTED/CONNECTED
D/ConnectivityService( 1213): ConnectivityChange for mobile: DISCONNECTED/DISCONNECTED
D/ConnectivityService( 1213): Attempting to switch to WIFI
D/ConnectivityService( 1213): Attempting to switch to BLUETOOTH_TETHER
D/ConnectivityService( 1213): resetConnections(rmnet0, 3)
D/ConnectivityService( 1213): ConnectivityChange for mobile: CONNECTED/CONNECTED
D/ConnectivityService( 1213): ConnectivityChange for mobile: DISCONNECTED/DISCONNECTED
D/ConnectivityService( 1213): Attempting to switch to WIFI
D/ConnectivityService( 1213): Attempting to switch to BLUETOOTH_TETHER
D/ConnectivityService( 1213): resetConnections(rmnet0, 3)
D/ConnectivityService( 1213): ConnectivityChange for mobile: CONNECTED/CONNECTED
D/ConnectivityService( 1213): handleInetConditionHoldEnd: net=0, condition=100, published condition=0
D/ConnectivityService( 1213): ConnectivityChange for mobile: DISCONNECTED/DISCONNECTED
D/ConnectivityService( 1213): Attempting to switch to WIFI
D/ConnectivityService( 1213): Attempting to switch to BLUETOOTH_TETHER
D/ConnectivityService( 1213): resetConnections(rmnet0, 3)
D/ConnectivityService( 1213): handleInetConditionChange: no active default network - ignore
D/ConnectivityService( 1213): ConnectivityChange for mobile: CONNECTED/CONNECTED
D/ConnectivityService( 1213): ConnectivityChange for mobile: DISCONNECTED/DISCONNECTED
D/ConnectivityService( 1213): Attempting to switch to WIFI
D/ConnectivityService( 1213): Attempting to switch to BLUETOOTH_TETHER
D/ConnectivityService( 1213): resetConnections(rmnet0, 3)
D/ConnectivityService( 1213): ConnectivityChange for mobile: CONNECTED/CONNECTED
D/ConnectivityService( 1213): handleInetConditionHoldEnd: net=0, condition=100, published condition=0
D/ConnectivityService( 1213): ConnectivityChange for mobile: DISCONNECTED/DISCONNECTED
D/ConnectivityService( 1213): Attempting to switch to WIFI
D/ConnectivityService( 1213): Attempting to switch to BLUETOOTH_TETHER
D/ConnectivityService( 1213): resetConnections(rmnet0, 3)
D/ConnectivityService( 1213): handleInetConditionChange: no active default network - ignore
D/ConnectivityService( 1213): ConnectivityChange for mobile: CONNECTED/CONNECTED
D/ConnectivityService( 1213): handleInetConditionHoldEnd: net=0, condition=100, published condition=0
D/ConnectivityService( 1213): setMobileDataEnabled(false)
D/ConnectivityService( 1213): ConnectivityChange for mobile: DISCONNECTED/DISCONNECTED
D/ConnectivityService( 1213): Attempting to switch to WIFI
D/ConnectivityService( 1213): Attempting to switch to BLUETOOTH_TETHER
D/ConnectivityService( 1213): resetConnections(rmnet0, 3)
D/ConnectivityService( 1213): handleInetConditionChange: no active default network - ignore
D/ConnectivityService( 1213): setMobileDataEnabled(true)
D/ConnectivityService( 1213): ConnectivityChange for mobile: CONNECTED/CONNECTED
D/ConnectivityService( 1213): handleInetConditionHoldEnd: net=0, condition=0, published condition=0
D/ConnectivityService( 1213): handleInetConditionHoldEnd: net=0, condition=100, published condition=0
D/ConnectivityService( 1213): setMobileDataEnabled(false)
D/ConnectivityService( 1213): ConnectivityChange for mobile: DISCONNECTED/DISCONNECTED
D/ConnectivityService( 1213): Attempting to switch to WIFI
D/ConnectivityService( 1213): Attempting to switch to BLUETOOTH_TETHER
D/ConnectivityService( 1213): resetConnections(rmnet0, 3)
D/ConnectivityService( 1213): handleInetConditionChange: no active default network - ignore
D/ConnectivityService( 1213): setMobileDataEnabled(true)
D/ConnectivityService( 1213): ConnectivityChange for mobile: CONNECTED/CONNECTED
D/ConnectivityService( 1213): handleInetConditionHoldEnd: net=0, condition=0, published condition=0