[APP][2.3+][ROOT] Toggle Data 5.0 (xda-exclusive free version)

How do you use Toggle Data 5.0? (Multiple answers possible)

  • Widget

    Votes: 103 28.7%
  • Shortcut

    Votes: 39 10.9%
  • Locale/Tasker plugin

    Votes: 260 72.4%

  • Total voters
    359
Search This thread

cygery

Inactive Recognized Developer
May 6, 2013
1,259
1,484
cygery.com
Hi,

I've developed a widget to toggle mobile data on Android 5.0/5.1 (Lollipop), Android 6.0 (Marshmallow), and Android 7.0/7.1 (Nougat). It requires root.
This is an xda-exclusive free version! If you want to support me, please consider getting the paid version on Google Play or check out my other apps.
Please note: Redistribution of this app is not allowed!

New: Support for dual SIM/multi SIM devices on Android 5.1 and later.

Paid version on Google Play (same functionality): https://play.google.com/store/apps/details?id=com.cygery.toggledata

Device compatibility: second post

Features:
  • Widget
  • Locale/Tasker plugin
  • Shortcut
  • Custom icon images
  • Dual SIM/multi SIM support on Android 5.1 and later

Device Support
Device support depends on a variety of factors, including your specific device model, Android version, installed (custom) ROM, used root provider (su binary), and SELinux configuration. This app includes options to deal with different configurations of some of those factors. Please let me know if this app does not work on your device.

Notes
The widget is passive. Thus, it has to request root every time it is refreshed. Although the battery impact is negligible, this usually results in frequent (Toast) messages indicating that the app was granted root rights. Please refer to your superuser management app if you'd like to disable those messages specifically for this app.
This app includes a (static) shortcut and a (dynamic) widget. Usually, both shortcut and widget are shown in the same list which is used to add them to your homescreen although this list is commonly just labeled "Widgets". For reference, the screenshots in this post show the widget. The shortcut looks like the app icon and has rounded corners. Please note: sometimes the widget is not shown immediately after installing this app. This is likely a bug in the launcher/homescreen app. Please reboot your device in that case.

Other issues: When reporting any issues please include the following info in your post: Device, ROM and ROM version, exact version number of this app you use (don't just write "latest"), superuser management app (e.g., SuperSU) and version, content of any shown error messages. Describe in detail what you tried to do, what you expected to happen, and what happened instead. Include screenshots/screencasts where possible and useful to show the issue.

Cheers,

cygery

Screenshots:

phone_toggledata_1.png
phone_toggledata_2.png


Changelog:

v1.7.2.0:
readded support for automatic refreshing on connectivity changes for now
small fixes and improvements

v1.7.1.0:
removed support for automatic refreshing on connectivity changes

v1.7.0.0:
fixed Locale plugin's configuration Activity (previously it did not allow selection of SIM ID)
added option to use default SELinux context (makes app compatible with more root providers)

v1.6.1.0:
added multi-SIM support with customizable label in widget

v1.5.4.0:
added option to control automatic refresh of toggle state

v1.5.3.0:
added support for Android 6.0
small fixes and improvements

v1.5.2.0:
added support for Android 5.1

v1.5.1.0:
bug fixes

v1.5.0.0:
NEW: condition plugin for the Locale/Tasker plugin
small improvements

v1.4.2.0:
small improvements

v1.4.1.0:
small fixes and improvements

v1.4.0.0:
NEW: Material-like design
added support for some other superuser apps on older Android versions
small fixes and improvements

v1.3.2.0:
small fixes and improvements

v1.3.1.0:
small improvements

v1.3.0.0:
added support for Android 2.2+

v1.2.2.0:
small fixes

v1.2.1.0:
small improvements

v1.2.0.0:
added: support for custom icon images (requires read external storage permission)
small fixes and improvements

v1.1.0.0:
added: Locale plugin
added: Shortcut

v1.0.2.0:
small improvements

v1.0.1.0:
small improvements

v1.0.0.0:
initial release
 

Attachments

  • com.cygery.toggledata.xda-1.0.2.0.apk
    608.6 KB · Views: 10,207
  • com.cygery.toggledata.xda-1.1.0.0.apk
    629.4 KB · Views: 1,493
  • com.cygery.toggledata.xda-1.2.0.0.apk
    647.4 KB · Views: 3,888
  • com.cygery.toggledata.xda-1.2.2.0.apk
    647.5 KB · Views: 823
  • com.cygery.toggledata.xda-1.3.2.0.apk
    648.2 KB · Views: 1,529
  • com.cygery.toggledata.xda-1.4.0.0.apk
    624.6 KB · Views: 752
  • com.cygery.toggledata.xda-1.4.1.0.apk
    625 KB · Views: 755
  • com.cygery.toggledata.xda-1.4.2.0.apk
    622.4 KB · Views: 2,446
  • com.cygery.toggledata.xda-1.5.0.0.apk
    628.2 KB · Views: 1,557
  • com.cygery.toggledata.xda-1.5.1.0.apk
    628.1 KB · Views: 7,358
  • com.cygery.toggledata.xda-1.5.2.0.apk
    628.2 KB · Views: 20,980
  • com.cygery.toggledata.xda-1.5.3.0.apk
    734.1 KB · Views: 569
  • com.cygery.toggledata.xda-1.5.4.0.apk
    735.1 KB · Views: 26,698
  • com.cygery.toggledata.xda-1.6.1.0.apk
    807.3 KB · Views: 97
  • com.cygery.toggledata.xda-1.7.0.0.apk
    800.6 KB · Views: 92
  • com.cygery.toggledata.xda-1.7.1.0.apk
    800.4 KB · Views: 331
  • com.cygery.toggledata.xda-1.7.2.0.apk
    800.6 KB · Views: 4,917
Last edited:

cygery

Inactive Recognized Developer
May 6, 2013
1,259
1,484
cygery.com
Device compatibility:

Please note: This is not an exhaustive list and only mirrors my current state of knowledge. If your device is neither listed in the "compatible" or "incompatible" list its compatibility isn't known yet. If you test it please report and I'll update the lists.

Compatible:
  • HTC DROID DNA
  • HTC EVO 4G LTE
  • HTC One M7
  • HTC One M8
  • HTC One S
  • LG Optimus Slider
  • LG Optimus G (LS970)
  • LG G2
  • LG G3
  • LG 4X
  • Moto X 1st Gen. (2013)
  • Moto X 2014 (XT1097)
  • Moto X 2014 Pure
  • Moto G LTE
  • Moto G 2015 LTE XT1072
  • Nexus 4
  • Nexus 5
  • Nexus 6
  • Nexus 7 Mobile 2013
  • Nexus 9
  • Nvidia Shield
  • OnePlus One
  • Samsung Galaxy S3
  • Samsung Galaxy S4
  • Samsung Galaxy S4 Mini
  • Samsung Galaxy S4 Mini LTE (i9195)
  • Samsung Galaxy S5
  • Samsung Galaxy S5 Duos 900FD
  • Samsung Galaxy S6 Edge (SM-G925F)
  • Samsung Galaxy Note 1
  • Samsung Galaxy Note 2
  • Samsung Galaxy Note 3 (N9005 HLTE International)
  • Samsung Galaxy Note 4 (T-Mobile, SM-910T3)
  • Samsung Galaxy W i8150
  • Sony Xperia P
  • Sony Xperia S
  • Sony Xperia T
  • Sony Xperia Z
  • Sony Xperia Z1 compact (D5503)
  • Sony Xperia Z3 compact
  • Zenfone 2 (Resurrection Remix custom ROM, based on CM13)
Incompatible:
  • (none known yet)
 
Last edited:

cygery

Inactive Recognized Developer
May 6, 2013
1,259
1,484
cygery.com
If you test this widget on a device not listed as compatible or incompatible in the second post, please share your results. It should work on any rooted Android 5.0 device, however, it was only tested on a Nexus 5 so far.
 
Last edited:

optimummind

Senior Member
Jun 17, 2012
2,185
892
Orange, CA
I downloaded successfully but am not able to install.

When I'm at the screen that offers 2 options - Cancel or Install - pressing Install does nothing. The Cancel button, however, works.

I'm on official 5.0 Lollipop on Nexus 5 with root achieved via CF Autoroot.

Sent from my Nexus 5 using Tapatalk
 
  • Like
Reactions: cygery

cygery

Inactive Recognized Developer
May 6, 2013
1,259
1,484
cygery.com
I downloaded successfully but am not able to install.

When I'm at the screen that offers 2 options - Cancel or Install - pressing Install does nothing. The Cancel button, however, works.

I'm on official 5.0 Lollipop on Nexus 5 with root achieved via CF Autoroot.

Sent from my Nexus 5 using Tapatalk
Is the install button disabled? Did you try to manually install other apps? Do you use any app which obscures the screen, e.g., a screen filter? When such apps are used the install button can't be clicked.
 

optimummind

Senior Member
Jun 17, 2012
2,185
892
Orange, CA
Is the install button disabled? Did you try to manually install other apps? Do you use any app which obscures the screen, e.g., a screen filter? When such apps are used the install button can't be clicked.

Thanks, after you wrote that I figured out which app was causing the problem - it was Lux, a screen-filtering app for brightness control.

I can confirm it works beautifully on Nexus 5 on official Lollipop. Thank you~!

Is it possible to integrate e-robot integration?

It would also be nice to have the ability to choose icon image.

Sent from my Nexus 5 using Tapatalk
 
  • Like
Reactions: cygery

cygery

Inactive Recognized Developer
May 6, 2013
1,259
1,484
cygery.com
Thanks, after you wrote that I figured out which app was causing the problem - it was Lux, a screen-filtering app for brightness control.

I can confirm it works beautifully on Nexus 5 on official Lollipop. Thank you~!

Is it possible to integrate e-robot integration?

It would also be nice to have the ability to choose icon image.

Sent from my Nexus 5 using Tapatalk
Great!
I'm currently working on a Locale/Tasker compatible plugin. According to the app description of E-Robot it should work there, too.
How would you like to choose images? Currently, I'm using four images for normal/clicking and on/off state which include both the background and the "main" icon. Adding an option to select four such images would be rather easy but you'd have to create all of them, then.
 
Last edited:
  • Like
Reactions: optimummind

albert_htc

Senior Member
Apr 5, 2010
594
31
Could this be called and toggled from another application ?

I use widgetsoid which works for me apart from data toggling.

If this could be called once to enable, then again to disable then it could be used within widgsetsoid !

Sent from my Nexus 7 (2013) KitKat 4.4.4
 
  • Like
Reactions: cygery

cygery

Inactive Recognized Developer
May 6, 2013
1,259
1,484
cygery.com
Could this be called and toggled from another application ?

I use widgetsoid which works for me apart from data toggling.

If this could be called once to enable, then again to disable then it could be used within widgsetsoid !

Sent from my Nexus 7 (2013) KitKat 4.4.4
Not yet but using the Locale/Tasker plugin this will be possible.
I'll check about Widgetsoid, it doesn't seem to support Locale compatible plugins but I could add simple shortcuts, too.
Expect an update tomorrow.
 

optimummind

Senior Member
Jun 17, 2012
2,185
892
Orange, CA
Great!
I'm currently working on a Locale/Tasker compatible plugin. According to the app description of E-Robot it should work there, too.
How would you like to choose images? Currently, I'm using each four images for normal/clicking and on/off state which include both the background and the "main" icon. Adding an option to select four such images would be rather easy but you'd have to create all of them, then.

Yes, the option to choose our own images would be great.

Sent from my Nexus 5 using Tapatalk
 
  • Like
Reactions: cygery

rfkw

Senior Member
Nov 14, 2011
190
42
Hi, a Locale/Tasker plugin is currently in development.

Yes please. Waiting for that.

As far as I know, Power Toggles is also another app which can enable and disable data.
However, I can't control it with Tasker. Secure Settings app at the moment can't enable & disable data even though it works with Tasker.

If yours could toggle data and also be controlled with Tasker, it'll be great! I want to automatically enable & disable data with Tasker.

I'm on Nexus 5 running Lollipop.
 
  • Like
Reactions: cygery

cygery

Inactive Recognized Developer
May 6, 2013
1,259
1,484
cygery.com
I've uploaded a new version which includes a Locale/Tasker compatible plugin and a shortcut feature. Both features support switch on/switch off/toggle actions for mobile data.
Please note that any application could trigger these actions. Thus, you have to manually enable this "external access" within the app via the new settings Activity.
If you test the new features please give feedback.
 

rfkw

Senior Member
Nov 14, 2011
190
42
I've uploaded a new version which includes a Locale/Tasker compatible plugin and a shortcut feature. Both features support switch on/switch off/toggle actions for mobile data.
Please note that any application could trigger these actions. Thus, you have to manually enable this "external access" within the app via the new settings Activity.
If you test the new features please give feedback.

Looks to be working fine so far. Tested the new Tasker features.

Great job!
 
  • Like
Reactions: cygery

Top Liked Posts

  • There are no posts matching your filters.
  • 202
    Hi,

    I've developed a widget to toggle mobile data on Android 5.0/5.1 (Lollipop), Android 6.0 (Marshmallow), and Android 7.0/7.1 (Nougat). It requires root.
    This is an xda-exclusive free version! If you want to support me, please consider getting the paid version on Google Play or check out my other apps.
    Please note: Redistribution of this app is not allowed!

    New: Support for dual SIM/multi SIM devices on Android 5.1 and later.

    Paid version on Google Play (same functionality): https://play.google.com/store/apps/details?id=com.cygery.toggledata

    Device compatibility: second post

    Features:
    • Widget
    • Locale/Tasker plugin
    • Shortcut
    • Custom icon images
    • Dual SIM/multi SIM support on Android 5.1 and later

    Device Support
    Device support depends on a variety of factors, including your specific device model, Android version, installed (custom) ROM, used root provider (su binary), and SELinux configuration. This app includes options to deal with different configurations of some of those factors. Please let me know if this app does not work on your device.

    Notes
    The widget is passive. Thus, it has to request root every time it is refreshed. Although the battery impact is negligible, this usually results in frequent (Toast) messages indicating that the app was granted root rights. Please refer to your superuser management app if you'd like to disable those messages specifically for this app.
    This app includes a (static) shortcut and a (dynamic) widget. Usually, both shortcut and widget are shown in the same list which is used to add them to your homescreen although this list is commonly just labeled "Widgets". For reference, the screenshots in this post show the widget. The shortcut looks like the app icon and has rounded corners. Please note: sometimes the widget is not shown immediately after installing this app. This is likely a bug in the launcher/homescreen app. Please reboot your device in that case.

    Other issues: When reporting any issues please include the following info in your post: Device, ROM and ROM version, exact version number of this app you use (don't just write "latest"), superuser management app (e.g., SuperSU) and version, content of any shown error messages. Describe in detail what you tried to do, what you expected to happen, and what happened instead. Include screenshots/screencasts where possible and useful to show the issue.

    Cheers,

    cygery

    Screenshots:

    phone_toggledata_1.png
    phone_toggledata_2.png


    Changelog:

    v1.7.2.0:
    readded support for automatic refreshing on connectivity changes for now
    small fixes and improvements

    v1.7.1.0:
    removed support for automatic refreshing on connectivity changes

    v1.7.0.0:
    fixed Locale plugin's configuration Activity (previously it did not allow selection of SIM ID)
    added option to use default SELinux context (makes app compatible with more root providers)

    v1.6.1.0:
    added multi-SIM support with customizable label in widget

    v1.5.4.0:
    added option to control automatic refresh of toggle state

    v1.5.3.0:
    added support for Android 6.0
    small fixes and improvements

    v1.5.2.0:
    added support for Android 5.1

    v1.5.1.0:
    bug fixes

    v1.5.0.0:
    NEW: condition plugin for the Locale/Tasker plugin
    small improvements

    v1.4.2.0:
    small improvements

    v1.4.1.0:
    small fixes and improvements

    v1.4.0.0:
    NEW: Material-like design
    added support for some other superuser apps on older Android versions
    small fixes and improvements

    v1.3.2.0:
    small fixes and improvements

    v1.3.1.0:
    small improvements

    v1.3.0.0:
    added support for Android 2.2+

    v1.2.2.0:
    small fixes

    v1.2.1.0:
    small improvements

    v1.2.0.0:
    added: support for custom icon images (requires read external storage permission)
    small fixes and improvements

    v1.1.0.0:
    added: Locale plugin
    added: Shortcut

    v1.0.2.0:
    small improvements

    v1.0.1.0:
    small improvements

    v1.0.0.0:
    initial release
    21
    Device compatibility:

    Please note: This is not an exhaustive list and only mirrors my current state of knowledge. If your device is neither listed in the "compatible" or "incompatible" list its compatibility isn't known yet. If you test it please report and I'll update the lists.

    Compatible:
    • HTC DROID DNA
    • HTC EVO 4G LTE
    • HTC One M7
    • HTC One M8
    • HTC One S
    • LG Optimus Slider
    • LG Optimus G (LS970)
    • LG G2
    • LG G3
    • LG 4X
    • Moto X 1st Gen. (2013)
    • Moto X 2014 (XT1097)
    • Moto X 2014 Pure
    • Moto G LTE
    • Moto G 2015 LTE XT1072
    • Nexus 4
    • Nexus 5
    • Nexus 6
    • Nexus 7 Mobile 2013
    • Nexus 9
    • Nvidia Shield
    • OnePlus One
    • Samsung Galaxy S3
    • Samsung Galaxy S4
    • Samsung Galaxy S4 Mini
    • Samsung Galaxy S4 Mini LTE (i9195)
    • Samsung Galaxy S5
    • Samsung Galaxy S5 Duos 900FD
    • Samsung Galaxy S6 Edge (SM-G925F)
    • Samsung Galaxy Note 1
    • Samsung Galaxy Note 2
    • Samsung Galaxy Note 3 (N9005 HLTE International)
    • Samsung Galaxy Note 4 (T-Mobile, SM-910T3)
    • Samsung Galaxy W i8150
    • Sony Xperia P
    • Sony Xperia S
    • Sony Xperia T
    • Sony Xperia Z
    • Sony Xperia Z1 compact (D5503)
    • Sony Xperia Z3 compact
    • Zenfone 2 (Resurrection Remix custom ROM, based on CM13)
    Incompatible:
    • (none known yet)
    4
    4
    This app is now available via XDA Labs!

    There are currently two release channels in use:
    • Stable: version 1.5.4.0 without multiSIM support
    • Beta: version 1.6.1.0 with experimental support for multiple SIM cards on Android 5.1 and later (cf. this post)
    3
    I've received multiple requests to share the method I used to toggle data using root in this app, or airplane/cell radio in my other new widgets, or to override the network operator name in the other new app.
    If you're a developer and interested feel free to contact me via email ( contact@cygery.com ). These are my conditions:
    • You don't compete with my apps
    • You don't share the information I provide to you with others
    Another question which arose was compensation. I don't require any compensation, especially I don't ask for any fee. If you like, feel free to support me by buying apps from me which you find useful. If my instructions help you, feel free to credit me somewhere, e.g., in your app's credits section, forum thread, or similar. However, none of this is required.