Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
311 views
in Technique[技术] by (71.8m points)

android - Setting Settings.Global.AIRPLANE_MODE_ON does not turn off Radios

I have also tried setting AIRPLANE_MODE_RADIOS, using the ways below

Settings.Global.putString( contentResolver,
   Settings.Global.AIRPLANE_MODE_RADIOS,  
     "cell,bluetooth,wifi"
        )
adb shell settings put global airplane_mode_radios cell,bluetooth,nfc,wimax

Note: I got WRITE_SECURE_SETTINGS permission with this

adb shell pm grant com.example.letfly android.permission.WRITE_SECURE_SETTINGS

How I set AIRPLANE_MODE_ON value?

Settings.Global.putInt(
            contentResolver,
            Settings.Global.AIRPLANE_MODE_ON,
            1
        )
question from:https://stackoverflow.com/questions/66061029/setting-settings-global-airplane-mode-on-does-not-turn-off-radios

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...