From c5203e483267c542c2da2e8cd6ea7edfbba57183 Mon Sep 17 00:00:00 2001 From: adithya2306 Date: Sun, 3 Nov 2024 11:37:30 +0530 Subject: [PATCH] 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 --- configs/display_id_4630946358012694402.xml | 21 +++++++++++++++++++++ device.mk | 4 ++++ 2 files changed, 25 insertions(+) create mode 100644 configs/display_id_4630946358012694402.xml diff --git a/configs/display_id_4630946358012694402.xml b/configs/display_id_4630946358012694402.xml new file mode 100644 index 0000000..7984bd7 --- /dev/null +++ b/configs/display_id_4630946358012694402.xml @@ -0,0 +1,21 @@ + + + + + + + 0.4998779 + + 6001 + + + 0 + 0 + 0 + + + critical + + true + + diff --git a/device.mk b/device.mk index 0d97841..546c156 100644 --- a/device.mk +++ b/device.mk @@ -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 \