adb设置屏幕亮度

1. 获取亮度是否为自动调节

adb shell settings get system screen_brightness_mode

0:未开启           1:开启

2. 修改设备亮度为自动调节/ 取消自动调节

# 关闭

adb shell settings put system screen_brightness_mode 0

# 开启

adb shell settings put system screen_brightness_mode 112345

3. 获取当前手机屏幕亮度值

adb shell settings get system screen_brightness

# 输出:'90\n'

# 1234

4. 设置当前手机屏幕亮度
 

adb shell settings put system screen_brightness xxxx

# 如设置为1000

adb shell settings put system screen_brightness 1000

你可能感兴趣的:(终端命令,android,html5,ios)