shell命令开关飞行模式、移动数据、wifi
罐罐灬 2019-01-30 01:53:15 仅作为个人学习记录,如有侵权某文章请联系删除
飞行模式Turn on:
settings put global airplane_mode_on 1
am broadcast -a android.intent.action.AIRPLANE_MODE --ez state true
飞行模式Turn off:
settings put global airplane_mode_on 0
am broadcast -a android.intent.action.AIRPLANE_MODE --ez state false
数据流量Turn on:
svc data disable
数据流量Turn off:
svc data disable
wifiTurn off:
svc wifi disable
wifiTurn on:
svc wifi enable