Android 10-13,默认屏幕亮度80%或100%

2023-12-13 04:28:25

80%:

/vendor/mediatek/proprietary/packages/overlay/vendor/FrameworkResOverlay/res/values/config.xml

<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
? ? <!-- Whether a software navigation bar should be shown.-->
? ? <bool name="config_showNavigationBar">true</bool>
? ? <!-- Minimum screen brightness setting allowed by power manager.
? ? Set this to 0.0 to allow screen to go to minimal brightness.-->
? ? <item name="config_screenBrightnessSettingMinimumFloat" format="float" type="dimen">0.0</item>
? ? <!-- Maximum screen brightness allowed by the power manager.
? ? Set this to 1.0 for maximum brightness range.-->
? ? <item name="config_screenBrightnessSettingMaximumFloat" format="float" type="dimen">1.0</item>
? ? <!-- Default screen brightness setting set.
? ? Set this to 0.4 for Default brightness Float [0.35 == 80%]-->
? ? <item name="config_screenBrightnessSettingDefaultFloat" format="float" type="dimen">0.35</item>
? ? <!-- default color mode -->
? ? <integer-array name="config_availableColorModes">
? ? ? ? ?<item>-1</item>
? ? </integer-array>
</resources>
?

100%:

/vendor/mediatek/proprietary/packages/overlay/vendor/FrameworkResOverlay/res/values/config.xml

<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
? ? <!-- Whether a software navigation bar should be shown.-->
? ? <bool name="config_showNavigationBar">true</bool>
? ? <!-- Minimum screen brightness setting allowed by power manager.
? ? Set this to 0.0 to allow screen to go to minimal brightness.-->
? ? <item name="config_screenBrightnessSettingMinimumFloat" format="float" type="dimen">0.0</item>
? ? <!-- Maximum screen brightness allowed by the power manager.
? ? Set this to 1.0 for maximum brightness range.-->
? ? <item name="config_screenBrightnessSettingMaximumFloat" format="float" type="dimen">1.0</item>
? ? <!-- Default screen brightness setting set.
? ? Set this to 0.4 for Default brightness Float [0.35 == 80%]-->
? ? <item name="config_screenBrightnessSettingDefaultFloat" format="float" type="dimen">1.0</item>
? ? <!-- default color mode -->
? ? <integer-array name="config_availableColorModes">
? ? ? ? ?<item>-1</item>
? ? </integer-array>
</resources>

?framework/base/core/res/res/valus/config.xml 这里面的几个修改没有用的

/vendor/mediatek/proprietary/packages/apps/SettingsProvider/res/values/freeme_defaults.xml修改默认亮度也是没用的

文章来源:https://blog.csdn.net/qq_46687516/article/details/134871105
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。