Android的settings命令

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

?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容