Easer icon indicating copy to clipboard operation
Easer copied to clipboard

Airplane Mode can't be switched by profile

Open just-Nob opened this issue 6 years ago • 6 comments

On my mobile, it isn't possible to switch the airplane mode on/off by a profile.

By having a look into Easer's settings → "active skills" section, it is shown that the rightmost checkbox at "airplane mode" is set, but the light green tick to the left of the checkbox is missing. Additionally, on the left side, directly under "airplane mode", there's a red hash ("#"), which is also displayed at "mobile data" and "run commands".

Unfortunately, neither do I know the meaning of the light green tick or the red hash, nor do I know how to activate the airplane mode skill (I guess that this is a question of access rights).

I'm currently using Easer 0.7.8-beta3, running on a Magisk-rooted BQ Aquaris X Pro with a 64 bit arm architecture and Android Oreo 8.1 stock ROM.

just-Nob avatar Aug 28 '19 20:08 just-Nob

I forgot to say: For sure, super user access rights were granted to Easer.

just-Nob avatar Aug 31 '19 14:08 just-Nob

Your guess is correct: the red hash (#) means root permission is required.

Could you please try the following commands (as root) on your phone to see if it switches your phone to airplane mode?:

settings put global airplane_mode_on 1
am broadcast -a android.intent.action.AIRPLANE_MODE --ez state true

The command above is the thing Easer uses internally to switch airplane mode. But apparently, this is not official so maybe is blocked on some devices (ROMs). (And I just tested on my phone. Easer works as expected on my phone.)

renyuneyun avatar Aug 31 '19 22:08 renyuneyun

Hi @renyuneyun ,

sorry for the delayed reply.

I used Termux for that on my phone: I granted root access to Termux in Magisk, switched the console to super user (by command "su") and typed in the two commands/lines given by you.

After the first one, nothing happened, i.e. especially also no output in Termux's shell (excepted the new command prompt).

The phone's reaction to the second line was the following:

Broadcasting: Intent { act=android.intend.action.AIRPLANE_MODE flg=0x400000 pkg=true (has extras) } Broadcast completed: result=0

Anyway, airplane mode wasn't switched on at all. ☹️

just-Nob avatar Sep 08 '19 20:09 just-Nob

Hmm, it seems your ROM blocks this workaround.

Just to be more certain: can you manually switch airplane mode on and off, and then execute the command again?

Unfortunately this is the only workaround I found. Is there a forum for your phone and is there any discussion about this? Or, is there any other app which works?


Explanation of commands:

The two commands are both a part of Android. The first one sets the corresponding system setting. It's common that command line applications (on linux) do not output anything: that generally means they are executed correctly (unless the return code is not 0). The second command sends a broadcast (an Android thing). It's said that this broadcast is required to make the system aware the setting has been changed. (I don't know why it prints information, but the output seems to be right -- at least the same as it does on mine.)

renyuneyun avatar Sep 09 '19 22:09 renyuneyun

I've tested it again, and this time I switched the airplane mode on and off one time before I sent the commands in Termux: Without any result! ☹️

BTW: Thanks for the explanation of the commands!

I installed the good old "Llama" from KebapApps (which worked for me on other phones). It also failed: After a short period of time (maybe half a second?), Llama told me that it wasn't able to get root access (although it was granted by Magisk), directly after that a message was displayed that Llama got root access. However, the airplane mode wasn't switched on.

I try to get further information on a German forum that has a separate area for tweaking my phone.

just-Nob avatar Sep 10 '19 19:09 just-Nob

Automate is an android app that can turn on and off the flight mode without root permissions. I think that It only needs to be put like an assistant on the phone . May be it's a good idea here?

userofryzen avatar Apr 18 '23 22:04 userofryzen