My device is not rooted, what else can I use to replace airplane mode?
I mainly want to turn data and cell off. Thanks
Airplane mode
Moderator: Martin
Re: Airplane mode
Hi,
Turning mobile data and telephony radio on/off requires root on most newer versions of Android. You could try to use action Control UI to show the quick settings and simulate a click on the setting. Something like this could work:
The names of the buttons are highly device and language specific so you probably have to change "Airplane*" to something appropriate for your device.
Regards,
Martin
Turning mobile data and telephony radio on/off requires root on most newer versions of Android. You could try to use action Control UI to show the quick settings and simulate a click on the setting. Something like this could work:
Code: Select all
quickSettings();
sleep(1000);
click("Airplane*");
Regards,
Martin
Re: Airplane mode
That code worked perfectly. I'm running 4.4.4 android. I'm surprised automagic doesn't have a way to turn data on/off like other programs like yours does. Wifi and BT has options. Thanks for your help. Is there a reference I can access to write other code?
Re: Airplane mode
There's an action called Set Mobile Datanetwork State to turn data on/off (requires root on newer versions of Android).
The help page of action Control UI has some examples. The documentation of the scripting language itself can be found in the help page of action Script.
The help page of action Control UI has some examples. The documentation of the scripting language itself can be found in the help page of action Script.