yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] kecinzer:
I still don't understeand why tasker need to know what's current data status. When I call my task, there is few action that are executed. In that phase data toggle can request data status.

Can you please explain to me little deeper? :)
[Android Apps and Games] cygery:
Sure. The Locale/Tasker plugin consists of two parts: 1. The action plugin which you're using to toggle mobile data on and off and 2. The condition plugin which you can use, e.g., in a Tasker profile, to launch a task depending on the current mobile data state.
[Android Apps and Games] kecinzer:
Ok, well, I'm using only action plugin, not condition one :).
[Android Apps and Games] RollerK:
Dear [MENTION=5253144]cygery[/MENTION] ,

As I mentioned before, your app is not working with official CM12 rom's internal SU.. Could you please try it to make working with?

If I use SuperSU, it is working, but when I upgrade to a new build of the rom, the toggle is not working, and I have install it again..

I really appreciate your work!

Thanks!
[Android Apps and Games] cygery:
There's nothing I can do about this. When SELinux is set to enforcing this app has to change to a non-default context and at this time only SuperSU supports a suitable context parameter.
[Android Apps and Games] cygery:
I've added a poll to this thread. Please vote so I can get an idea which parts/features are used mostly.
[Android Apps and Games] bpaulien:
Almost exclusively with tasker plugin. Very rarely use the shortcut. Only used the widget once, just to see how it worked.
[Android Apps and Games] mGforCe:
Thanks for this app... I tried on Moto G 2014 with Kitkat and using as widget.

With external access disabled, pressing on Widget doesn't toggle. But when I enable external access, it work well.

Is something wrong here?
[Android Apps and Games] cygery:
Can you post a screenshot? I'd guess you're using the shortcut instead of the widget.
[Android Apps and Games] mGforCe:
Here you go..
[Android Apps and Games] cygery:
Yes, that's the shortcut. When you add a widget/shortcut to your homescreen the Toggle Data 5.0 widget should be directly before the shortcut in the list.
[Android Apps and Games] froma72:
Works fine here on sony xperia t with unofficial cm12.

:good:
[Android Apps and Games] wechstef:
I just try using shell command and it works very well on CM12 :

# svc data disable
# svc data enable
[Android Apps and Games] dopy25:
Working on LG Optimus G from Sprint (ls970)

Using toggle works fine, shortcut works (takes you to app and shuts off data) when "external access" is enabled.

Thanks for the work you did on this.
[Android Apps and Games] devilozzo:
Ok with LG 4X :good:
[Android Apps and Games] MIB_91:
Does not work for some reason on the LG Optimus G LS-970 Sprint firmware on CM12.
[Android Apps and Games] cygery:
Did you try SuperSU?
[Android Apps and Games] Dhgr8:
Works on Xperia P with CM12. Thanks! ;)
[Android Apps and Games] ichiaido:
works on Nvidia Shield Tablet! Thanks!
[Android Apps and Games] Katzzer:
Works on Galaxy S4, great work :)
[Android Apps and Games] DeviceGuru:
Works well on Nexus 5

I installed the app on my Nexus 5 and it works perfectly. I wanted to improve the contrast of the on/off state icons, so I created variants of the standard widget images that are much easier to distinguish, especially in bright lighting conditions, such as outdoors.

The icons I created are attached in case anyone wants to use them (via the app's "custom image" setting options). I also included screenshots showing how it appears on the Nexus 5.
[Android Apps and Games] RustedRoot:
Works on LG G3 (ls990-Sprint) running Dirty Unicorn's Lollipop ROM (5.0.2) using latest version of this apk, v1.5.1.0. Huge battery saver since I'm in a marginal location for mobile data. Well done Cygery
[Android Apps and Games] Neralun:
Works with Nexus 7 (old)

I use it with Tasker on a Nexus 7 (non-2013) on original 5.0.2.

No problems, works fine so far. Thanks a lot :)
[Android Apps and Games] gege0202:
:good:works well on galaxy s5 duos 900FD:good:
[Android Apps and Games] muirnin:
Nexus 4 Lollpop rooted.

I get the widget, and it works, but no app icon, no tasker integration.
[Android Apps and Games] cygery:
You can find the app in Tasker in the "plugin" action section. What exactly do you mean with "no app icon"? Do you have the latest version (1.5.1.0) installed?
[Android Apps and Games] muirnin:
I mean it's not in Tasker's plugin section, and it has no app icon in the drawer so there is no way to change its settings - there is only the widget, which works fine.
[Android Apps and Games] cygery:
Looks like you have an old version installed. Install version 1.5.1.0 and try again.
[Android Apps and Games] acorradi:
Dont Work on Moto G XT033

It did not work correctly on the Moto G 2013 (XT033 - Falcon). Tested via widget and also via Tasker. What happened was that when trying to toggle OFF the connection the 3G symbol disappears and also turn to off on Android configuration. However, the network is not disconnected because I can access Internet (of course with Wi-Fi off). I also tested with the secure settings plug-in and the behavior was the same.

Moto G - XT033 - Falcon

lollipop 5:02

Root - SuperSU

ToggleData 1.5.1.0
[Android Apps and Games] cygery:
As you say the mobile data setting was successfully disabled. How did you check/confirm that you can still access the Internet? Did you refresh a webpage which was already opened in your browser? I guess that you received a cached result. Try to open a search website and search for something.

Also, are you using two SIM cards?
[Android Apps and Games] acorradi:
As you say the mobile data setting was successfully disabled.

Correct

How did you check/confirm that you can still access the Internet? Did you refresh a webpage which was already opened in your browser? I guess that you received a cached result. Try to open a search website and search for something.

Exactly what I did, a search on google. Also synchronized any items of google account.

Also, are you using two SIM cards?

Yes. For the data connection i am testing with the second sim card.

thanks a lot.
[Android Apps and Games] cygery:
OK, is this an official ROM or which one? Did you test with only a single SIM card inserted? I've no test device with dual-SIM. Additionally, I'm not aware of any method to control the mobile data state for a specific SIM card so I can't tell if the method I use (and as far as I can tell also Android internally uses) affects all SIM cards or only a single one.
[Android Apps and Games] acorradi:
OK, is this an official ROM or which one?

Yes.

Did you test with only a single SIM card inserted?

I realized a new test with the sim card 1 and it worked perfectly. The secure settings plug-in also works in this way. Thank you for your help.
[Android Apps and Games] Rodrows:
Hello! Thanks for sharing your work, I really needed to get my sync tasker profile up and running again after updating.

...but sadly, I still cannot get it to work properly with it.

The task is set up like this:

It triggers on Display Off event

Wait 5 seconds
Toggle Data 5.0 ON (if %BATT > 33)
Wait 30 seconds
Toggle Data 5.0 OFF (if %BATT > 32)
Wait 9 minutes & 30 seconds
Go to action #2

In KK I had the regular Secure Settings command to switch mobile data on/off and it all worked fine, but now with your app I get a "Maximum tasker queue size reached, ignoring all new tasks" message very very often, and I have to increase the queue size to 100 (the maximum allowed) just so it can work sometimes. All my other profiles work flawlessly as they were in KK (when the clogged queue allows them to, anyway) and I haven't changed a thing from them, so the only cause for this seems to be your app.

Any ideas on how to fix this?
[Android Apps and Games] cygery:
No, anyone else experiencing this? I'll check if I can find something.
[Android Apps and Games] cygery:
I'm unable to reproduce this. Check your profile/tasks settings. Make sure that multiple instances of this task don't run in parallel (which is the most likely cause of your issue as far as I can tell).

Edit: Are you using the display off "state" or "event" for your profile?
[Android Apps and Games] Rodrows:
Event, with the trophy icon next to it. It is the one and only trigger to the sync task.
[Android Apps and Games] cygery:
Which collision handling have you set for your task?
[Android Apps and Games] Rodrows:
Run both together. Dammit.

I didn't even know this was an option you could select, I just create new profiles, create the tasks, create the steps and run with it. I have no idea how this option was different, as the other 9 tasks I use are all set to "abort new task".

I suspect this will take care of the problem. Thank you!

EDIT: Nevermind that, the too many tasks running message keeps popping up. What the hell.
[Android Apps and Games] cygery:
Did you reboot your device after changing the collision setting?
[Android Apps and Games] Rodrows:
Yeah. Saved & exited, rebooted, all that. Still no dice. I honestly don't understand.

I have swapped the Toggle Data 5.0 command for a WiFi action instead, which will suffice for now until I figure it out. If I find the solution I will report back.
[Android Apps and Games] cygery:
OK, thanks. By the way, did you try LeanDroid?
[Android Apps and Games] ICuaI:
just for your information (maybe you want to update your list). It works on Moto X 1st Gen (2013)
[Android Apps and Games] nmx87:
thanks, worked on Galaxy W i8150
[Android Apps and Games] :
I'm on the galaxy s5 lollipop MOAR ROM for Verizon and the widget for this app works like a charm but in tasked when I activate the task (with external access enabled) nothing happens... Any fixes?
[Android Apps and Games] cygery:
Looks like an issue at your end. Please check your Tasker task and su logs.
[Android Apps and Games] :
Well in super su tasked hasn't been granted any permissions, like its not logged there. When I run the task, nothing happens of course but I know it's setup right. any idea how to get permission recognized for tasker?

Edit: I was able to get tasked root permission and that is working good too. However when I ran the task again it did nothing again :(
[Android Apps and Games] cygery:
When using this app's Locale/Tasker plugin the automation tool, e.g., Tasker, doesn't need root rights to execute an action of the plugin. Please check if any su request of this app is logged when you try to execute it via Tasker. Also, which action have you chosen (switch on/off or toggle)?
[Android Apps and Games] :
No log is recorded, after I test a task, no log in su comes up. And I have tried every action and nothing happens

Although the widget does work so idk why tasker isn't working right. And i have the latest version of tasker
[Android Apps and Games] cygery:
Which version of this app are you using? From here or Google Play?

If anybody else experiences such an issue please post.

Please try to add the shortcut to your home screen and try toggling data using it. Usually, the shortcut appears next to the widget in the widget list.
[Android Apps and Games] :
Edit: my tasker app was restored via TiBu and the play store. So I just reinstalled it from the play store and it works perfectly! Thanks!
[Android Apps and Games] evanr3:
Lollipop 5.1

I am having an issue after upgrading this morning to Lollipop 5.1. I can toggle data off with the widget but it does not toggle data on for some reason. Tried uninstalling and reinstalling, but have the same issue.
[Android Apps and Games] cygery:
Thanks for your report. I'm looking into this and will post again once I find out something.
[Android Apps and Games] cygery:
Issue found, I'm working on a fix and will release it asap.
[Android Apps and Games] cygery:
Fix is uploaded. Please test and report if it works or not. Please note: On Multi-SIM devices (running Android 5.1) this app likely only toggles mobile data for the first SIM card.
[Android Apps and Games] evanr3:
Works perfectly, thanks so much, great app.
[Android Apps and Games] tha_lord:
Good job cygery

Thanks for that fix, works #1 !
[Android Apps and Games] Tarcis:
Indeed works now! Thanks! FYI despite it working the widget is not changing color (to show on or off state). Is it just me?

Thank you so much for the great app
[Android Apps and Games] donmargarito:
Awesome! it works perfectly :D

I appreciate this app soooo much!
[Android Apps and Games] cygery:
Please upload a screenshot. Most likely you're using the shortcut instead of the widget.
[Android Apps and Games] Tarcis:
I recorded a video to make it easy to see
[Android Apps and Games] cygery:
Yes, that's the shortcut. You can find the widget next to it in the widget list (see the screenshots in the first post, they show the widget). Also, you should update the app.
[Android Apps and Games] Tarcis:
Thank you so much for the live support, Im pretty sure I added the widget though.

I recorded me adding the widget again, see vid.
[Android Apps and Games] cygery:
That's the shortcut. Please see the screenshots in the first post to see the difference. Also, the widget has no text at the bottom.

Which version of this app are you using now?
[Android Apps and Games] Tarcis:
Weird, I downloaded the latest version 1.5.2.0 on my Nexus 5 with lollipop 5.1, I see the screenshot is diferent but if that´s not the way to add a widget Im lost, I hadthe previous version added like that, and it worked. I´ll poke around and let you know. Thank you so much.
[Android Apps and Games] cygery:
OK, I'm able to reproduce this. After a reboot the widget showed up in the list. I don't know what causes this issue, might be a problem with caches or a bug in the launcher.

Edit: Force stopping Google App also works, however, I'm not aware if it has undesired side effects.
[Android Apps and Games] Tarcis:
Youuuuu´ve Got it!!

After the reboot I see two icons to add, one with the text same as I´ve been trying to add (the shortcut) and the actual widget that should´ve been there in the first place.

All well now. \o/
[Android Apps and Games] dinilmohan:
Not working on a rooted Note 2 running on CM12

When I click on the widget it says " Can't toggle mobile data. Is your device rooted? Error 1

Went into developer options and gave root access to Apps and ADB.

Any idea why? :crying:
[Android Apps and Games] cygery:
Custom ROM? Superuser? SELinux? Read the first post?
[Android Apps and Games] dinilmohan:
Did not notice that line in the first post. Working now. :good: Thanks for the reply. Wish the widget would indicate a on/off state. In my case the widget icon is static.
[Android Apps and Games] rootcid:
Good job mate! Been using a hack of my own for this but its nice to see a development.

Word of advice - you should make a free version with 10 clicks for testing purposes. Trust me, itll be better than posting an exclusive free version here. Bumping xda isnt what it used to be lol.

Also you might consider approaching one of the cookers and getting them to build it in for you. For that youll need to add a donate button after 10 clicks in your exclusive free version.
[Android Apps and Games] cygery:
Please search the thread or read the last couple of posts. This should help you to fix your issue. If not, please post again and explain what you already tried.
[Android Apps and Games] cygery:
Thanks for your advice, I'll consider it for future apps :)
[Android Apps and Games] morfances:
Just installed (free version) on custom rom hammerhead !! It works, thanks!!

Too bad I can not resize the widget (too big!!) :(
[Android Apps and Games] cygery:
Is it too small?
[Android Apps and Games] dado70:
But no ahahahah, is too big ... :D

In my opinion it would be the right size as that of the second widget, or as that in the Play Store eh eh eh ;)
[Android Apps and Games] cygery:
Which "second widget"? The widget already is 1x1, you can't get a smaller standard size. Maybe some custom launchers can resize it.
[Android Apps and Games] dado70:
I have the opportunity to choose between two widgets, do not you?
[Android Apps and Games] cygery:
The second one is the shortcut. Compared to the widget, it has a static icon and a configurable action which you can choose when adding it to your homescreen.

Also, you could try to choose custom images (with a transparent border) for the widget. Although this doesn't make it smaller, at least it might look smaller.
[Android Apps and Games] dado70:
yes I saw that there is the possibility to customize it but does not work ... maybe because it is a function with the paid version? [emoji17]

Inviato dal mio bombardino
[Android Apps and Games] cygery:
No, it works with this version, too. Make sure to change the type setting at the top for each state to "custom image".
[Android Apps and Games] dado70:
Yes it works ..... :good:

However it would also the smallest widget .... :p

Apart from all congratulations for the application, great job ... :laugh:
[Android Apps and Games] joekeee:
I'm on a SM-G900F (Galaxy S5) running Lollipop G900FXXU1BOB7 rooted , working perfectly! :D

Using it mostly as a Tasker plugin.

Thanks! :good:
[Android Apps and Games] Djtrip83:
Test on HTC M7 with Custom RPM AR HD 91.1

Hello!

Tested Widget and all works ok. :good:

Still learning how to use Tasker and Plugin so cannot confirm yet :)

Well done! :)
[Android Apps and Games] onukomer:
can i toggle with this app 2g/3g on tasker?

i want;

when screen is off, the mobile data is toggle to 2g and when open screen, mobile data is toggle to 3g.

is it possibly?
[Android Apps and Games] cygery:
No, but you can try my other app: http://xdaforums.com/android/apps-games/widget-toggle-network-type-5-0-xda-t2945406

There are HTC One who report that it doesn't work on their device, though. If you test it, please give me feedback in the other thread.
[Android Apps and Games] onukomer:
ok friend.

i will give to you feedback.

thx
[Android Apps and Games] samsung040641:
installation

hello. I would like to install this widget, but I get when I download a .zip I can not install via recovery .. how do I do .. thank you very much
[Android Apps and Games] cygery:
This app is provided as an apk which you can install via ADB or by downloading it to your device and opening it there. You have to enable the option to install apps from unknown source via the system settings.
[Android Apps and Games] samsung040641:
installation

thank you very much .. I managed it works .... SUPER
[Android Apps and Games] brunolopes446:
Solved. My bad
[Android Apps and Games] cygery:
Please search this thread. Most likely you're using the static shortcut instead of the widget (which is shown in the screenshots in the first post).
[Android Apps and Games] lairdchris:
You can add the Nexus 9 to the working devices.

Working perfectly as Tasker plugin on mine :)
[Android Apps and Games] Bonesezz:
works fine on nexus 5 / 5.1.

But the widget disappears when I click it and appears again when I click at that space where I placed the widget; does anybody else got this problem? This does not affect the functional capability.
[Android Apps and Games] scropion86:
Oneplus One CM12 android 5.0 r2

the widget working very well , but interacting with Tasker

i create a profile to activate the data after i unlock my phone

and the i set a vibrating action first to make sure that profile activated

and after that i set the select Plugin - toggle data 5.0 - from configuration i select switch on

and tested the profile and i only get the vibration and the data didn't switched on also in SU log not showing that toggle data 5.0:confused:
[Android Apps and Games] cygery:
Sounds like you changed the design for a state to a transparent color. Open the app and make sure that the type for each state of the widget design is correct, e.g., default.
[Android Apps and Games] cygery:
External access enabled?
[Android Apps and Games] scropion86:
yes , i already enabled it before i start edit the profile in Tasker

i am new to tasker so may be it's my mistake

if you can provide me with the producers step by step to activate it in tasker (my the steps i show before is wrong)

and thanks for you instant action
[Android Apps and Games] huuho:
I get the info phone not rooted on xperia p. Help me
[Android Apps and Games] cygery:
Rooted?
[Android Apps and Games] cygery:
Is there any message (Toast) shown when you run the Tasker task?
[Android Apps and Games] scropion86:
when tasker execute the activity i see now Toast , but when i enable it Manually using the widget i get toast of SU giving the root access to the widget .

if there is any way to debug it and provide you with more details please let me know.

---------- Post added at 01:49 PM ---------- Previous post was at 01:46 PM ----------

i also tried using the shell script as you described on reddit

http://www.reddit.com/r/tasker/comments/2m6g43/unable_to_toggle_mobile_data_on_android_50/

# svc data disable

# svc data enable

not working also
[Android Apps and Games] huuho:
Im using cm 12 rom, its rooted
[Android Apps and Games] scropion86:
here is a log

you can find below the Log

http://pastebin.com/8KcKJ8Ds

it's a Dummy profile

1-user unlock the phone capture photo and save it to a SD card folder

2- enable data to allow the photo to get Synced to dropbox
[Android Apps and Games] cygery:
Did you read the first post?
[Android Apps and Games] sammmurai:
Great!

Fully working on Nexus 5 with Android Lollipop 5.1.0 (LMY47I)
[Android Apps and Games] scropion86:
here is the Log in that post

http://xdaforums.com/showpost.php?p=59823581&postcount=328
[Android Apps and Games] cygery:
What does the Toast say?
[Android Apps and Games] nisiomorais:
Working fine on my Motorola Moto G 1033 (dual sim) with stock 5.0.2

Very usefull, thanks!
[Android Apps and Games] sammmurai:
Some custom images I'm using ...
[Android Apps and Games] scropion86:
toast not showing when the tasker execute it , however i managed to get Tasker to successful enable and disable data without

the need to use Toggle widget at all.

just using a shell command :D

so i am asking your permission to share it here with users whom are not able to use it with your Widget?
[Android Apps and Games] cygery:
1. You don't need my permission to share your knowledge.

2. I'm pretty sure that there's an issue at your end/configuration. Did you enable external access in Tasker or in this app?
[Android Apps and Games] huuho:
Yes, i have.
[Android Apps and Games] cygery:
Are you using SuperSU?
[Android Apps and Games] scropion86:
on OnePlus One using the widget as plugin for tasker to enable/disable mobile data not working for me

but the widget working very well

1- to enable Mobile data using tasker on Lollipop set you action to Code - Run Shell -use the commands below and check Use root

to enable Mobile Data

setenforce permissive;
svc data enable;
setenforce enforcing

to disable Mobile Data

setenforce permissive;
svc data disable;
setenforce enforcing

2- i enabled external access for both already
[Android Apps and Games] cygery:
I don't know what's wrong then. If you're fine with your solution it's OK, if you want more help getting this app's Locale/Tasker plugin to work please provide screenshots of the app's settings, the Tasker task, and the Tasker plugin action's configuration screen.
[Android Apps and Games] huuho:
Im not user, rom is rooted .
[Android Apps and Games] cygery:
From the OP: "Requirements: On Android 5.0 and later, when SELinux is set to enforcing: a superuser app with support for a SELinux context parameter (-cn). Currently, only SuperSU supports this parameter."
[Android Apps and Games] albert_htc:
Sorry if this has been asked before but why is toggle data 5 always asking for root access even when its not currently in use ?

Thanks
[Android Apps and Games] cygery:
-> OP
[Android Apps and Games] big_kitch:
Hi. I just upgraded my One Plus One to Lollipop Oxygen OS. I wanted to restore the ability to toggle mobile data via Tasker and installed the XDA version of this app. It installed okay but at the end the option to open it is greyed out. The app does not appear in the app drawer nor in the widget list. If I go to the apps in Settings it shows as being installed though. Any ideas? Thanks.