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. 设置当前手机屏幕亮度 最大255
 

adb shell settings put system screen_brightness xxxx
 
# 如设置为1000
 
adb shell settings put system screen_brightness 1000


---------------------
作者:原来是图哥
来源:CSDN
原文:https://blog.csdn.net/JiYaRuo/article/details/118390642
版权声明:本文为作者原创文章,转载请附上博文链接!
内容解析By:CSDN,CNBLOG博客文章一键转载插件

猜你喜欢

转载自blog.csdn.net/xiaowang_lj/article/details/132075499
今日推荐