Easer icon indicating copy to clipboard operation
Easer copied to clipboard

switching mobile data on/oft seem not to work

Open itsbrody opened this issue 5 years ago • 3 comments

First of all - I stumbled over easer and find it a great idea, although having some understanding issues of given broad functionality. Some more examples and their programming could help.

Thus I'm unsure if switching mobile data on/off does not work or need other or more steps in profile. With same profile switching blluetooth and wlan is working well.

Phone: Fairphone 3

itsbrody avatar Jun 10 '20 20:06 itsbrody

Hi there, you are right that they work differently. Android does not provide API to switch mobile data, while it does for WiFi and Bluetooth. This is explained in FAQ in the wiki.

renyuneyun avatar May 08 '21 17:05 renyuneyun

Might be the reason, but why does "Flying Mode" (all the time) be able to switch any of them off (and on again)? Be aware that since Android 8 an architecture redesign has been done, where manufacturer/provider software part and core android OS is separated in a better manner.

When writing my issue (in June last year), my phone was on Android 8.1, now I'm on Android 10. Does this make it better and provide an API in the meantime? Could you check this, please?

itsbrody avatar May 11 '21 13:05 itsbrody

Hi @itsbrody , unfortunately it doesn't. I don't remember Android team provided (or mentioned enough) the explanation on why they don't provide them. But the consensus for app developers is that Android did not provide these APIs because of "safety concerns". So it's highly unlikely they'll provide them.

Whether switching them on/off succeeds actually depends on your specific ROM (and Android version of course). I have seen different combinations. Before Android 2.3, everything is possible, but them it restricted that more and more.

One known workaround is to install Easer as a system app. But you'll need root access (or through recovery) for that. However, if you have root already, switching on "use root features" in Easer should allow it to switch mobile data on/off -- it has a second workaround with root enabled, by executing command svc data enable (and disable).

renyuneyun avatar May 14 '21 22:05 renyuneyun