switching mobile data on/oft seem not to work
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
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.
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?
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).