sm8450-common: overlay: Add brightness levels

Change-Id: I048d8899bbf9f5e79ae11cd923434312e3af5a8d
This commit is contained in:
Arian 2022-06-18 13:47:01 +02:00
parent 07ad29a5c3
commit cf521db397
4 changed files with 44 additions and 0 deletions

View file

@ -77,6 +77,7 @@ PRODUCT_PACKAGES += \
PRODUCT_PACKAGES += \
FrameworksResTarget_Vendor \
FrameworksResXiaomi \
WifiResTarget \
WifiResTarget_spf

View file

@ -0,0 +1,10 @@
//
// Copyright (C) 2022 The LineageOS Project
//
// SPDX-License-Identifier: Apache-2.0
//
runtime_resource_overlay {
name: "FrameworksResXiaomi",
vendor: true,
}

View file

@ -0,0 +1,10 @@
<!--
Copyright (C) 2022 The LineageOS Project
SPDX-License-Identifier: Apache-2.0
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="android.overlay.xiaomi">
<overlay android:targetPackage="android"
android:isStatic="true"
android:priority="600"/>
</manifest>

View file

@ -0,0 +1,23 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2024 The LineageOS Project
SPDX-License-Identifier: Apache-2.0
-->
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<!-- Minimum screen brightness setting allowed by power manager.
-2 is invalid so setting will resort to int value specified above.
Set this to 0.0 to allow screen to go to minimal brightness.
The user is forbidden from setting the brightness below this level. -->
<item format="float" name="config_screenBrightnessSettingMinimumFloat" type="dimen">0</item>
<!-- Maximum screen brightness allowed by the power manager.
-2 is invalid so setting will resort to int value specified above.
Set this to 1.0 for maximum brightness range.
The user is forbidden from setting the brightness above this level. -->
<item format="float" name="config_screenBrightnessSettingMaximumFloat" type="dimen">1</item>
<!-- Default screen brightness setting set.
-2 is invalid so setting will resort to int value specified above.
Must be in the range specified by minimum and maximum. -->
<item format="float" name="config_screenBrightnessSettingDefaultFloat" type="dimen">0.5</item>
</resources>