赞
踩
1、修改默认屏幕亮度:\frameworks\base\packages\SettingsProvider\res\values\defaults.xml
- <!-- Default screen brightness, from 0 to 255. 102 is 40%. -->
- <integer name="def_screen_brightness">204</integer>
如上def_screen_brightness值,而系统屏幕最大亮度值为255,如果要修改默认为80%;因此255 * 80%=20.4,
2、修改默认屏幕亮度最大值和最小值:\frameworks\base\core\res\res\values\config.xml
- <!-- Minimum screen brightness setting allowed by the power manager.
- The user is forbidden from setting the brightness below this level. -->
- <integer name="config_screenBrightnessSettingMinimum">10</integer>
-
- <!-- Maximum screen brightness allowed by the power manager.
- The user is forbidden from setting the brightness above this level. -->
- <integer name="config_screenBrightnessSettingMaximum">204</integer>
如上这里指的系统默认亮度最大值为255,最小值为10,在此将可修改
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。