There exist a simple workaround on rooted devices.
To enable Airplane Mode the following root shell commands can be used:
settings put global airplane_mode_on 1
am broadcast -a android.intent.action.AIRPLANE_MODE --ez state true
To disable Airplane Mode these root shell commands can be used:
settings put global airplane_mode_on 0
am broadcast -a android.intent.action.AIRPLANE_MODE --ez state false
Info taken from here
Disclaimer: This info is provided "as-is" without any form of warranty.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…