yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] Komanche:
Not working for tasker, 6.0 without root. Blackview BV7000 Pro
[Android Apps and Games] matssa:
Hey guys, I'm using this app on my OnePlus3 using OOS Beta (Open Beta 18) and it seems it doesn't work anymore with Tasker. It was before using LAOS (latest version).

The tasker version is 1.7.2.0-2

It seems that all the app is hanging, it doesn't change when launching the app after launching the tasker profile. I don't see as well the root message. I'm using Magisk 13 beta (96f8efc), dunno if this is why it doesn't work.

[MENTION=5253144]cygery[/MENTION], adb log is only necessary or do you need something else?

When opening the app, it get's the root stuff directly, but not when using switch on in tasker.

Thanks!

EDIT/// Attached a logcat.
[Android Apps and Games] twe90kid:
Crashes when uses Tasker with Samsung s8+ that has dual Sim. The automated on and off option would make Tasker freeze then force close. Correct Sim has been selected. Can you fix?
[Android Apps and Games] gege0202:
hello ver:1720 don't work on galaxy s8 dual sim. i use it on s7 edge single sim, it works
[Android Apps and Games] twe90kid:
How do we get attention from the dev?
[Android Apps and Games] IronTechmonkey:
We provide helpful bug reports with details and logs then wait, keeping in mind a few things:

- Development thread such as this are primarily focused on bug reporting, as opposed to tech support.

- We've not paid for this, and the developers don't get paid for this and do this in their spare time amidst leading a life.

- Each developer may have a different level of presence and availability.

This article in the XDA Wiki describes these expectations as well as how to best communicate about issues: https://xdaforums.com/wiki/Reporting_A_Problem_-_Android
[Android Apps and Games] reddevil08:
[MENTION=5253144]cygery[/MENTION]

I have the same issue on OSS Beta 10 for OnePlus 3T. It started after I upgraded to the latest magisk 13.1 .. It was working normally on Magisk 12.
[Android Apps and Games] New Android Enthusiast:
S5 running Lineage 14.1. Doesn't work.

No shortcut. Widget there but I can't add to status bar I.e. it's a widget.

Next... Turn it on, no mob data. Check mobile data... Its off, but the widget has mob data on. Going back to rooted stock sumsung. Tired of Nova and Nougat custom. What a waste of time. Most of us would pay for a working custom ROM
[Android Apps and Games] Hollilightman:
I have the same issue on HTC M10 Viper-ROM with latest magisk 13.3 / Tasker V5.0.

Widget is okay, but with Tasker not.:(
[Android Apps and Games] MoHed:
"1+3T OB15 M14" working

Thank you cygery,

OnePlus 3T OB15 rooted with Magisc 14 works both as a widget and with an automatic (time-based) tasker script to automatically switch off mobile data at night and reconnect in the morning.

PS:

I tried first calling the plugin directly from Tasker > Unreliable, FC.

Then I tried calling the plugin through the "Secure Settings" APK and it worked flawlessly. This may work on other devices as long as the desktop widget of Toggle data works.

Hope this info helps somebody...

Detailed instructions:

Put a Toggle shortcut on desktop.

Install the "Secure Settings" APK from the Market and give it root permissions.

From Tasker + add action > plugins > "Secure Settings" >Tap the Configuration icon > Actions > execute shortcut > choose your desktop shortcut.
[Android Apps and Games] alx_x6:
To the author:

Send MaxSecure a request to remove XDA latest version of Toggle Data 5.0 (v1.7.2.0) from malware list, because it flags the app as an "Android.Mycellspy.a" malware. It surely is a false positive, but yet the app remains flagged.
[Android Apps and Games] cygery:
I've uploaded a new version (1.2.2.0) which includes just some small fixes and improvements under the hood.
[Android Apps and Games] cygery:
I've created a couple of new threads for my new widgets/apps:

Toggle Data 5.0 (this thread) - free full version (xda-exclusive)

Toggle Airplane 5.0 - free limited version (xda-exclusive)

Toggle Cell Radio 5.0 - free limited version (xda-exclusive)

Change Operator Name - support thread only (no free version)

Toggle Network Type 5.0 - free full version (xda-exclusive)

If you test these apps, please give me feedback. If you have a minute please rate the threads and if you think the other widgets/apps are about as useful as this one please suggest it for the xda portal. Thanks!
[Android Apps and Games] cygery:
There you go :)
[Android Apps and Games] kenkiller:
Thanks so much....have replied on the respective thread.
[Android Apps and Games] cygery:
And here's another update (1.3.2.0) which adds support for Android 2.2+.

I'm unable to test on Android versions older than 4.3, however, this app uses the same method to toggle data on Android 2.2-4.4 so it should work. Please test it and give feedback, I'll try to fix any issues!
[Android Apps and Games] minimega:
Widgetsoid compatibility

Working fine on Nexus 4 upgraded to Lollipop just tomorrow.

How can I start your tool using a Widgetsoid command task (I've to insert the command line, Widgetsoid will execute [su -c <command_line>]).

Thanks a lot!
[Android Apps and Games] cygery:
This app can't be started via the command line. Does Widgetsoid support app shortcuts?
[Android Apps and Games] ruslan911:
question

Hi.

There is an opportunity to make a widget on inclusions/switching off

[IMG="Lolipop"]http://dl-1.va.us.xda-developers.com/3/0/2/3/7/6/9/Screenshot_2014-11-19-13-49-17.png?key=MONWSEjlMwyb2Sx5viF6Mw&ts=1416424506[/IMG]
[Android Apps and Games] cygery:
I guess that's the "Restrict background data" option?
[Android Apps and Games] mali mrav:
Works great on Nexus 4 AOSP Lollipop.

Any hint on application that can use this to auto disconnect like 3g watchdog did on previous version of android?
[Android Apps and Games] cygery:
Unfortunately, I don't know any of such apps. Maybe someone else reading this thread can help you there. Anyway, the Locale/Tasker plugin could be used for this by other apps, too.
[Android Apps and Games] ruslan911:
Yes :)
[Android Apps and Games] cygery:
OK, I'm working on it.
[Android Apps and Games] minimega:
Sure, it does! I'm been able to add a new button to the tool wich is linked to "Toggle Data 5.0".

Original 3G toggle button shows the current state of 3G connection, while pressing the shortcut button will toggle 3G using "Taggle Data 5.0".

This is a workaround, however. Best will be to add a "custom action" in Widgetsoid 3G data toggle button to let user insert a command line, using external tool to toggle 3G connection (if Widgetsoid developer won't upgrade app to Lollipop).
[Android Apps and Games] cygery:
Does it support Locale/Tasker plugins? If not, you might want to suggest it to the developer. Should be possible to implement this in a day.
[Android Apps and Games] trepamuros:
Will it be possible without root?

Never?
[Android Apps and Games] romangs:
Frequent root permission request

cygery, first of all, thank you very much for the Toggle Data 5 app. It works great on Nexus 5 Lollipop stock ROM.

However, I’ve noticed that Toggle Data 5 requests root permissions very often. Even when I am not touching wireless settings and even when the screen is off. I can supply SuperSU logs if needed.

My question is why the app requests root so often and what does it do?
[Android Apps and Games] cygery:
Highly unlikely. Either there'd have to be a serious bug in Android or Google would have to decide to allow other apps to change this setting. In the first case the bug would be fixed after a while. I don't expect the second case to happen.
[Android Apps and Games] cygery:
The app checks the mobile data setting whenever a connectivity change occurs and every 15min. Checking the setting requires root.

Also, don't worry about battery impact. On the one hand, periodical checks only occur when the device is active (screen on), on the other hand these checks itself have negligible battery impact.
[Android Apps and Games] romangs:
Thank you for your quick reply. Initially I thought that the app was 'passive' widget. i.e. active only when pressed. I guess you need to track the setting changes made using other means.

I'll just disable SuperSU notification and logging for this up. Thanks again for the app.
[Android Apps and Games] cygery:
Here's a new widget for this: http://xdaforums.com/android/apps-games/widget-toggle-background-data-5-0xda-t2947813

Again, there's an xda-exclusive free version (widget only) and a full paid version on Google Play.

Please give me feedback, especially regarding the new more Material-like design. I'll update the other widgets over the next couple of days with this design, too.
[Android Apps and Games] ruslan911:
The program works fine :)
[Android Apps and Games] ruslan911:
Sorry, the subsequent testing found errors

[IMG="error1"]http://xdaforums.com/attachment.php?attachmentid=3025895&stc=1&d=1416541969[/IMG]

Exhibited at blocking PlayMarket, but when the widget is blocked all traffic in all programs

[IMG="error2"]http://xdaforums.com/attachment.php?attachmentid=3025896&stc=1&d=1416541969[/IMG]
[Android Apps and Games] cygery:
Please post on the other thread for issues regarding "Toggle Background Data 5.0". Also, please describe your issue in more detail and roughly translate important parts of the screenshot, e.g., the text the arrow points at.

Edit: If I understand you correctly you want to set per-app blocking which is only active if the global blocking is active, too. That's not possible. Global blocking will always restrict background data for all apps, regardless of per-app settings. Those per-app settings are only meaningful if global blocking is disabled.
[Android Apps and Games] maxpayn02:
Works great but that warning message about external access made me suspicious

Thank you
[Android Apps and Games] cygery:
It's just a warning. I wouldn't want an app which I trust root rights to do root actions controlled by other apps without knowing it. Thus, I've added it.
[Android Apps and Games] ruslan911:
dear cygery,

After a screen unblocking constantly there is a popup window about providing the rights to the appendix, other third-party programs show such window only when loading the android.
[Android Apps and Games] cygery:
If you're using SuperSU you can disable it via SuperSU's settings. I don't know about other root management apps.

Anyway, this widget is almost completely passive. Thus, it asks for root permissions whenever it needs to update its status. Other apps might ask one per boot but stay active all the time instead.
[Android Apps and Games] boondoc:
working on nexus 6.
[Android Apps and Games] cygery:
Here's another update (1.4.0.0).

I've changed the design to mimic the Material-like power control widget of Android. Additionally, there are now more options for custom images. You can set a custom image for the whole widget, just a custom icon or fill the whole widget with a customizable color.
[Android Apps and Games] cygery:
To everyone who bought the app on Google Play: Thanks for your support! If you can spare a minute, please consider giving it a review on Google Play - it will help in increasing the app's visibility.
[Android Apps and Games] jacknicholson:
Any chance you'd consider an option to disable the periodic background checks (particularly for those of us solely using this as a Tasker plugin)? I've been kind of obsessive about monitoring my SuperSU logs, and things'll get cluttered pretty fast with a couple new entries every fifteen minutes.

That said, I completely understand if you'd rather keep them in place, and thank you wholeheartedly for helping me rebuild my beloved Tasker profiles. And congratulations for hitting a milestone of sorts, in these early days of Lollipop development.
[Android Apps and Games] cygery:
Maybe in future. If you're just annoyed by the logs, feel free to deactivate them individually per app in SuperSU (click on the app in the app list and change the logging setting there).
[Android Apps and Games] O2Blevel:
Works fine on LG Optimus Slider (Gingerbread 2.3.4)
[Android Apps and Games] AndroidPaul:
The latest version 1.4.2.0 doesn't work for me.

After I installed it, I can't open the app and when I click on the widget nothing happens. Also it is not shown in Tasker as a plugin.

1.4.1.0 works fine on LG G3 (D855) Android 5.0
[Android Apps and Games] cygery:
I'm unable to reproduce this. Please try to uninstall the app, download it again (in case of transmission errors) and install it again. Do you have only the version from this thread installed?
[Android Apps and Games] AndroidPaul:
I did reinstall it and again the same "bug".

And it's also strange, that I can't click "delete data" because... there is no data. 0,00mb! Just 12kb in cache but I think it is on every app.

Don't know what's wrong, but I'm fine with 1.4.1.0
[Android Apps and Games] cygery:
Is anybody else experiencing this?

Again, do you have only the version from this thread installed?
[Android Apps and Games] AndroidPaul:
Oh, sorry

Yes, I only installed the version from this thread
[Android Apps and Games] jacknicholson:
Until other xda version users chime in, I can at least confirm that the Play Store version (v1.4.2.0) has been working perfectly on my end.
[Android Apps and Games] freshlysqueezed:
XDA v1.4.2.0 is working fine for me. Nexus 5, lollipop.
[Android Apps and Games] MarkusMcNugen:
The latest version works on the LG G2 for both CM12 and Liquid Smooth lollipop roms.
[Android Apps and Games] Pineappleman3001:
The app is working great on my Nexus 5! I'm using it with tasker! ?
[Android Apps and Games] albert_htc:
Has anyone else found enabling data on lollipop is slower than on KitKat ?

Not a criticism of this app, just something I've noticed .

Sent from my Nexus 7 (2013) KitKat 4.4.4
[Android Apps and Games] Armstrong Dicksmasher:
Since tasker seems to be bit wonky in lollipop I had to change some of my profiles.

With 4.4 I made a profile which turn on my data every 30 minutes for 3 minutes. I would like to use the similar thing with this plugin.

I'm hoping someone can help me to create a new profile with this plugin.
[Android Apps and Games] jacknicholson:
Presuming that's all your profile's doing, just swap your current data actions with those from this app.
[Android Apps and Games] Armstrong Dicksmasher:
Well your simple solution did work.

Thanks.
[Android Apps and Games] marks7389:
Icon does not update on my Nexus 5

The app seems to work for me in that it does switch the data on and off.

However the icon does not update to reflect whether it is on or off. This is true of both the latest free and paid versions, even if I try selecting different custom colours for each state.

Any ideas?
[Android Apps and Games] arbrib86:
Works ok in my htc one s with CM 12.
[Android Apps and Games] cygery:
I'm unable to reproduce this. Which device, Android version and ROM are you using? Does it work with the default icons? Do you toggle data via the widget or the system settings? In the latter case, it can take up to 15min until the widget reflects the changed state.
[Android Apps and Games] marks7389:
Standard Nexus 5 5.0 install, upgraded from 4.4.4 with the OTA update. It is rooted using CF-Auto-Root, with latest SuperSU and binary installed.

I am updating the status using the widget. Even with the default icon setup the icons show the data enabled state whether data is enabled or not. Customising the icons seems to have no effect at all.
[Android Apps and Games] cygery:
Please try to remove the app from SuperSU's whitelist and then toggle data again. Make sure that the SuperSU prompt to grant root right to it is shown and you grant the rights.

Changing the widget icon/background requires two steps: 1. You have to select the custom icon/color. 2. In each state page you have to open "Choose type" at the top and select which icon to use (either default, custom image, custom icon (only) or custom color).
[Android Apps and Games] marks7389:
I've done that but the behaviour remains unchanged. The icons still don't reflect the current status.

Also done but I still see only the default icon reflecting the data enabled state, whether or not it is.

---------- Post added at 01:26 PM ---------- Previous post was at 01:13 PM ----------

Problem solved. I seem to have two widgets.

One has a rounded widget that looks similar to the app icon and has switch on/off/toggle text underneath. That doesn't update, however I also have a square widget which doesn't have text underneath and that does update.
[Android Apps and Games] cygery:
Good! The first one is a shortcut. Shortcuts have a static icon and action. You can select the action for this app's shortcut when you add it to your homescreen.
[Android Apps and Games] ji_llona:
It works perfectly. :)

Nexus 4, stock lollipop, toggle from llama.
[Android Apps and Games] Cyberwuulf:
It worked on my rooted Motorola Moto G LTE with Stock ROM 4.4.4
[Android Apps and Games] stevospinks:
Works well for me!

Nexus 4 with stock Lollipop, via Tasker.

One minor annoyance is that it asks for root a lot - is this necessary for functionality?

Thanks for your work!
[Android Apps and Games] cygery:
The widget/app is passive so it can't request root just once and keep access to it active all the time but must ask for it everytime it updates itself. You can disable notification/logging per-app via SuperSU if it annoys you.
[Android Apps and Games] Azharb17:
Verified working on S4 Mini running unofficial CM12 by [MENTION=3261191]F4k[/MENTION]. Thanks :)
[Android Apps and Games] optimummind:
Working fine on my Sprint Galaxy S4.

Sent from my SPH-L720
[Android Apps and Games] bigknowz:
Had to uninstall

Installed the app on N5 Stock LRX21O ROM + Code Blue Kernel that was already having battery issues with Google Play Services and Search, so I didn't attribute anything to the app. Flashed rastapop + Code Blue on Saturday and all was well, idle drain < 1% per hour. After noticing Tasker errors this morning, realized I forgot to reinstall Toggle Data. Idle drain jumped to > 2% per hour. Uninstalled a few hours ago and still > 2% per hour drain. Rebooted an hour ago and 0% drain since. Has anyone else noticed any issues?
[Android Apps and Games] cygery:
No issues here, I've <0.5% battery usage per hour on my Nexus 5 (stock 5.0), mostly standby. Did you try BetterBatteryStats to find the cause?
[Android Apps and Games] bigknowz:
Android System

Drain shows up as Android System and systemui, otherwise it looks like the phone is sleeping well. Could just be my phone, who knows. Thanks for the quick reply.
[Android Apps and Games] bigknowz:
Think it was NFC

Think I figured out the problem, likely unrelated to the app. Had NFC on by mistake and kept phone next to my tablet at night. NFC chip was probably trying to do a transfer all night, killing battery.
[Android Apps and Games] cygery:
I've uploaded a small update which adds support for Locale/Tasker conditions (is mobile data enabled). Other than that, there are just minor improvements.
[Android Apps and Games] natezire71:
edit: i'm not a clever man.
[Android Apps and Games] Copkiller2010:
Works perfect with Galaxy Note 1 (N7000) with SlimKat 4.4.4. =)
[Android Apps and Games] kecinzer:
Does this application uses some extra permission?

I have CM12 ROM with selinux enforcing and I can normaly allows superuser for it, but when I enable extrernal access it fails on SU.
[Android Apps and Games] cygery:
Which error is shown? The only permissions besides superuser are read access for the external storage and access to the network state. Which superuser app and version are you using?
[Android Apps and Games] kecinzer:
I'm using this - https://github.com/temasek/Superuser

Here is logcat when I turn of and on external access - http://pastebin.com/1mMy6qFG

I have sepolicy on enforcing.

Here is screenshot - https://lh4.googleusercontent.com/-...92-h875-no/Screenshot_2014-12-15-12-06-40.png

Here is superuser UI - https://lh5.googleusercontent.com/-...92-h875-no/Screenshot_2014-12-15-12-06-04.png

BTW. If I set sepolicy to "permissive" it works.

So thats reasong why I asked about special access.
[Android Apps and Games] cygery:
Interesting, does the widget work when external access is disabled but SELinux is set to enforcing? Generally, when SELinux is set to enforcing it likely doesn't work with other superuser apps than SuperSU at this time.
[Android Apps and Games] kecinzer:
No, it doesn't work.

But all other apps that needs root access works fine - FKU, Flashify, Titanium Backup etc.
[Android Apps and Games] cygery:
Thanks, I'll make this clear in the app description. When SELinux is set to enforcing, this app has to change to a specific SELinux context (at least on Lollipop). However, currently only SuperSU supports such context changes.
[Android Apps and Games] kecinzer:
If you can write me that context, I can add it on sepolicy for my ROM (https://github.com/cmke/android_vendor_cm/blob/sm-5.0/sepolicy/su.te#L46) (I'm compiling from source).
[Android Apps and Games] cygery:
I don't know much about SELinux and if this helps you. The context I use is "u:r:system_app:s0". In SuperSU, the used context can be set via the -cn/--context parameter.
[Android Apps and Games] wolfnumba1:
Seems to not work in Android 5.0.1
[Android Apps and Games] cygery:
Which device and ROM are you using? Is there an error shown?
[Android Apps and Games] anishmohandas:
I confirm that... It doesn't seem to work on 5.0.1... Stock rooted superSU 2.37. Just pops up 'error -3 can't toggle data is your device rooted' Dont see any logs in logcat... Or any details in SuperSU app even after enabling logging to full

---------- Post added at 11:49 PM ---------- Previous post was at 11:38 PM ----------

build.board: MAKO

build.bootloader: MAKOZ30f

build.brand: google

build.cpu_abi: armeabi-v7a

build.cpu_abi2: armeabi

build.device: mako

build.display: LRX22C

build.fingerprint: google/occam/mako:5.0.1/LRX22C/1602158:user/release-keys

build.hardware: mako

build.host: wpee26.hot.corp.google.com

build.id: LRX22C

build.manufacturer: LGE

build.model: Nexus 4

build.product: occam

build.radio: unknown

build.serial: 02536db91d8e09eb

build.tags: release-keys

build.time: 1416528659000

build.type: user

build.user: android-build

version.codename: REL

version.incremental: 1602158

version.release: 5.0.1

version.sdk_int: 21

12-15 23:22:23.078 I/ActivityManager(567): Killing 3137:com.cygery.togglenetworktype.xda/u0a115 (adj 15): empty #17

12-15 23:22:51.320 I/ActivityManager(567): Start proc com.cygery.togglenetworktype.xda for broadcast com.cygery.togglenetworktype.xda/com.cygery.togglenetworktype.FireReceiver: pid=6477 uid=10115 gids={50115, 9997, 1028} abi=armeabi-v7a

12-15 23:33:09.327 I/ActivityManager(567): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.cygery.toggledata.xda/com.cygery.toggledata.MainActivity bnds=[384,640][384,640]} from uid 10103 on display 0

12-15 23:33:09.759 I/ActivityManager(567): Displayed com.cygery.toggledata.xda/com.cygery.toggledata.MainActivity: +415ms

12-15 23:36:30.372 W/PackageManager(681): Failure retrieving resources for com.cygery.toggledata.xda: Resource ID #0x0

12-15 23:40:45.440 I/ActivityManager(567): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.cygery.toggledata.xda/com.cygery.toggledata.MainActivity bnds=[384,640][384,640]} from uid 10103 on display 0

12-15 23:40:46.191 I/ActivityManager(567): Displayed com.cygery.toggledata.xda/com.cygery.toggledata.MainActivity: +676ms

12-15 23:40:59.897 W/PackageManager(681): Failure retrieving resources for com.cygery.toggledata.xda: Resource ID #0x0

---------- Post added at 11:56 PM ---------- Previous post was at 11:49 PM ----------

Hope it helps
[Android Apps and Games] cygery:
Thanks, I'll investigate this as soon as possible. Hopefully, the factory image for Nexus 5 is released soon.
[Android Apps and Games] wolfnumba1:
Sorry using Nexus 6 stock 5.0.1 with decrypted kernel and latest superSU root.
[Android Apps and Games] TheRejectedRobot:
Im not seeing the Tasker plugin anywhere, Is it still in development?
[Android Apps and Games] wolfnumba1:
Factory images released for nexus 5!!!