mirror of
https://github.com/pjgowtham/android_device_realme_ferrarri.git
synced 2026-04-09 09:16:06 +00:00
ferrari: Add support for high brightness mode (HBM)
* Brightness from 2047 (488~ nits) to 4095 (800 nits) is HBM. Enter HBM at >=6500 lux (outdoor daylight) and hit peak brightness at >=10000 lux (under direct sunlight). Adjust the backlight curve accordingly. Change-Id: Id186b6a1ab90c16debb20f840e5beab9fe6828b4 Signed-off-by: Sugakesshaa <sugakesshaa@gmail.com>
This commit is contained in:
21
configs/display_id_4630946358012694402.xml
Normal file
21
configs/display_id_4630946358012694402.xml
Normal file
@@ -0,0 +1,21 @@
|
||||
<?xml version='1.0' encoding='utf-8' standalone='yes' ?>
|
||||
|
||||
<displayConfiguration>
|
||||
<!-- root node for HBM-->
|
||||
<highBrightnessMode enabled="true">
|
||||
<!-- Transition point brightness from normal to HBM mode -->
|
||||
<transitionPoint>0.4998779</transitionPoint>
|
||||
<!-- Minimum lux to enter HBM -->
|
||||
<minimumLux>6001</minimumLux>
|
||||
<!-- Time limitation for HBM-->
|
||||
<timing>
|
||||
<timeWindowSecs>0</timeWindowSecs>
|
||||
<timeMaxSecs>0</timeMaxSecs>
|
||||
<timeMinSecs>0</timeMinSecs>
|
||||
</timing>
|
||||
<!-- Thermal limitation for HBM -->
|
||||
<thermalStatusLimit>critical</thermalStatusLimit>
|
||||
<!-- Low power mode limitation for HBM -->
|
||||
<allowInLowPowerMode>true</allowInLowPowerMode>
|
||||
</highBrightnessMode>
|
||||
</displayConfiguration>
|
||||
@@ -30,6 +30,10 @@ TARGET_SCREEN_WIDTH := 1080
|
||||
PRODUCT_COPY_FILES += \
|
||||
$(LOCAL_PATH)/media/media_profiles_vendor.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_vendor.xml
|
||||
|
||||
# Display
|
||||
PRODUCT_COPY_FILES += \
|
||||
$(LOCAL_PATH)/configs/display/display_id_4630946358012694402.xml:$(TARGET_COPY_OUT_VENDOR)/etc/displayconfig/display_id_4630946358012694402.xml
|
||||
|
||||
# NFC
|
||||
PRODUCT_PACKAGES += \
|
||||
android.hardware.nfc-service.nxp \
|
||||
|
||||
Reference in New Issue
Block a user