Quick Internet on/off

Rating: 
3.666665
Your rating: None Average: 3.7 (3 votes)

Simple taggle for Internet connection On/Off (both wifi and 3G in one shot), that you can add to shortcuts (pulley menu) for quick use.
Just click on the Icon for ON or OFF and you will see notification for this.

Possibility to change behavior:
1. Open both connection if one of them closed (default value).
2. Close both connection if one of them closed.
Run as ROOT (or change with any root file manager):
1. Default:
echo 1 > /usr/share/openrepos-internetonoff/switch
2. Second:
echo 2 > /usr/share/openrepos-internetonoff/switch

v0.2-6
- For v2.1.1.26 and above.
- Script and notifications updated.

v0.2-5
- Notification text changed a little bit, only one notification every time.

v0.2-4
* Fix of notification icon. Adaptation for 1.1.9.28.

v0.2-3
* Fix of notification icon. Adaptation for 1.1.6.27.

v0.2-2
* Adaptation for 1.1.1.27

v0.2-1
* Small fix
* Possibility to change behavior:
1. Open both connection if one of them closed (default value).
2. Close both connection if one of them closed.
Run as ROOT (or change with any root file manager):
1. Default:
echo 1 > /usr/share/openrepos-internetonoff/switch
2. Second:
echo 2 > /usr/share/openrepos-internetonoff/switch

Beware, use it on your own risk !!!

Donation are welcome :)

Screenshots: 
Application versions: 
AttachmentSizeDate
internetonoff-0.2-6.armv7hl.rpm18.38 KB13/09/2017 - 02:41
Changelog: 

- For v2.1.1.26 and above.
- Script and notifications updated.

Comments

wickedsp1d3r's picture

Can I disable the notifications somehow?

Schturman's picture

Yes you can..

Just add '#' (without quotes) before each word "python" in the script (as root):
/usr/share/openrepos-internetonoff/internetonoff.sh
For example instead:
python /usr/share/openrepos-internetonoff/notifer1.py
do this:
#python /usr/share/openrepos-internetonoff/notifer1.py

wickedsp1d3r's picture

Thanks.

wickedsp1d3r's picture

Does not always work and I have to manually switch the connection(s) off.

Schturman's picture

For me it work without any problem. Which connection not closed, wifi or 3g ?
Pre on the icon and go to setting, see if both connections icons is not active.
What version of your phone?

wickedsp1d3r's picture

I am running 1.1.0.39.

When I have 3G connection open and WiFi off and I use the app (from the quick launch), it switches both connections on, although I would like to close them both (in this case, 3G connection only).

Schturman's picture

Aaaa, it's ok.. it should work like this. Also vice versa, if wifi on and 3g off, by pressing on the icon it will open 3g. Because app can't to know what user want to do in the case that one of connections is closed, by default it will open the closed connection.

wickedsp1d3r's picture

Hmm.. for me it does not open 3G connection if I have only WiFi on and I press the icon, so both connections are now off.

Schturman's picture

Update ready and it have behavior that you want, see changelog ;)

Schturman's picture

Hmmm... You are right :D But it should work like I explained... I will update app with possibility to switch close option.

wickedsp1d3r's picture

Big thanks! :)