flight mode workaround

md_sgf

Member
It seems (for unknown reasons) flight mode does not work correctly on my phone. It appears to be always disabled (as can still do TXTs & calls when it shows as enabled, or at least very often it does). Most of the time the flight mode quick setting is 1/2 blue (dimmer blue).

What i would like to be able to do, if possible, is to disable/enable the mobile radio (just to disable/enable TXTs & calls). And i would then create my own quick setting, to replace the flight mode quick setting, which doesn't work properly.

Ideally i'd be able to use standard macrodroid for this, but not really sure if there is something for this. Shell script?
Do i need adb to grant permission??

So far i have tried these things...
System Setting action .. Global .. airplane_mode_on: x (as just toggles flight mode)
System Setting action .. Global .. airplane_mode_radios: x (stays at blank, whether flight mode on or off)
System Setting action .. Global .. airplane_mode_toggleable_radios: x (=bluetooth,wifi,nfc; not interested in these. i just want to affect the cell radio)
System Setting action .. Global .. cell_on: x (stays at "1"; can't set to "0")
System Setting action .. Global .. sim2_onoff_state: x (stays at "2"; can't set to "0")
 
Last edited:

Jacob L

Moderator (Lawsonator)
Set airplane mode without root by using the assistant option then go settings > apps > defaults > assistant and set MacroDroid to assistant
 

md_sgf

Member
Can you specific what action to use for "Set airplane mode without root by using the assistant option". I'm not sure what you mean.

I have been using System Setting action .. Global .. airplane_mode_on, but flight mode still stays off (it seems).
MacroDroid is already set as assistance app.

But i have a new idea. When looking at "Default apps" screen in settings, i see "Phone app .. Phone" & "SMS app .. Messages".
If i could temporary CHANGE THESE to another app, or DISABLE them, then i SHOULD be able to prevent phone calls & TXTs, right?
Basically, i want to temporarily "break" calls/TXTs, so they "don't work".

Edit: But i am wondering, if Phone/Messages apps MIGHT NOT be updated, if i receive any whilst they are disabled (or while i have set the default apps to other "placeholder" apps). I have to test this to be sure.
 
Last edited:

md_sgf

Member
ADB hack also fails, as can still send & receive calls/txts with flight mode (supposedly) on.

I also booted into safe mode. and it seems exactly same issue there. Does this mean it's a hardaware (or sim card) issue?

So basically at present, i DON'T HAVE flight mode function, so connection stays alive 24/7. All i can do is mute volume, not much else.
 

Endercraft

Moderator (& bug finder :D)
Are you sure you are not receiving them by wifi ? It's weird that I doesn't work but maybe it can happen.
 

sampleuserhere

Active member
Maybe your best bet is to set the airplane radios with Tasker.

Tasker has Airplane Radios action to disable existing radios while toggling airplane mode.


I use it not disable bluetooth and wifi radios when I toggle airplane mode outside.

Well actually scratch that, you could probably alter this global setting entry.

airplane_mode_radios

set it to bluetooth,nfc,wifi,wimax,cell

exclude which one you don't want to disable.
 
Last edited:

Endercraft

Moderator (& bug finder :D)
I only recently remembered toggling airplane mode should disable wifi and Bluetooth but I disabled long ago.. It's weird sometimes when you are on wifi and it disables when you click airplane mode.
 

md_sgf

Member
Try to reboot the phone after changing the setting.

Check value again after the phone is booted.
It's still blank after reboot.
Interesting that i tried to set WRITE permissions for macrodroid with adb, as i just wanted to make sure. It worked for SECURE but not GLOBAL (threw out error lines). And airplane_mode_radios is GLOBAL.
But several days ago, when i first read the value, it was from memory, set to sth like: bluetooth,nfc,wifi,wimax (don't think "cell" was there). And i cleared it, just for a test, but since then i am unable to SET it to anything. So WHY was i able to CLEAR it, but not SET it again??
 

Endercraft

Moderator (& bug finder :D)
It's still blank after reboot.
Interesting that i tried to set WRITE permissions for macrodroid with adb, as i just wanted to make sure. It worked for SECURE but not GLOBAL (threw out error lines). And airplane_mode_radios is GLOBAL.
But several days ago, when i first read the value, it was from memory, set to sth like: bluetooth,nfc,wifi,wimax (don't think "cell" was there). And i cleared it, just for a test, but since then i am unable to SET it to anything. So WHY was i able to CLEAR it, but not SET it again??
Are you using helper to change the setting ?
 
Top