yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] Brian D:
Thank you!

I am using a LGG3 with 5.01. This app is a god send and I appreciate you putting it together.

Not long ago I had an issue with Android OS eating all by data by doing some kind of update. 90% was gone before my phone kicked in and stopped the data. For some reason my phone did not connect to my home WiFi and that is why the data was on.

I use Tasker for a lot of things on my phone. So I did a small profile to turn data off at 10p and back on at 6a. That didn’t work. I looked around and found out that Andorid prevents any external control of the data. Shame on them.

So I continued looking and found your app. Loaded it and manually it worked like a charm. But to get Tasker to use it was beyond my limited knowledge. Did some more searching hoping to find a profile that would do the trick. There were none.

After much gnashing of teeth and rending of hair I finally got a profile that works. Data on at 7 a.m. and off at 10 p.m. I do hope that in the event I lose Wifi again my data will remain off to prevent Google from eating up everything.

Again, thanks!

Here is my very simple text of the profile. You will need to create a profile name (like Data_On_Off.prf.xml) and do a cut-n-paste. Then import the file into Tasker.

---cut ---

<TaskerData sr="" dvi="1" tv="4.8m">

<Profile sr="prof17" ve="2">

<cdate>1464809540723</cdate>

<edate>1464810835805</edate>

<id>17</id>

<mid0>18</mid0>

<mid1>18</mid1>

<nme>Data On/Off</nme>

<Time sr="con0">

<fh>22</fh>

<fm>0</fm>

<th>6</th>

<tm>59</tm>

</Time>

</Profile>

<Task sr="task18">

<cdate>1464809548325</cdate>

<edate>1464810522451</edate>

<id>18</id>

<nme>Data</nme>

<Action sr="act0" ve="7">

<code>8279</code>

<Bundle sr="arg0">

<Vals sr="val">

<action>action_name_toggle</action>

<action-type>java.lang.String</action-type>

<com.twofortyfouram.locale.intent.extra.BLURB>toggle</com.twofortyfouram.locale.intent.extra.BLURB>

<com.twofortyfouram.locale.intent.extra.BLURB-type>java.lang.String</com.twofortyfouram.locale.intent.extra.BLURB-type>

<net.dinglisch.android.tasker.subbundled>true</net.dinglisch.android.tasker.subbundled>

<net.dinglisch.android.tasker.subbundled-type>java.lang.Boolean</net.dinglisch.android.tasker.subbundled-type>

</Vals>

</Bundle>

<Str sr="arg1" ve="3">com.cygery.toggledata.xda</Str>

<Str sr="arg2" ve="3">Toggle Data 5.0</Str>

<Int sr="arg3" val="0"/>

</Action>

</Task>

</TaskerData>

---cut---
[Android Apps and Games] daniu:
Hi

Thanks for this but ... what is so difficult about it?

I use tasker to turn off data everytime my display turns off. The command to do that is simple and just one command ... more difficult about my task is, that tasker needs to be turned on under settings - accessibility (iirc - at least some of my profiles need that).

I think to import your profile is more difficult than to create it yourself - sorry ...

Regards

Sent from my x-phone using brain 2.0
[Android Apps and Games] gihefca:
Hi

It (1.5.4.0) doesn't work on Moto X force 2015 (xt1580) with MM 6.0.1 (ROM stock SuperSU 2.65) :(
[Android Apps and Games] Phil3759:
[MENTION=5253144]cygery[/MENTION]

Can you check this post:

http://xdaforums.com/showthread.php?t=1037817&page=194#post67182604

Hope you can help the dev to enable some toggles in his app
[Android Apps and Games] cygery:
Thanks, I posted there.
[Android Apps and Games] Karlos63:
Just when I wanted to give up my search attempt, I found this app. So it is possible to direct toggle mobile data on Android6! This is so perfect....

Works *** p e r f e c t *** on mij Samsung Note 3 SM-N9005 with a CM13 based rom.

Many thanks for this jewel [MENTION=5253144]cygery[/MENTION]! :good:
[Android Apps and Games] normaltusker:
This works perfectly fine on MIUI LP 5.1. I have tested this on other ROMS and XT1033 which is dual SIM as well. I noticed that when the app is called from tasker it does not populate the SIM Label details. So basically it cannot be configured to switch a particular SIM's Data on/off. Due to this it takes a little longer to toggle the data than what it would have taken the widget to perform.

Can you please include the SIM Label in the screen called from tasker?
[Android Apps and Games] cygery:
I'm not sure what you mean. Can you post screenshots and give a concrete example what you expect where?
[Android Apps and Games] magarlick:
Works on S7 Edge but the app asks for su permission every 2 minutes. Is this normal? I'm not using the widget, just the tasker plug in.
[Android Apps and Games] AeonXDA:
Also works on Samsung Galaxy S6 (SM-G920F)

(Not a surprise there since it already works on the S6 Edge)
[Android Apps and Games] Follow_and_Feel:
I don't know why, but after I've installed a font package on my Galaxy S7 Edge (SM-G935F) toggle data doesn't work anymore :eek: I tried to re-install, but can't even install it. "Installing..." stays forever. I know that you probably can't do anything about it. Just wanted to let you know :laugh:

EDIT: Oopsy daisy. Everything working now. I'm ashamed
[Android Apps and Games] howlep:
running the latest dual sim version on my jiayu s3 5.1.1

when I try to use it from tasker, I am unable to set the sim card. the option is present but I can not tap on it. if I just save the settings (without seeing the sim card) td5 just crashes.

using the widget, I can set the specific sim card and this does work to change the mobile data.

hope that this makes sense. if you need more info please let me know.

thanks
[Android Apps and Games] Kandeman:
Samsung Galaxy S4 mini GT-I9195

CyanogenMod 13- Nightly

Can’t use SuperSU as it gets stuck on boot

Using either 1.5.4.0 or 1.6.1 I get

error message: "can't toggle mobile data. Is your device rooted? Error -2: Command service not found"
[Android Apps and Games] albert_htc:
This does work well as a custom command via Power Toggles.
[Android Apps and Games] atoyota:
Works like a charm! both the widget and the tasker plugin, I'm on a nexus 4 with lollipop and cf auto root.. thank you so much!!
[Android Apps and Games] brisac:
Widget works fine with xperia s :D
[Android Apps and Games] Bender1987:
Runs perfect on my N4 5.0 CF-R with the plugin.

Thx a lot ?

Gesendet von meinem Nexus 4 mit Tapatalk
[Android Apps and Games] scorpienez:
Working

Works fine in Galaxy S3 with android 5.0(Nameless Rom). :)
[Android Apps and Games] optimummind:
Here is the screenshot:

It's the second from right icon (the little red one). Its size is 400x293.
[Android Apps and Games] cygery:
OK, which launcher are you using? Did you try to crop the image to square image containing just the round power button? Did you try other (square) images? How does it look like using the default icons?
[Android Apps and Games] JoseLoarca97:
Works nice on Galaxy Note 2 running Android 5.0 thanks to Nameless Rom :o
[Android Apps and Games] optimummind:
I'm using Hololauncher and tried with other icons, including some square ones. Same result.

When I use the default icons, the size is normal.
[Android Apps and Games] cygery:
These are my results:

There's some padding around the widget. Do you have the same result with the default icons?

I haven't found a setting for this in Holo Launcher, however, e.g., Nova launcher allows you to disable the padding. Unfortunately, I have no influence on this.
[Android Apps and Games] kenkiller:
Any chance of an update on the 2g/3g/lte toggle app? :D
[Android Apps and Games] cygery:
I'm working on it and I don't see any issues which could prevent it from functioning properly so far. It's more complicated than this widget and I'll be unable to test everything by myself (e.g., support for CDMA or "world" phones). Anyway, I plan to have something for release within the next few days.
[Android Apps and Games] kenkiller:
Great. It's actually interesting that no one actually managed to get such an app working without Xposed in the Kitkat era. As in no one managed to do so with just root.

There was supposedly one such app/mod that did it without using Xposed (during Jellybean, but abandoned), but it involved editing the framework and some complicated stuff.... :(
[Android Apps and Games] modyt:
Yeah. Even with xposed I remember only Intelli3G being the only app that provided that functionality.

---------- Post added at 07:59 PM ---------- Previous post was at 07:58 PM ----------

I don't mind being a tester if needed. [emoji4]
[Android Apps and Games] cygery:
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.
[Android Apps and Games] fredfox_uk:
Thank you - just what I was looking for, works perfectly with Tasker integration :)
[Android Apps and Games] kenkiller:
Actually Gravitybox did it as well, used it over intell3g because of my setup.
[Android Apps and Games] Kahun:
Works perfectly on my HTC One M8:)
[Android Apps and Games] atoyota:
I'm sorry, did you mean that you're working on a similar app for an airplane mode toggle as well? Cause that would be awesone (it would be even better to have both toggles in the same app).

Either way, thank you for this app, you saved lots of my tasker profiles!
[Android Apps and Games] cygery:
Yes, beside this widget I've recently released two other widgets and an app: "Toggle Airplane 5.0", "Toggle Cell Radio 5.0" and "Change Operator Name". All of them require root and can be found on Google Play. I'll add support threads for them here, too. Additionally, I plan to release some limited version exclusively on XDA, too (e.g., just a widget without Locale plugin).
[Android Apps and Games] daniu:
You need selinux=permissive. Either use a kernel with that option set appropriate or use an app to change the selinux state.

If td had been started with selinux=enforcing (which is btw standard on cm) it does not help to change the selinux state - you need to kill the td app manually. I use td with tasker and usually td is called by tasker before the selinux state got changed. Killing the td app always helps

Regards

Sent from my x-phone using brain 2.0
[Android Apps and Games] Kandeman:
Thank you, works perfectly. Sorry I read the previous posts about selinux but didn't understand them. Interestingly once the widget is loaded and working with selinux state = permissive the state is no longer relevant and can be set back to enforcing as the toggle still works.
[Android Apps and Games] daniu:
Hi

That is indeed interesting ... I think our developer should read this as it seems like the check for selinux state is unnecessary ...

However I would not switch back to enforcing because android also kills apps if the system runs low on memory so you can never be sure when the app will be restarted.

Regards

Sent from my x-phone using brain 2.0
[Android Apps and Games] marcinde:
Very good! Bro
[Android Apps and Games] sulligogs:
I have searched for the term "quick" on this thread and got 4 results back. Each result does not relate to what I want.

I want to toggle data on and off from the Quick Settings pull down menu like we did on old versions of Cyanogenmod. Is this possible?
[Android Apps and Games] piccit:
Can you add custom quick settings tiles? Can you make them run Tasker tasks?
[Android Apps and Games] AmeiN:
Thank you for this great toggle. Working on Lenovo Vibe K5 (5.1.1).

Can save my battery automatically during sleep time..

Im using shortcut + sony smart connect
[Android Apps and Games] ghines:
Hi all,

The Widget is supposed to have a size of 1x1 however mine looks anything but square and rather more rectangle and ugly. However changing the color it looks like a "normal" 1x1 size. Tried using Nova but that will not even change its size. Using CM12.1

TIA

Greg
[Android Apps and Games] nicolae.fratila:
I am using the app with MM installed on MotoG2 (XT 1068). Phone is dual sim but only one SIM is inserted.

The app should toggle data on and off when near a cell defined by me.

It doesn't do it. I don't know why.
[Android Apps and Games] capt.ron:
Just loaded Toggle Data to my One plus one running Android 7 Tugapower N2 Nougat. Wasn't sure if nougat would work but so far it does toggle data. Thanks for this app I've been using since Lolloipop.
[Android Apps and Games] radioalarm:
I had problems using this toggle with Llama as a Locale/Tasker plugin. When testing directly from Llama, it worked, but when it was triggered as automated action, it did not. I changed Llama action from plugin type to "run application", then it started working everytime.

Galaxy S6 with stock Android 6.0.1
[Android Apps and Games] daniu:
Hi

I got a new phone now: asus zenfone selfie with dual sim support.

Therefore I tried the experimental dual sim version. Unfortunately I cannot place a widget on the screen. Trying to do that makes td crash ...

Another question: browsing this thread I found that there are terminal commands to turn data on and off (svc data enable|disable). For tasker that is great but:

Is there also a command to read the current status?

Adding some more infos: I am using the asus stock rom

With the normal td app neither the widget nor my tasker profile to keep track of data status is working. Actually I do not need dual sim support atm. And also I don't need to know the data status always so a tasker command to check data status would be sufficient

Regards

Sent from my x-phone using brain 2.0
[Android Apps and Games] daniu:
Hi,

been searching around a bit more and found: https://groups.google.com/forum/#!topic/Tasker/XuFmkICjVsA

Does not solve my dual sim problem but I guess for now this is the solution to live without toggle data at all.

I switched back to the older td version but the problem with this is that it does not detect the status correctly (in the widget also). As I use td to switch data off when the display is turned off and turn data on again when it was on and the display is turned on again it is a bit annoying if td does not detect the data status correctly because data is turned on even it was off before ...

Would be great to get a woorking solution also for dual sim one day ...

unfortunately ... /system/etc/settings.xml does not exist on my device ...

regards
[Android Apps and Games] glenalm:
I'm not able to toggle 4G on and off without the stupid data dialogue window coming up. I'm using the app called Omni Swipe so I checked the option for external apps to use your app. It doesnt work. I'm using version 1.5.4.0 of Toggle Data. I'm on my samsung J700T (tmobile) and I'm rooted. What do you suggest?
[Android Apps and Games] cygery:
Do you want to toggle mobile data or to change the (preferred) network type?

Does the widget work?
[Android Apps and Games] glenalm:
I want to toggle data without the confirmation pop up. And I want to add the mobile data icon to the notification drawer.

How would I go about doing these 2 things?
[Android Apps and Games] cygery:
Which confirmation dialog? Please post a screenshot.

Again, does the widget work?

A custom intent tile might work in the notification drawer. I guess it's possible to extract the required parameters from an existing Tasker task/action using this app's plugin or the shortcut.
[Android Apps and Games] Kjc99:
Damn missed out.... Data toggle is amazing... Ever since my S5 I've used this app.... (older data toggles don't work anymore) Thank you makes my S6 and S7 edge so easy to flip on and off... Use it at least 15-20 times a day.... Works great with Nova launcher gestures... Next payday I'll buy the pro version.... Appreciate all your hard work.... Thanks

Galaxy S7 edge
[Android Apps and Games] Cholerabob:
Anyone got this to work on 7.1 ?
[Android Apps and Games] Kjc99:
Haven't tried but it does works on 7.0

Galaxy S7 edge
[Android Apps and Games] jose_pagio:
Tested on OnePlus 3 7.0 and works.
[Android Apps and Games] cygery:
Heads-up: Support for Android 2.2 will be dropped with the next release which should be available within a few days :)
[Android Apps and Games] cygery:
Here's an experimental new version (v1.7.0.0) which adds support for more root providers, e.g., MagiskSU, and fixes a bug in the Locale plugin.

What's new:

- 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)
[Android Apps and Games] elsquare:
Thanks a bunch!

Using toggle data for years on MM, after CM now on LOS 13.

With the new option for SE provider enabled I can now leave the phone in enforcing mode. GREAT!
[Android Apps and Games] cygery:
Small update (v1.7.1.0) which removes support for automatic refreshing on connectivity changes since it's not available anymore on Android 7+.
[Android Apps and Games] daniu:
Sorry ... but without that the app does not offer anything at all. Toggling mobile data can be done with tasker if you know how even without root.

Tasker could also check the status from time to time I guess

I got some licences for toggle apps - anybody interested? (Can I pass the apps on somehow?)
[Android Apps and Games] cygery:
Why do you think so? Do you toggle mobile data via multiple different apps and/or the system settings?

It's just one case less which would trigger an automatic update. There are still updates when the toggle is used and optionally periodic updates.

Possible.

Dunno.

Not in this thread.
[Android Apps and Games] cygery:
Updated OP with latest version. XDA Labs update coming soon.
[Android Apps and Games] PowerHero:
Is it possible to change that grey color when toggling data to green or make it also possible to be modified

Thank you
[Android Apps and Games] cygery:
I've currently no plans to add further options to change the design. Please use the custom image feature instead.
[Android Apps and Games] cygery:
XDA Labs version updated.
[Android Apps and Games] thecoolkid:
This makes it useless for me. I used the app solely for detecting connectivity change in tasker. Now the app can't do anything what can't be done in Tasker alone. Sad.

Can anyone know other ways to detect if mobile data is on in Tasker?
[Android Apps and Games] cygery:
Did you use something else than this app to enable/disable mobile data?
[Android Apps and Games] thecoolkid:
I used this app to detect if mobile data is disabled when I'm off wifi to turn it back on and to turn it off when I'm back on wifi. With new version that doesn't work anymore.

Why would you remove the core functionality like that? Just toggling data with a widget isn't enough, widgets are for Android Gingerbread times, when there was no Quick Settings, now we have the toggle always at our disposal. I wouldn't know why anybody would want to use a widget instead.
[Android Apps and Games] cygery:
So you're using the quick settings to toggle data?

The connectivity change detection I used does not work starting with Android 7 due to changes in Android. Also, it never was a core functionality of this app nor a perfect way to detect changes of the mobile data toggle, e.g., if mobile data is toggled while WiFi is connected. Depending on demand I could check if there's an Android 7 compatible way to perform connectivity change detection, maybe using a background service. It'd still have the aforementioned limitations.

Anyway, you can still use the old version.
[Android Apps and Games] elsquare:
I'm using the widget on LOS13/MM (not 7/Nougat - as there is no xposed alas no xprivacy yet) purely manually to switch data with one tap. Quick actions is pulling down that menu from top of screen, right? Cumbersome on my S4 due to the cover (a leather wallet) which makes it hard to slide the finger "into" the screen area. And even without the cover, sliding plus tapping is worse than only tapping. Tldr; the widget rocks :)

But I agree, why not keep the toggle detection in it? Worst would be it does not get used, right?
[Android Apps and Games] cygery:
Also, do you even need to know if mobile data is enabled or not in your use case? Couldn't you just enable/disable mobile data when your WiFi is disconnected/connected?
[Android Apps and Games] thecoolkid:
Yes, if I ever toggle the data manually I use quick settings. If used the app to do it for me automatically.

I hope you find a way :)

I am. I downgraded immediately ;)

---------- Post added at 03:20 PM ---------- Previous post was at 03:05 PM ----------

That was my first thought, but I set it up the way it disables the data only when it's already enabled. It saves on invoking your app pointlessly and also switches the data back off when it comes on while on wifi.
[Android Apps and Games] zempirian:
Running CM12.1

App crashes whenever i try to add widget.
[Android Apps and Games] babaturco:
Hello there

I have a problem like this

Device p9 plus 16 gb and 1012 ram

This device is off

The screen does not open but the screen does not open and someone can help

Because it is in the country that I support huwaie

Thank you now for your help
[Android Apps and Games] cygery:
Is this in any way related to my app?
[Android Apps and Games] BiR00T:
Hi, problem since update 1.6.1.0, I can't add widget or shortcut :

Devide model : Oneplus X (ONE E1003)

Android version : 6.0.1

Rom : Unofficial CyanogenMod 13.0 with 3.4.0 kernel (Feb 12) by Sultanxda

Root provider : SuperSU Free (CM) v2.79

SELinux configuration : Enforcing, tried with permissive but no help

Toggle data version : v1.7.1.0, 1.7.0.0, 1.6.1.0 (no problem with v1.5.4.0)

When I add shorcut or widget : "Unfortunately, Toggle Data 5.0 has stopped", Error appear before screen where we can choose between Switch on, Switch off or Toggle.

Thank you for your help :)
[Android Apps and Games] ch05626:
Hello, I would like to use the shortcut option, but I can't find the setup, for allowing external access to the app. Thank you for your work.
[Android Apps and Games] cygery:
Update (v1.7.2.0) which should fix crashes on multi-SIM devices with one or more inactive SIM cards/slots, e.g., if you have a dual SIM device but only one SIM card is inserted. Also, refreshing of the toggle state on connectivity changes was re-added for now. See OP for download.
[MENTION=5870938]thecoolkid[/MENTION], [MENTION=1601710]daniu[/MENTION]: If you test the update, please post if it works as before I removed the refreshing on connectivity changes. Thanks!
[Android Apps and Games] cygery:
Please try the new update (v1.7.2.0) and post if it fixes the crashes or not.
[Android Apps and Games] cygery:
Launch the app via your app drawer.
[Android Apps and Games] ch05626:
OK, stupid of me. Thanks a lot.
[Android Apps and Games] BiR00T:
[MENTION=5253144]cygery[/MENTION] Thanks it works now :)
[Android Apps and Games] zempirian:
V1.7.2.0 works on gt-i9300I , cm12.1 (12.1-20161031-NIGHTLY-s3ve3g)

Thanks mate

---------- Post added at 09:14 AM ---------- Previous post was at 09:02 AM ----------

Edit;

Bugs:

Widget design doesn't respond.

I set green for state

Yellow for changing

And default for state off

Restarted the system UI, didnt work. Restarted phone, didn't work.

Device Info:

Model- Gt-i9300I

Rom: CyanogenMod 12.1

Rom Version: 12.1-20161031-NIGHTLY-s3ve3g

SU app; Supersu
[Android Apps and Games] zempirian:
Edit: It works. I was using the wrong widget. I used the shortcut instead of the actual widget.
[Android Apps and Games] joe34:
Works with AutomateIt on Xiaomi Redmi 3S

Thank you very much. Toggle Data 5.0 is compatible with my setup...

Toggle Data 5.0 version 1.7.2.0

Xiaomi Redmi 3S Prime

xiaomi.eu 7.3.23 (Android Marshmallow 6.0.1 ROM)
[Android Apps and Games] gege0202:
hello, thanks for this app. i try it on samsung s7 edge
[Android Apps and Games] ch05626:
No more shortcut option for widget? I am on latest LOS build.