1 rk平台Android9 系统默认亮度修改到100%
device/rockchip/common/overlay/frameworks/base/packages/SettingsProvider/res/values/defaults.xml
+ <integer name="def_screen_brightness">255</integer>
2 rk平台Android9 系统默认音量修改到10
添加如下property 的值:
device/rockchip/rk3399/xxx/device.mk
PRODUCT_PROPERTY_OVERRIDES += \
ro.config.system_vol_default=10 \
ro.config.media_vol_default=10 \
ro.config.vc_call_vol_steps=15 \
属性权限赋AudioSystem
system/sepolicy/public/property_contexts
ro.config.media_vol_steps u:object_r:exported2_config_prop:s0 exact int
+ro.config.media_vol_default u:object_r:exported2_config_prop:s0 exact int
+ro.config.system_vol_default u:object_r:exported2_config_prop:s0 exact int
参考源码修改:
frameworks/base/services/core/java/com/android/server/audio/AudioService.java