View Single Post
rooster13's Avatar
Posts: 319 | Thanked: 221 times | Joined on Jan 2010 @ Finland
#811
Originally Posted by kkarioja View Post
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.
I was trying to set a custom command and run:
Code:
/sbin/initctl restart xsession/icd2
But since you need to be root to run that, Profilematic can't do it.

Any ideas?
__________________
Sail Raid, an old skool shoot'em up for Jolla
KillDroid, Android service killer for Jolla
goViihde, an Elisa Viihde client for Jolla
goViihde, an Elisa Viihde client for N9
Shortcut Stash Home Screen Widget