[Q] Enable Airplane Mode via shell (Tasker)

Aiakio

Senior Member
Oct 18, 2010
444
108
0
Hello XDA,

I used to have a Tasker profile on my old HTC One_M8 that automatically enabled Airplane Mode at night, and disabled it again in the morning.
The code to do so was...
Enable Airplane Mode:
Code:
settings put global airplane_mode_on 1 ; am broadcast -a android.intent.action.AIRPLANE_MODE --ez state true
Disable Airplane Mode:
Code:
settings put global airplane_mode_on 0 ; am broadcast -a android.intent.action.AIRPLANE_MODE --ez state false
...with SU-rights of course.

Now with my (Dual SIM) U11 this doesnt work anymore. I have a feeling that the problem is there because of DualSIM.

Does anyone know, how i need to modify these above commands to work with my device?
 
Last edited: