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

Logo

华为开发者空间,是为全球开发者打造的专属开发空间,汇聚了华为优质开发资源及工具,致力于让每一位开发者拥有一台云主机,基于华为根生态开发、创新。

更多推荐