I’ve flashed a Samsung Galaxy S4 (i9505) with Cyanogenmod with YOG7DAO1JN snapshot (cm-12.1-20151117-SNAPSHOT-YOG7DAO1JN-jfltexx.zip).
On my previuos phone (a Galaxy Nexus with Cyanogenmod 11) i used to have Tasker to toggle mobile data on/off for a couple of minutes every hour.
Guess what? I can’t do it on Android Lollipop (lol?).
There’s an easy trick to do it anyway…
First, enable the Developer Options. Just go on Settings, About phone and press seven times the Build number.
After that you will have the Developer options in the Settings menu. Go in it and enable the Root access (Apps and ADB).
Now, if you want to turn on mobile data with Tasker you will have to use a script.
On your task edit click +, then Script, then Run Shell and on the Command line write: svc data enable.
To disable it the command is…. svc data disable! Yeah!
Remember to check that the script is executed by root.
There you go.
If you’re not familiar with Tasker learn to use it, it’s amazing!