yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] chris23445:
Hello, I am sorry to be a pain. I have searched through here and did not find a full solution to my problem. I recently upgraded my Moto X Pure 2015 to Marshmallow. In Lollipop, the exact same Tasker profile worked perfectly fine. At first, the app said I did not have root and gave me an Error -4. I fixed that, but now it will not toggle at all. There is no dialogue whatsoever, and the app shows up in SuperSU. I tried putting SELinux to Permissive and rebooting, and that did not fix anything. I tried wiping the data and reinstalling the app, but it also did not work. I can send the full SuperSU log if needed. I tried a previous users solution to run a shell in tasker, but it did not change anything for me. Any help is greatly appreciated. Thank you in advance!!
[Android Apps and Games] cygery:
First, please check OP for issue reporting.

Also, this might help: http://xdaforums.com/android/apps-g...-to-toggle-t2937936/post64044975#post64044975

Might be possible that you can't use this app but at least the svc method.
[Android Apps and Games] chris23445:
So sorry, I thought I had added that to my post:

Moto X Pure 2015, Stock ROM (24.11.18.clark) [Marshmallow], Version 1.5.4.0 of Toggle Data, SuperSU version 2.60.

I have the full log enabled for SuperSU, but it is completely blank now. It showed a wall of text before, but there is nothing now.

As for my problem, I had this app set to toggle my data in a Tasker profile. Everything worked great in Lollipop, but I updated my phone to Marshmallow and now it will not work. I originally was given error -4 stating I was not rooted, but I fixed that problem. Now the app does not toggle at all in Tasker, and it does not show me anything at all. I also just tried the Toggle Data widget, and nothing happens. There are no errors, and the widget does not toggle my data.

EDIT: The svc method works for my separate Tasker Data On and Off profiles, but not for toggling the data. Is there any way to get that method to work properly for toggling?
[Android Apps and Games] cygery:
You could try to keep track of the current data enabled state and use it to decide whether to enable or disable, so you build your own toggle logic. However, I don't know how to check the current data enabled state by heart.

Also, please try to remove Toggle Data 5.0 from SuperSU's whitelist and then uninstall/reinstall Toggle Data 5.0. Dunno which version of SuperSU is currently considered stable/beta but can you test a more recent (beta) version of it?
[Android Apps and Games] IronTechmonkey:
There are ways with tasker to determine if data is enabled AND there is an active connection by using ping results or other networking commands although I've never tried it.

Alternatively you can use variables in tasker to track the state (though not in a true sense) according the last actions taken with tasker but those wont be accurate if you toggle data by a method not managed by tasker.

---------- Post added at 07:12 AM ---------- Previous post was at 07:07 AM ----------

SuperSU 2.46 is still the latest stable and 2.52 is still the latest beta but according to a recent post by chainfire, test/WIP build 2.64 is getting closer to being promoted to beta.
[Android Apps and Games] chris23445:
Funny thing is, Toggle Data 5.0 is not in SuperSU Whitelist. I have the new systemless root so I wonder if that has anything to do with it?

Also, the reason I chose 2.60 is because from what I have seen, only 2.60 and 2.62 currently work on my phone, but I read more people having success with 2.60. The newest beta (2.64) causes Force Closes like crazy on my phone.
[Android Apps and Games] cygery:
I don't know. I use the systemless root with SuperSU 2.64 and it works fine on my Nexus 5.

What about other root apps, do they work for you?
[Android Apps and Games] chris23445:
Yeah 2.64 seems to only have issues with the Moto X Pure for some reason. Yes, my other root apps work great. I have Titanium Backup and AdAway and a couple others.
[Android Apps and Games] cygery:
Thanks for the update. Since this looks to be an issue with the app being unable to get root rights I'd test around rebooting the device, reinstalling the app, and maybe clearing SuperSU's app data if you can. Unfortunately, I don't have any better idea at the moment.
[Android Apps and Games] chris23445:
I'll try testing stuff and report back. Thank you for the help and support! Have a great holiday!
[Android Apps and Games] ngsp7:
Doesn't work on OnePlus Two

It doesn't work on my OnePlus Two ( guess mostly because of the dual sim option )
[Android Apps and Games] Alucard1797:
it is working fine on my Zenfone 2 running Resurrection Remix, a custom rom based on CM 13, thanks for this great app.
[Android Apps and Games] vodkasolution:
it's working on my sony xperia z3 compact, with marshmallow
[Android Apps and Games] SyCoREAPER:
Hmm, works standalone but can't get it to work with Llama or Tasker.

nvm just a slight delay when activated via these methods.
[Android Apps and Games] tchavei:
I can't make it work in cm 13. Used to work great in cm 12.1 (s4 mini).

Tried with the stock cm root and it gives error -2 command service not found.

I then installed supersu 2.64 but it won't let me update the binaries although it's rooted.

I give up.

Enviado do meu GT-I9195 através de Tapatalk
[Android Apps and Games] cygery:
Here's an experimental new version (v1.6.1.0) which adds support for multiple SIM cards on Android 5.1 and later. Multiple SIM cards on earlier Android versions aren't and most likely won't be supported.

On Android 6 and later, this update requires the "read phone state" permission. You'll have to launch the app normally to grant it.

To make use of the multi SIM support, please remove and recreate any widgets, shortcuts, and Locale/Tasker/etc. actions which use this app. When recreating them, there is a new option to select the SIM card and (for the widget) an optional label. Additionally, the main app's "Widget design" setting screen has a new "Label" page where you can customize the label shown on the widget(s) (text size, color, and position).

Please note that I don't have a multi SIM device for testing. Thus, please expect (and report) any issues. Thanks!

Once this gets tested and, where necessary fixed, I'll add it to the OP, too.

What's new:

- added multi-SIM support with customizable label in widget
[Android Apps and Games] samsung040641:
toggle data

hello "external acces is currently disable you can enable it in the app setting" since this message today when I want to activate the data from the small widget, so it works great with the .. what can I do to repair this

thank you very much
[Android Apps and Games] cygery:
-> OP (do you use the shortcut instead of the widget?)
[Android Apps and Games] samsung040641:
I use the widget

---------- Post added at 05:26 PM ---------- Previous post was at 05:17 PM ----------

thank you very much I find it works now
[Android Apps and Games] cygery:
Anyone tested the experimental version with multi SIM support?
[Android Apps and Games] merisonnaa:
thanks..........it is very usefull app for me......
[Android Apps and Games] =JOKER=:
Even experimental version doesn't work on meizu android 5.1. It crashes.
[Android Apps and Games] cygery:
OP + how about the previous version?
[Android Apps and Games] =JOKER=:
v1.5.4 Doesn't do anything but launches ok.
[Android Apps and Games] taszilo235:
Hello!

I tested but without multi SIM support (I have Nexus 5), the reason why I tested it, because the latest available (from the first page: com.cygery.toggledata.xda-1.5.4.0.apk) cause problem on MMB29S + SuperSu2.66 +TWRP. The problem is the following: the systems for su usage slows down or let put this way, the apps which are using us are "wating" and then starts to work for a small period (like there would be a queue and suddely the process of the queue would happen). I do not know why, but when I uninstalled toggle data 15.4.0 this has not happen for other apps. I tried the experimental and this problem has been disappeared and the toggle is working well (maybe littlebit slower then in previous version, I mean andorid version), but does what I expect from it.

Do you plan to move it into the first section too? or a version without experimental multi sim stuff?

Thanks!
[Android Apps and Games] cygery:
I'm still waiting for feedback on the multi SIM support. So if anybody tested it, please share your results. Until then, I don't plan to move the experimental version (or a new version without the experimental multi SIM support) to the first post.
[Android Apps and Games] taszilo235:
Hello cygery,

I did further test on the app and unfortunately it is still not stable (at least on my device). I have nexus 5 with MMB29S firmware and supersu 2.66. I experienced the followings: it was mentioned some pages before that in supersu log you can see too much entry for the same time stamp. I experienced the same, how ever it would not be a problem, but the behaviour next to it yes. It seems like there would be a queue and toggle would put its request into it but why/why not the system would not process it. Of course until a while (I'm talking here minutes over 10) then suddenly lot of requests are processed (i see it for example the popups from sudo). I checked parallel with other su enabled apps like busybox and they are waiting too. The problem is comming now, that for the other apps it happens only if toggle is installed, if not they are working as it is expected (I tried it with uninstall for toggle). I tried out the svc command line tool for switchin mobile data and it was working well and fast. So if you plan to analyz this behaviour then I'm ready to help to you with tests/log sending what ever is needed for you to find out and if it is not a problem only my freshly reinstalled firmware.

Thanks and regards
[Android Apps and Games] lexmealux:
I'm using LG G3 (d855) with latest nightly 2016-01-18 of Cyanogenmod 13 (Android 6). Toggle Data 1.5.4 doesn't work and neither the beta version (1.6.1).

I don't have any SU of Chainfire (as I had in cyanogenmod 12) but everything works with Root internal in cm13 (Titanium Backup and others).

Here are the info of Root Checker:

Root Access:

access granted

SU:

su found

[/system/xbin/, /system/bin/]

Version:16 cm-su

UID/GID:

n/auid=0(root)

gid=0(root)

groups=0(root)

context=u:r:sudaemon:s0

Unix Utils:

toolbox

[/system/bin/]

PATH:

/sbin

/vendor/bin

/system/sbin

/system/bin

/system/xbin

How to do?

The beautiful Toggle Date is telling me:

"Can't toggle mobile data. Is your device rooted? Error -2: Command "service" not found"

If I open the app (not just the widget) it ask me the root and I check the "remember me" for every time. But still nothing.

What to do?

I can't use SU of Chainfire with cm13, stable or beta version made my rom a continue boot loop.
[Android Apps and Games] lklaus:
Just put it on a Fairphone 2 for Tasker, as secure settings don't want to switch. Not much time to test, but I can switch mobile data with widget and a task from Tasker

Great! Thanks

Klaus
[Android Apps and Games] avik735:
This is working fine on my Xperia ZR with official Sony stock 5.1.1 ROM. But it's not working on my new Moto X Play with official Marshmallow 6.0 ROM (rooted, with squid kernel, SuperSU 2.62 BETA). Gives me an error saying: Can't toggle mobile data. Is your device rooted? Error -4.
[Android Apps and Games] RjLexx:
Unfortunately, toggle data 1.5.4 and 1.6.2 doesn't work on LG L90 with 2 sim and Android Lollipop:( I tested it through widget and tasker.
[Android Apps and Games] johnfre:
I tested v1.5.4.0 on Acer Z220. it seems to install, the widget icon lights and dims, but it doesn't FLIP the actual data on/off :((
[Android Apps and Games] magnemann:
Possible to turn on data via SMS?

Hi,

Is there any app out there which can enable data via SMS on Lollipop 5.1.1 and above?

I've searched and tried some apps, but none works.

Need it so I can track the phone if lost.

Thanks a lot, guys! :good:
[Android Apps and Games] ShahbazParviez:
I want to shudule my mobile data on cm12.1, I have some shuduler apps but how to use ur app to shudule my mobile data
[Android Apps and Games] ulihh:
Testing 1.5.4.0 on LG G2 D802 with CM13 (Marshmallow): Can't toggle mobile data. Is your device rooted? Error -2: Command "service" not found. Apps do have root access.
[Android Apps and Games] cygery:
You might be able to use an automation tool like Tasker to execute tasks based on received SMS.
[Android Apps and Games] cygery:
Any news on this (with new versions of SuperSU)? Generally, see OP regarding this issue (SELinux).
[Android Apps and Games] cygery:
Did you try the option to turn off automatic refresh of the toggle state?
[Android Apps and Games] cygery:
OP + can you try a newer SuperSU version?
[Android Apps and Games] Janis:
Tmo Note 4, SM-910T3, rooted stock (both ROM and kernel) 5.1.1 is working.

Thanks button clicked, and on a few other key posts as well.

I was at my wits end. It seems Samsung, Google, and T-Mobile all want access to my phone without my firewall(s) whenever they feel like it. (I'm sure it's not malicious, but given what I've seen with the apps they publish.... I have trouble trusting that kind of ineptitude and cavalier so implicitly.)
[Android Apps and Games] tchavei:
For people using Tasker and wanting to automate data control, just create a task with a shell that does: 'svc data enable' and another with 'svc data disable' (root privileges). Done. No need to use the plug-in (which doesn't work on the i9195 cm 13 anyway).

Enviado do meu GT-I9195 através de Tapatalk
[Android Apps and Games] Follow_and_Feel:
For those of you with an LG G4 - just install Llama Sweet Kernel, if you're on CM13 and want this app to work. It sets SELinux status right and toggle data works again --> Click me

EDIT: Kernel anyway nicer than stock CM. Smooth AF :)
[Android Apps and Games] ulihh:
Hi cygery, in the OP you say "when SELinux is set to enforcing", but all my device tells me is "SELinux-Status strict". After reading a bit about SELinux i see there's a difference between policy (enforcing, permissive and disabled) and type (targeted, strict, mls, mcs). That's confusing. I give SuperSU a try.
[Android Apps and Games] Vidomir:
same, any solution yet?

Error- 2 command "service" not found.

App is granted root on my moto g 1st gen with cyanogenMod 12.1.
[Android Apps and Games] chris23445:
The problem with this for some people is that it does not toggle the data. I have a Tasker shortcut so I can toggle data easily on my home screen, and the svc data doesn't let me toggle it, so that stinks for me. Hopefully I can get this to work again eventually. Thanks for the suggestion though, I'm sure it will help others!
[Android Apps and Games] tchavei:
Hmm. Are you sure? You would only need an if else condition. If data off -> turn data on, else turn data off.

I can't see why you couldn't do that with Tasker.

Personally I only want to turn data on / wifi Off whenever I enter my car (Bluetooth triggered) and data off, wifi on whatever I leave the car.

Enviado do meu GT-I9195 através de Tapatalk
[Android Apps and Games] cygery:
Any new test reports regarding the experimental version with multi SIM support?
[Android Apps and Games] mn147:
hi. what exactly is the function of the refresh rate? thanks

nexus 6_root
[Android Apps and Games] SyCoREAPER:
I am having issues where it is both not triggering with screen off (despite being excluded from Doze) and Error-3 No root message. Was working perfectly in Lollipop but having some problems in 6.0.

Have both the above issues with this app as well as your Network Type Toggle
[Android Apps and Games] S3FOAD:
Works perfect on my oneplus two running Oxygen OS 2.2 (5.1.1) and SuperSU 2.65 and on my oneplus one running CM 12.1 (5.1.1) SuperSU 2.4x

But on my nexus 5 running CM 12.1 (5.1.1) with the CM Root Engine with root garanted i get the error message: Can't toggle mobile data. Is your device rooted? Error- 2 command "service" not found
[Android Apps and Games] cygery:
It's "Refresh state". Is there something unclear about it/the description below the setting?
[Android Apps and Games] SyCoREAPER:
I

re-

read the OP and still don't see what I should be referencing.

I have SuperSU (obviously rooted). Don't see anything related to error-3 or why it only does this intermittently.
[Android Apps and Games] cygery:
Lacks info.
[Android Apps and Games] SyCoREAPER:
LG G3 6.0 MM

TWRP

Stock Rom

Systemless Root

Happens with both widget and locale plugin mode.
[Android Apps and Games] cygery:
Did you try to remove the app(s) from SuperSU's whitelist? Also, did you try uninstalling+reinstalling them? Might be an issue with SuperSU managing their root access.
[Android Apps and Games] SyCoREAPER:
I mean this respectfully but are you sure they are fully MM 6.x compatible? They worked no problem on LP

I will retry your above suggestion in the meantime
[Android Apps and Games] Sukarn:
I don't use the widget but the tasker plugin has been working fine on ResurrectionRemix MM 6.0.1 on OnePlus One for me since the first release of RR MM last year.

Screenshot of my settings in the app is attached with this post. Make sure to open the app once and give it root access.

Step 6 in this task works fine for me.
[Android Apps and Games] daniu:
Hi

Surprised nobody mentioned that: on my s2 the app only works after switching selinux to permissive instead of enforcing under mm (cm13)

Regards

Sent from my x-phone using brain 2.0
[Android Apps and Games] cygery:
Obviously, they are not *fully* compatible. However, I don't have enough data about compatibility on Android 6.0 yet. Looks like it works more often than it doesn't work, though.

For the network type toggle, please check the respective thread/OP.

There are apparently some device/ROM specific issues with both apps. The mobile data toggle apparently has less issues on Android 6 than the network type toggle (which already had more incompatibilities on earlier versions).
[Android Apps and Games] SyCoREAPER:
Just got a Nexus so I will test on it to see if it shows the same behavior.
[Android Apps and Games] mythos_:
I'm using this app on my OnePlus One (COS 12.1) and it works great.

I would however suggest separating periodic refresh and refresh on connectivity change in two different settings. The way it is right now it constantly asks for SU permission if it's selected but disabling it means no refresh at all (unless the widget itself is used to change connectivity). I think refresh on connectivity change would be enough for most cases (it would be for mine).
[Android Apps and Games] cygery:
Thanks for the suggestion but I don't plan to add more granular settings for this at the moment. Any other users looking for this?
[Android Apps and Games] Joel_L:
Has anyone tried this with Textra? Does it allow Textra to transparently toggle data like it did on Kitkat?

Thanks

Joel
[Android Apps and Games] daniu:
Hi

For some time the widget does not always work anymore and I get the error message: "can't toggle mobile data. Is your device rooted? Error -2: Command service not found"

I am using cm13 nightly from 10th of April (actually I use the linaro/sabermod version by markox but the difference is just the compiler) on a Samsung galaxy s2. My device is rooted and I am using the built in su app of cm13 (since supersu does not work with this setup) - I checked the permission for root and it should not be the problem.

I change my selinux status to permissive after each time booting ...

I don't always get this error, after rebooting it might work ...

Any help?

Regards

Sent from my x-phone using brain 2.0
[Android Apps and Games] cygery:
Sounds like the issue is caused by the SELinux status. Do you get the error message only shortly after reboot or also during later use?
[Android Apps and Games] daniu:
Hi

Thanks for the reply.

Unfortunately totally random - definitely not just after booting. I get a notification when the selinux status is changed - would not have asked if the problem only occurred before that ...

Regards

Sent from my x-phone using brain 2.0
[Android Apps and Games] loparaan:
Hi, I am using Tasker with Moto X Play, and does not work. The same task in a Moto G (2013), works perfectly.
[Android Apps and Games] daniu:
Hi

Just for reference: updated my Rom - problem gone ...

Regards

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

One more point to this: the problem came up again. This time I solved it by: opening the app, killing it with long press back button (developer setting). After that it worked again.

Is it possible that the app performs some test when started first time which are not repeated afterwards? Means: if the process failed once it will fail until the app is killed by task management or manually ...

Regards

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

I'm running CM13 on an LG G4 intl. My SELinux status was strict, so this app didn't work for me.

But I've found a way to change the SELinux status to permissive (at least on my device and setup).

After setting the SELinux Status to permissive Toggle Data worked again.

Just check this thread and have a try yourself

Cheers!

P.S.: Thanks OP for this app :good:
[Android Apps and Games] sanghaviraj:
Does this toggle,2g to lte and others
[Android Apps and Games] cygery:
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)
[Android Apps and Games] voidzero:
I'm also getting the 'service not found' problem on my HTC One M7 with CM 12.1. It's odd because /system/bin/service does exist, and with selinux set to permissive the problem persists. What to do, what to do?
[Android Apps and Games] daniu:
Hi

Did you kill the app after setting your phone to permissive mode? Once the toggle was used while selinux=enforcing and thus did not work you have to manually kill the app - otherwise it won't work anymore.

Regards

Sent from my x-phone using brain 2.0
[Android Apps and Games] voidzero:
Yes. Even tried to clear the data. The issue appears to persist.
[Android Apps and Games] voidzero:
Problem solved. I just tried the same thing again, and it worked this time. Thank you. [emoji16]
[Android Apps and Games] fakeangel90:
It is working very well on my HTC Desire 820 (htc_a51ul) with stock ROM and rooted (latest SuperSU installed). I also use it as a locale plugin in Llama and it is working as expected too.

Installed SuperSU vers. 2.65

Android vers. 6.0.1

Toggle Data 5.0 vers. 1.5.4.0

In the end, what can i say: Good job! and i will give you a beer!