1. 指令直接設(shè)置
cd /sys/devices/platform/backlight/backlight/backlight
echo 40 > brightness //設(shè)置亮度為40
cat brightness //查看當(dāng)前設(shè)置的亮度
2. framework層配置
/frameworks/base/core/res/res/values/config.xml //position
config_screenBrightnessSettingMinimum
config_screenBrightnessSettingMaximum
config_screenBrightnessSettingDefault
3. framework層代碼
frameworks\base\packages\SystemUI\src\com\android\systemui\settings\BrightnessDialog.java
packages/apps/Settings/res/xml/display_settings.xml
frameworks/base/packages/SystemUI/AndroidManifest.xml
ref: https://www.cnblogs.com/crushgirl/p/15474247.html
4. 驅(qū)動(dòng)層代碼和配置
drivers/video/backlight/pwm_bl.c
kernel/arch/arm64/boot/dts/rockchip/rk3399-evb-ind-mipi-CLCMSZ4900.dtsi
5. framework層動(dòng)態(tài)調(diào)試
待補(bǔ)充
6. 通過(guò)hook方式動(dòng)態(tài)修改代碼避免重新編譯系統(tǒng)
待補(bǔ)充
tempu_dongkai
tempp_dongkai_dongkai321
tempu_yinfeng
tempp_yinfeng_yinfeng321
tempu_labtest
tempp_labtest_labtest321