I have tested this kind of trick: Switch background connections on: Code: /sbin/initctl restart xsession/icd2 sleep 5 gconftool-2 -t bool -s /system/osso/connectivity/network_type/restricted_mode false And switch off: Code: gconftool-2 -t bool -s /system/osso/connectivity/network_type/restricted_mode true sleep 5 /sbin/initctl restart xsession/icd2 After a little testing, it seems to work otherwise OK, but problem is that doing this way will terminate ongoing data transfer. I guess it might be possible to make phone wait until data transfer is complete, but I have no idea how. It might also be impossible to do this without opensh... I added those sleeps, because it seemed to cause connection to freeze sometimes, if two other command were executed without waiting for a while. Not really sure if they are needed. Please note, that reliability of this trick is far from certain! I've only tested it on my N9 for about a week.
/sbin/initctl restart xsession/icd2 sleep 5 gconftool-2 -t bool -s /system/osso/connectivity/network_type/restricted_mode false
gconftool-2 -t bool -s /system/osso/connectivity/network_type/restricted_mode true sleep 5 /sbin/initctl restart xsession/icd2
/sbin/initctl restart xsession/icd2