Android的settings命令

https://developer.android.com/reference/android/provider/Settings.System

#获取系统默认输入法

#默认搜狗输入法

settings get secure default_input_method

com.sohu.inputmethod.sogouoem/.SogouIME

#默认为Appium使用中文输入时安装的输入法

settings get secure default_input_method

io.appium.android.ime/.UnicodeIME

#put命令更改默认输入法(将io.appium.android.ime/.UnicodeIME改为com.sohu.inputmethod.sogouoem/.SogouIME)

settings put secure default_input_method com.sohu.inputmethod.sogouoem/.SogouIME

#获取日期时间选项中通过网络获取时间和时区的状态,1为允许(enable)、0为不允许(Disable)

settings get global auto_time

settings get global auto_time_zone

1

#更改该状态,从1改为0

settings put global auto_time 0

settings put global auto_time_zone 0

#获取亮度是否为自动获取

settings get system screen_brightness_mode

1

#获取当前亮度值

settings get system screen_brightness

120

#更改亮度值(亮度值在0—255之间)

settings put system screen_brightness 30

#获取屏幕休眠时间

settings get system screen_off_timeout

30000

#更改休眠时间,5分钟

settings put system screen_off_timeout 300000

你可能感兴趣的:(Android的settings命令)