当前位置:   article > 正文

Android 10-13,默认屏幕亮度80%或100%_android13 开发 默认亮度设置

android13 开发 默认亮度设置

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修改默认亮度也是没用的

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/很楠不爱3/article/detail/699936
推荐阅读
相关标签
  

闽ICP备14008679号