https://developer.android.com/reference/android/provider/Settings.System
#獲取系統(tǒng)默認(rèn)輸入法
#默認(rèn)搜狗輸入法
settings get secure default_input_method
com.sohu.inputmethod.sogouoem/.SogouIME
#默認(rèn)為Appium使用中文輸入時(shí)安裝的輸入法
settings get secure default_input_method
io.appium.android.ime/.UnicodeIME
#put命令更改默認(rèn)輸入法(將io.appium.android.ime/.UnicodeIME改為com.sohu.inputmethod.sogouoem/.SogouIME)
settings put secure default_input_method com.sohu.inputmethod.sogouoem/.SogouIME
#獲取日期時(shí)間選項(xiàng)中通過網(wǎng)絡(luò)獲取時(shí)間和時(shí)區(qū)的狀態(tài),1為允許(enable)、0為不允許(Disable)
settings get global auto_time
settings get global auto_time_zone
1
#更改該狀態(tài),從1改為0
settings put global auto_time 0
settings put global auto_time_zone 0
#獲取亮度是否為自動獲取
settings get system screen_brightness_mode
1
#獲取當(dāng)前亮度值
settings get system screen_brightness
120
#更改亮度值(亮度值在0—255之間)
settings put system screen_brightness 30
#獲取屏幕休眠時(shí)間
settings get system screen_off_timeout
30000
#更改休眠時(shí)間,5分鐘
settings put system screen_off_timeout 300000