背光调节亮度默认值修改
1、packages/apps/Settings/res/layout/preference_dialog_brightness.xml进行背光调节dialog进行布局。
2、packages/apps/Settings/src/com/android/settings/BrightnessPreference.java
获取默认值供系统使用
private int getBrightness(int defaultValue) {
int brightness = defaultValue;
try {
brightness = Settings.System.getInt(getContext().getContentResolver(),
Settings.System.SCREEN_BRIGHTNESS);
} catch (SettingNotFoundException snfe) {
}
return brightness;
}
3、frameworks/base/packages/SettingsProvider/res/values/defaults.xml设置默认值
<integer name="def_screen_brightness">179</integer>//默认值
编译模块
mm frameworks/base/packages/SettingsProvider/
adb push system/app/SettingsProvider.apk
恢复出厂设置就可以看到修改的默认值了
补充:移动开发 , Android ,