• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Mobile Data Off and Screen Data Off

Hogzfan

Lurker
I am new to Tasker. How do I create a profile that turns mobile data off when the screen is off, and turns data data on to checks for emails every 45 minutes even when screen is off?
 
Welcome to Android Forums.

Is the device root-ed? What version of Android are you using ... restrictions were imposed with 5.1.

... Thom
 
To start ... in Tasker go to Action > Net and select Mobile Data.

If you plan to go this route... a pretty big step ... tell me the phone you are using and I will move this thread to the Root sub-forum dedicated to that phone.

... Thom
 
You said restrictions added in 5.1...
op said 5.0.1

So either op (like me) doesn't have restrictions requiring root to toggle data, or there is a typographical error in those versions?

(just double checking)
 
Last edited:
Which step requires root...Turning data on?

I can toggle data without invoking root in kk....did that change in lollipop?
Yes, due to security upgrades a number of direct access widgets no longer work, not just data.

And for a number of phones various carriers already locked out the feature pre-Lollipop, for the same reason.
 
It was 5.1 for me. Motorola was kind enough to skip 5.0 on my Turbo.

If you go to the referenced location in Tasker it states 5.0.

So ... I know for a fact that 5.1 is restricted and am told by Tasker that 5.0 is also restricted.

... Thom
 
Sorry, I thought I did that earlier. I am using the N910V Note 4 Verizon.
To start ... in Tasker go to Action > Net and select Mobile Data.

If you plan to go this route... a pretty big step ... tell me the phone you are using and I will move this thread to the Root sub-forum dedicated to that phone.

... Thom
 
What is the rest of the setup? I just see the first action.
To start ... in Tasker go to Action > Net and select Mobile Data.

If you plan to go this route... a pretty big step ... tell me the phone you are using and I will move this thread to the Root sub-forum dedicated to that phone.

... Thom
 
That is the action that was restricted starting (apparently) in 5.0. Before then it had options of on and off.

As it stated ... you need to root and obtain that Tasker plug-in. I have done neither.

... Thom
 
Ok, so the only way to do it would be rooting first? However I don't thing my phone has been rooted yet, so then it's a no go huh?
That is the action that was restricted starting (apparently) in 5.0. Before then it had options of on and off.

As it stated ... you need to root and obtain that Tasker plug-in. I have done neither.

... Thom
 
There are two major areas in Android ... root-ed and un-root-ed. The reasons for root-ing are shrinking.

If you choose to root you assume responsibility for your device and probably violate the warranty.

It is your call. The approach to root-ing is different in just about every device.

I need to be un-root-ed and have found that Nova Launcher Prim and Tasker have removed just about all the motivation I have to root.

... Thom
 
You can't turn mobile data on or off anymore using Tasker on Android Lollipop if you have not rooted your device.
This ruined some of my profiles and is HIGHLY annoying!

The best solution I have so far is:
1. Install Data Settings app (https://play.google.com/store/apps/details?id=com.remifayolle.android.datasettings&hl=en). This takes you straight to the screen where you can check or uncheck "Mobile Data". (If you turn data OFF you still have to tap "OK" to the stupid warning about not having data unless you're on WiFi - I haven't found any way around that one...)
2. Create a Task "DataOn" as follows:
1. Test Net, Type "Mobile Data Enabled", store result in %Data
2. If %Data eq no Launch App, App = Data Settings
3. Create a Task "DataOff" as follows:
1. Test Net, Type "Mobile Data Enabled", store result in %Data
2. If %Data eq yes Launch App, App = Data Settings
4. On any task where you want to turn Data ON, replace the "Mobile Data, Turn data on" task with the new "DataOn" task.
5. On any task where you want to turn Data OFF, replace the "Mobile Data, Turn data off" task with the new "DataOff" task.

This is not perfect, but it is a lot better than opening the notifications bar and turning data on or off that way, and it doesn't ask me to do anything if the data setting is already correct for the activated profile.
 
Back
Top Bottom