1# Display product definitions 2PRODUCT_PACKAGES += \ 3 android.hardware.graphics.composer@2.4-impl \ 4 android.hardware.graphics.composer@2.4-service \ 5 android.hardware.graphics.mapper@3.0-impl-qti-display \ 6 android.hardware.graphics.mapper@4.0-impl-qti-display \ 7 vendor.qti.hardware.display.allocator-service \ 8 android.hardware.memtrack@1.0-impl \ 9 android.hardware.memtrack@1.0-service \ 10 gralloc.$(TARGET_BOARD_PLATFORM) \ 11 lights.$(TARGET_BOARD_PLATFORM) \ 12 hwcomposer.$(TARGET_BOARD_PLATFORM) \ 13 memtrack.$(TARGET_BOARD_PLATFORM) \ 14 libqdMetaData.vendor \ 15 libdisplayconfig.vendor \ 16 vendor.display.config@1.0.vendor \ 17 vendor.display.config@1.1.vendor \ 18 vendor.display.config@1.2.vendor \ 19 vendor.display.config@1.3.vendor \ 20 vendor.display.config@1.4.vendor \ 21 vendor.display.config@1.5.vendor \ 22 vendor.display.config@1.6.vendor \ 23 vendor.display.config@1.7.vendor \ 24 vendor.display.config@1.8.vendor \ 25 vendor.display.config@1.9.vendor \ 26 vendor.display.config@1.10.vendor \ 27 vendor.qti.hardware.display.mapper@3.0 \ 28 vendor.qti.hardware.display.mapper@4.0.vendor \ 29 modetest 30 31#QDCM calibration xml file for 2k panel 32PRODUCT_COPY_FILES += hardware/qcom/sm8150/display/config/qdcm_calib_data_nt35597_cmd_mode_dsi_truly_panel_with_DSC.xml:$(TARGET_COPY_OUT_VENDOR)/etc/qdcm_calib_data_nt35597_cmd_mode_dsi_truly_panel_with_DSC.xml 33PRODUCT_COPY_FILES += hardware/qcom/sm8150/display/config/qdcm_calib_data_nt35597_cmd_mode_dsi_truly_panel_with_DSC.xml:$(TARGET_COPY_OUT_VENDOR)/etc/qdcm_calib_data_nt35597_video_mode_dsi_truly_panel_with_DSC.xml 34 35#QDCM calibration xml file for 2k dual dsi panel 36PRODUCT_COPY_FILES += hardware/qcom/sm8150/display/config/qdcm_calib_data_nt35597_cmd_mode_dsi_truly_panel_with_DSC.xml:$(TARGET_COPY_OUT_VENDOR)/etc/qdcm_calib_data_Dual_nt35597_cmd_mode_dsi_truly_panel_without_DSC.xml.xml 37PRODUCT_COPY_FILES += hardware/qcom/sm8150/display/config/qdcm_calib_data_nt35597_cmd_mode_dsi_truly_panel_with_DSC.xml:$(TARGET_COPY_OUT_VENDOR)/etc/qdcm_calib_data_Dual_nt35597_video_mode_dsi_truly_panel_without_DSC.xml.xml 38 39#QDCM calibration xml file for 4k panel 40PRODUCT_COPY_FILES += hardware/qcom/sm8150/display/config/qdcm_calib_data_Sharp_4k_cmd_mode_dsc_dsi_panel.xml:$(TARGET_COPY_OUT_VENDOR)/etc/qdcm_calib_data_Sharp_4k_cmd_mode_dsc_dsi_panel.xml 41PRODUCT_COPY_FILES += hardware/qcom/sm8150/display/config/qdcm_calib_data_Sharp_4k_cmd_mode_dsc_dsi_panel.xml:$(TARGET_COPY_OUT_VENDOR)/etc/qdcm_calib_data_Sharp_4k_video_mode_dsc_dsi_panel.xml 42 43#QDCM calibration xml file for amoled panel 44PRODUCT_COPY_FILES += hardware/qcom/sm8150/display/config/qdcm_calib_data_sw43404_amoled_cmd_mode_dsi_boe_panel_with_DSC.xml:$(TARGET_COPY_OUT_VENDOR)/etc/qdcm_calib_data_sw43404_amoled_cmd_mode_dsi_boe_panel_with_DSC.xml 45PRODUCT_COPY_FILES += hardware/qcom/sm8150/display/config/qdcm_calib_data_sw43404_amoled_cmd_mode_dsi_boe_panel_with_DSC.xml:$(TARGET_COPY_OUT_VENDOR)/etc/qdcm_calib_data_sw43404_amoled_video_mode_dsi_boe_panel_with_DSC.xml 46 47#QDCM calibration xml file for primary panel sharp 1080p 48PRODUCT_COPY_FILES += hardware/qcom/sm8150/display/config/qdcm_calib_data_default.xml:$(TARGET_COPY_OUT_VENDOR)/etc/qdcm_calib_data_sharp_1080p_cmd_mode_dsi_panel.xml 49 50#QDCM calibration xml file for secondary panel nt35695b 51PRODUCT_COPY_FILES += hardware/qcom/sm8150/display/config/qdcm_calib_data_default.xml:$(TARGET_COPY_OUT_VENDOR)/etc/qdcm_calib_data_nt35695b_truly_fhd_command_mode_dsi_panel.xml 52PRODUCT_COPY_FILES += hardware/qcom/sm8150/display/config/qdcm_calib_data_default.xml:$(TARGET_COPY_OUT_VENDOR)/etc/qdcm_calib_data_nt35695b_truly_fhd_video_mode_dsi_panel.xml 53 54#QDCM calibration xml file base on Talos panel type hx83112a 55PRODUCT_COPY_FILES += hardware/qcom/sm8150/display/config/qdcm_calib_data_talos_default.xml:$(TARGET_COPY_OUT_VENDOR)/etc/qdcm_calib_data_hx83112a_video_mode_dsi_truly_panel.xml 56 57#QDCM calibration xml file base on Talos panel type td4328 58PRODUCT_COPY_FILES += hardware/qcom/sm8150/display/config/qdcm_calib_data_talos_default.xml:$(TARGET_COPY_OUT_VENDOR)/etc/qdcm_calib_data_td4328_cmd_mode_dsi_truly_panel.xml 59PRODUCT_COPY_FILES += hardware/qcom/sm8150/display/config/qdcm_calib_data_talos_default.xml:$(TARGET_COPY_OUT_VENDOR)/etc/qdcm_calib_data_td4328_video_mode_dsi_truly_panel.xml 60 61#QDCM calibration xml file base on Moorea panel type fhd+ 62PRODUCT_COPY_FILES += hardware/qcom/sm8150/display/config/qdcm_calib_data_default.xml:$(TARGET_COPY_OUT_VENDOR)/etc/qdcm_calib_data_sw43404_amoled_boe_fhd+_panel_with_DSC.xml 63 64#QDCM calibration xml file base on td4330 65PRODUCT_COPY_FILES += hardware/qcom/sm8150/display/config/qdcm_calib_data_trinket_default.xml:$(TARGET_COPY_OUT_VENDOR)/etc/qdcm_calib_data_td4330_cmd_mode_dsi_truly_panel.xml 66PRODUCT_COPY_FILES += hardware/qcom/sm8150/display/config/qdcm_calib_data_trinket_default.xml:$(TARGET_COPY_OUT_VENDOR)/etc/qdcm_calib_data_td4330_video_mode_dsi_truly_panel.xml 67 68#QDCM calibration xml file base on Moorea panel type wqhd 69PRODUCT_COPY_FILES += hardware/qcom/sm8150/display/config/qdcm_calib_data_default.xml:$(TARGET_COPY_OUT_VENDOR)/etc/qdcm_calib_data_Dual_Sharp_WQHD_cmd_mode_dsi_panel.xml 70PRODUCT_COPY_FILES += hardware/qcom/sm8150/display/config/qdcm_calib_data_default.xml:$(TARGET_COPY_OUT_VENDOR)/etc/qdcm_calib_data_Dual_Sharp_wqhd_video_mode_dsi_panel.xml 71 72#QDCM calibration xml file base on nt36672 73PRODUCT_COPY_FILES += hardware/qcom/sm8150/display/config/qdcm_calib_data_trinket_default.xml:$(TARGET_COPY_OUT_VENDOR)/etc/qdcm_calib_data_nt36672_truly_fhd_video_mode_dsi_panel.xml 74 75#QDCM calibration xml file base on Rennell FHD+ visionox panel 76PRODUCT_COPY_FILES += hardware/qcom/display/config/qdcm_calib_data_rm69299_amoled_fhd+_video_mode_dsi_visionox_panel.xml:$(TARGET_COPY_OUT_VENDOR)/etc/qdcm_calib_data_rm69299_amoled_fhd+_video_mode_dsi_visionox_panel.xml 77PRODUCT_COPY_FILES += hardware/qcom/display/config/qdcm_calib_data_rm69299_amoled_fhd+_video_mode_dsi_visionox_panel.xml:$(TARGET_COPY_OUT_VENDOR)/etc/qdcm_calib_data_rm69299_amoled_fhd+_cmd_mode_dsi_visionox_panel.xml 78#QDCM calibration xml file for sharp 120hz panel etc 79PRODUCT_COPY_FILES += hardware/qcom/display/config/qdcm_calib_data_default.xml:$(TARGET_COPY_OUT_VENDOR)/etc/qdcm_calib_data_sharp_1080p_120hz_dual_dsi_cmd_mode_panel.xml 80PRODUCT_COPY_FILES += hardware/qcom/display/config/qdcm_calib_data_default.xml:$(TARGET_COPY_OUT_VENDOR)/etc/qdcm_calib_data_Dual_s6e3ha3_amoled_cmd_mode_dsi_panel.xml 81PRODUCT_COPY_FILES += hardware/qcom/display/config/qdcm_calib_data_default.xml:$(TARGET_COPY_OUT_VENDOR)/etc/qdcm_calib_data_Dual_nt36850_cmd_mode_dsi_truly_panel_without_DSC.xml 82PRODUCT_COPY_FILES += hardware/qcom/display/config/qdcm_calib_data_default.xml:$(TARGET_COPY_OUT_VENDOR)/etc/qdcm_calib_data_nt36672c_fhd_plus_video_mode_dsi_panel.xml 83PRODUCT_COPY_FILES += hardware/qcom/display/config/qdcm_calib_data_default.xml:$(TARGET_COPY_OUT_VENDOR)/etc/qdcm_calib_data_rm69298_amoled_fhd+_video_mode_dsi_truly_panel.xml 84PRODUCT_COPY_FILES += hardware/qcom/display/config/qdcm_calib_data_default.xml:$(TARGET_COPY_OUT_VENDOR)/etc/qdcm_calib_data_rm69298_amoled_fhd+_cmd_mode_dsi_truly_panel.xml 85PRODUCT_COPY_FILES += hardware/qcom/display/config/qdcm_calib_data_default.xml:$(TARGET_COPY_OUT_VENDOR)/etc/qdcm_calib_data_Sharp_2k_cmd_mode_qsync_dsi_panel.xml 86PRODUCT_COPY_FILES += hardware/qcom/display/config/qdcm_calib_data_default.xml:$(TARGET_COPY_OUT_VENDOR)/etc/qdcm_calib_data_Sharp_2k_video_mode_qsync_dsi_panel.xml 87PRODUCT_COPY_FILES += hardware/qcom/display/config/qdcm_calib_data_default.xml:$(TARGET_COPY_OUT_VENDOR)/etc/qdcm_calib_data_Sharp_fhd_video_mode_qsync_dsi_panel.xml 88PRODUCT_COPY_FILES += hardware/qcom/display/config/qdcm_calib_data_default.xml:$(TARGET_COPY_OUT_VENDOR)/etc/qdcm_calib_data_Sharp_fhd_cmd_mode_qsync_dsi_panel.xml 89 90 91PRODUCT_PROPERTY_OVERRIDES += \ 92 persist.demo.hdmirotationlock=false \ 93 persist.sys.sf.color_saturation=1.0 \ 94 persist.sys.sf.color_mode=9 \ 95 debug.sf.hw=0 \ 96 debug.egl.hw=0 \ 97 debug.mdpcomp.logs=0 \ 98 vendor.gralloc.disable_ubwc=0 \ 99 vendor.display.disable_scaler=0 \ 100 vendor.display.disable_inline_rotator=1 \ 101 vendor.display.disable_decimation=1 \ 102 vendor.display.enable_null_display=0 \ 103 vendor.display.disable_excl_rect=0 \ 104 vendor.display.disable_excl_rect_partial_fb=1 \ 105 vendor.display.comp_mask=0 \ 106 vendor.display.enable_default_color_mode=1 \ 107 vendor.display.enable_optimize_refresh=1 \ 108 vendor.display.disable_ui_3d_tonemap=1 109 110ifeq ($(TARGET_BOARD_PLATFORM), msmnile) 111PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.surface_flinger.protected_contents=true 112endif 113 114#Set WCG properties 115ifeq ($(TARGET_BOARD_PLATFORM),$(TRINKET)) 116PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.surface_flinger.has_wide_color_display=false 117PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.surface_flinger.has_HDR_display=false 118PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.surface_flinger.use_color_management=false 119else 120PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.surface_flinger.has_wide_color_display=true 121PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.surface_flinger.has_HDR_display=true 122PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.surface_flinger.use_color_management=true 123PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.surface_flinger.wcg_composition_dataspace=143261696 124endif 125 126PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.surface_flinger.force_hwc_copy_for_virtual_displays=true 127PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.surface_flinger.max_frame_buffer_acquired_buffers=3 128PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.surface_flinger.max_virtual_display_dimension=4096 129 130 131ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT))) 132# Recovery is enabled, logging is enabled 133PRODUCT_PROPERTY_OVERRIDES += \ 134 vendor.display.disable_hw_recovery_dump=0 135else 136# Recovery is enabled, logging is disabled 137PRODUCT_PROPERTY_OVERRIDES += \ 138 vendor.display.disable_hw_recovery_dump=1 139endif 140 141# Properties using default value: 142# vendor.display.disable_hw_recovery=0 143 144# This matrix should be in column major order, per SurfaceFlinger requirement 145# 1.0 0.0 0.0 146# 0.0 1.0 0.0 147# 0.0 0.0 1.0 148PRODUCT_PROPERTY_OVERRIDES += \ 149 vendor.display.dataspace_saturation_matrix=1.0,0.0,0.0,0.0,1.0,0.0,0.0,0.0,1.0 150 151ifneq ($(TARGET_HAS_LOW_RAM),true) 152PRODUCT_PACKAGES += vendor.display.color@1.0.vendor \ 153 vendor.display.color@1.1.vendor \ 154 vendor.display.color@1.2.vendor \ 155 vendor.display.color@1.3.vendor \ 156 vendor.display.postproc@1.0.vendor \ 157 vendor.display.color@1.0-service \ 158 vendor.display.color@1.0-service.rc \ 159 ppd 160endif 161