获取系统默认输入法

  1. adb shell settings get secure default_input_method
复制

更改默认输入法(改为com.sohu.inputmethod.sogouoem/.SogouIME)

  1. adb shell settings put secure default_input_method com.sohu.inputmethod.sogouoem/.SogouIME
复制

获取亮度是否为自动获取

  1. adb shell settings get system screen_brightness_mode
复制

获取当前亮度值

  1. adb shell settings get system screen_brightness
复制

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

  1. adb shell settings put system screen_brightness 150
复制

获取屏幕休眠时间

  1. adb shell settings get system screen_off_timeout
复制

更改休眠时间,10分钟

  1. adb shell settings put system screen_off_timeout 600000
复制

获取日期时间选项中通过网络获取时间的状态,1为允许、0为不允许

  1. adb shell settings get global auto_time
复制

更改日期时间选项中通过网络获取时间的状态(其他的获取、修改wifi状态(wifi_on)、飞行模式(airlpane_mode_on)等,)

  1. adb shell settings put global auto_time 0
复制

禁用自动旋转

  1. adb shell content insert --uri content://settings/system --bind name:s:accelerometer_rotation --bind value:i:0
复制

旋转屏幕(屏幕旋转

  1. adb shell content insert --uri content://settings/system --bind name:s:user_rotation --bind value:i:1
复制

i后面跟的不同的值代表旋转为不同的方向,取值范围为0,1,2,3

 

本文摘抄于:

1、adb 查看系统设置参数[直通车]

相关文章

暂无评论

none
暂无评论...