blob: b9467fe3b1897d796e28df1e2581ab1e3f1f25a0 [file] [log] [blame]
Naseer Ahmedb5c9c362018-12-18 15:48:41 -05001# Display product definitions
2PRODUCT_PACKAGES += \
Padmanabhan Komanduru8073dd52020-06-05 15:27:16 +05303 android.hardware.graphics.composer@2.4-impl \
4 android.hardware.graphics.composer@2.4-service \
Tharaga Balachandranab150ab2019-09-26 19:17:58 -04005 android.hardware.graphics.mapper@3.0-impl-qti-display \
Tharaga Balachandran74ab1112020-01-08 17:17:56 -05006 android.hardware.graphics.mapper@4.0-impl-qti-display \
Tharaga Balachandranf7e62a32019-06-06 11:33:29 -04007 vendor.qti.hardware.display.allocator-service \
Naseer Ahmedb5c9c362018-12-18 15:48:41 -05008 android.hardware.memtrack@1.0-impl \
9 android.hardware.memtrack@1.0-service \
Naseer Ahmed755af6b2019-04-15 19:49:29 -040010 gralloc.$(TARGET_BOARD_PLATFORM) \
11 lights.$(TARGET_BOARD_PLATFORM) \
12 hwcomposer.$(TARGET_BOARD_PLATFORM) \
13 memtrack.$(TARGET_BOARD_PLATFORM) \
Naseer Ahmedb5c9c362018-12-18 15:48:41 -050014 libqdMetaData.vendor \
Ramakant Singh50e08292019-05-27 15:27:26 +053015 libdisplayconfig.vendor \
Padmanabhan Komanduru0d003b12020-05-19 20:50:46 +053016 libdisplayconfig.qti.vendor \
Naseer Ahmedb5c9c362018-12-18 15:48:41 -050017 vendor.display.config@1.0.vendor \
18 vendor.display.config@1.1.vendor \
19 vendor.display.config@1.2.vendor \
20 vendor.display.config@1.3.vendor \
21 vendor.display.config@1.4.vendor \
22 vendor.display.config@1.5.vendor \
Ramkumar Radhakrishnand98f0762019-02-28 16:50:08 -080023 vendor.display.config@1.6.vendor \
24 vendor.display.config@1.7.vendor \
25 vendor.display.config@1.8.vendor \
Archit Srivastava34042242019-05-20 10:54:22 +053026 vendor.display.config@1.9.vendor \
Dileep Marchya13200362019-06-21 17:05:31 +053027 vendor.display.config@1.10.vendor \
Padmanabhan Komanduru0d003b12020-05-19 20:50:46 +053028 vendor.display.config@2.0.vendor \
Tharaga Balachandranab150ab2019-09-26 19:17:58 -040029 vendor.qti.hardware.display.mapper@3.0 \
Tharaga Balachandran74ab1112020-01-08 17:17:56 -050030 vendor.qti.hardware.display.mapper@4.0.vendor \
Naseer Ahmedb5c9c362018-12-18 15:48:41 -050031 modetest
32
33#QDCM calibration xml file for 2k panel
34PRODUCT_COPY_FILES += hardware/qcom/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
35PRODUCT_COPY_FILES += hardware/qcom/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
c_xshuc032d1a2019-05-24 14:09:04 +080036
37#QDCM calibration xml file for 2k dual dsi panel
38PRODUCT_COPY_FILES += hardware/qcom/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
39PRODUCT_COPY_FILES += hardware/qcom/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
40
Naseer Ahmedb5c9c362018-12-18 15:48:41 -050041#QDCM calibration xml file for 4k panel
42PRODUCT_COPY_FILES += hardware/qcom/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
43PRODUCT_COPY_FILES += hardware/qcom/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
c_xshuc032d1a2019-05-24 14:09:04 +080044
Naseer Ahmedb5c9c362018-12-18 15:48:41 -050045#QDCM calibration xml file for amoled panel
46PRODUCT_COPY_FILES += hardware/qcom/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
47PRODUCT_COPY_FILES += hardware/qcom/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
48
Qing Huangde9ad3e2019-03-18 16:05:13 +080049#QDCM calibration xml file for primary panel sharp 1080p
50PRODUCT_COPY_FILES += hardware/qcom/display/config/qdcm_calib_data_default.xml:$(TARGET_COPY_OUT_VENDOR)/etc/qdcm_calib_data_sharp_1080p_cmd_mode_dsi_panel.xml
51
52#QDCM calibration xml file for secondary panel nt35695b
53PRODUCT_COPY_FILES += hardware/qcom/display/config/qdcm_calib_data_default.xml:$(TARGET_COPY_OUT_VENDOR)/etc/qdcm_calib_data_nt35695b_truly_fhd_command_mode_dsi_panel.xml
54PRODUCT_COPY_FILES += hardware/qcom/display/config/qdcm_calib_data_default.xml:$(TARGET_COPY_OUT_VENDOR)/etc/qdcm_calib_data_nt35695b_truly_fhd_video_mode_dsi_panel.xml
55
c_xshuc032d1a2019-05-24 14:09:04 +080056#QDCM calibration xml file base on Talos panel type hx83112a
57PRODUCT_COPY_FILES += hardware/qcom/display/config/qdcm_calib_data_talos_default.xml:$(TARGET_COPY_OUT_VENDOR)/etc/qdcm_calib_data_hx83112a_video_mode_dsi_truly_panel.xml
58
59#QDCM calibration xml file base on Talos panel type td4328
60PRODUCT_COPY_FILES += hardware/qcom/display/config/qdcm_calib_data_talos_default.xml:$(TARGET_COPY_OUT_VENDOR)/etc/qdcm_calib_data_td4328_cmd_mode_dsi_truly_panel.xml
61PRODUCT_COPY_FILES += hardware/qcom/display/config/qdcm_calib_data_talos_default.xml:$(TARGET_COPY_OUT_VENDOR)/etc/qdcm_calib_data_td4328_video_mode_dsi_truly_panel.xml
62
63#QDCM calibration xml file base on Moorea panel type fhd+
64PRODUCT_COPY_FILES += hardware/qcom/display/config/qdcm_calib_data_default.xml:$(TARGET_COPY_OUT_VENDOR)/etc/qdcm_calib_data_sw43404_amoled_boe_fhd+_panel_with_DSC.xml
65
66#QDCM calibration xml file base on td4330
67PRODUCT_COPY_FILES += hardware/qcom/display/config/qdcm_calib_data_trinket_default.xml:$(TARGET_COPY_OUT_VENDOR)/etc/qdcm_calib_data_td4330_cmd_mode_dsi_truly_panel.xml
68PRODUCT_COPY_FILES += hardware/qcom/display/config/qdcm_calib_data_trinket_default.xml:$(TARGET_COPY_OUT_VENDOR)/etc/qdcm_calib_data_td4330_video_mode_dsi_truly_panel.xml
69
70#QDCM calibration xml file base on Moorea panel type wqhd
71PRODUCT_COPY_FILES += hardware/qcom/display/config/qdcm_calib_data_default.xml:$(TARGET_COPY_OUT_VENDOR)/etc/qdcm_calib_data_Dual_Sharp_WQHD_cmd_mode_dsi_panel.xml
72PRODUCT_COPY_FILES += hardware/qcom/display/config/qdcm_calib_data_default.xml:$(TARGET_COPY_OUT_VENDOR)/etc/qdcm_calib_data_Dual_Sharp_wqhd_video_mode_dsi_panel.xml
73
74#QDCM calibration xml file base on nt36672
75PRODUCT_COPY_FILES += hardware/qcom/display/config/qdcm_calib_data_trinket_default.xml:$(TARGET_COPY_OUT_VENDOR)/etc/qdcm_calib_data_nt36672_truly_fhd_video_mode_dsi_panel.xml
Qing Huangeb785ce2019-04-01 11:28:03 +080076
Xu Yang69281ee2019-06-20 15:09:20 +080077#QDCM calibration xml file base on Rennell FHD+ visionox panel
Renchao Liu5aa963a2019-11-01 14:58:50 +080078PRODUCT_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
79PRODUCT_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
Renchao Liu3b5c2ff2020-06-04 16:50:10 +080080#QDCM calibration xml file for sharp 120hz panel etc
81PRODUCT_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
82PRODUCT_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
83PRODUCT_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
84PRODUCT_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
85PRODUCT_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
86PRODUCT_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
87PRODUCT_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
88PRODUCT_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
89PRODUCT_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
90PRODUCT_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
91
Xu Yang69281ee2019-06-20 15:09:20 +080092
Naseer Ahmedb5c9c362018-12-18 15:48:41 -050093PRODUCT_PROPERTY_OVERRIDES += \
94 persist.demo.hdmirotationlock=false \
95 persist.sys.sf.color_saturation=1.0 \
96 debug.sf.hw=0 \
97 debug.egl.hw=0 \
Naseer Ahmedb5c9c362018-12-18 15:48:41 -050098 debug.mdpcomp.logs=0 \
Naseer Ahmedb5c9c362018-12-18 15:48:41 -050099 vendor.gralloc.disable_ubwc=0 \
100 vendor.display.disable_scaler=0 \
101 vendor.display.disable_inline_rotator=1 \
102 vendor.display.disable_decimation=1 \
103 vendor.display.enable_null_display=0 \
104 vendor.display.disable_excl_rect=0 \
105 vendor.display.comp_mask=0 \
Sushil Chauhan1c848712019-05-16 10:00:59 -0700106 vendor.display.enable_default_color_mode=1 \
Padmanabhan Komanduru331f6ca2019-03-18 14:57:56 +0530107 vendor.display.enable_optimize_refresh=1 \
Sushil Chauhan1c848712019-05-16 10:00:59 -0700108 vendor.display.disable_ui_3d_tonemap=1
Naseer Ahmedb5c9c362018-12-18 15:48:41 -0500109
Naseer Ahmeda887f8a2019-02-28 19:36:23 -0500110#Set WCG properties
Padmanabhan Komanduru44852c72019-08-19 19:19:06 +0530111ifeq ($(TARGET_BOARD_PLATFORM), sm8150)
Naseer Ahmeda887f8a2019-02-28 19:36:23 -0500112PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.surface_flinger.has_wide_color_display=true
113PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.surface_flinger.has_HDR_display=true
114PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.surface_flinger.use_color_management=true
115PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.surface_flinger.wcg_composition_dataspace=143261696
Naseer Ahmed4671fa32019-09-25 15:30:10 -0400116PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.surface_flinger.protected_contents=true
Padmanabhan Komanduru44852c72019-08-19 19:19:06 +0530117endif
Naseer Ahmeda887f8a2019-02-28 19:36:23 -0500118
Naseer Ahmedb5c9c362018-12-18 15:48:41 -0500119ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
120# Recovery is enabled, logging is enabled
121PRODUCT_PROPERTY_OVERRIDES += \
122 vendor.display.disable_hw_recovery_dump=0
123else
124# Recovery is enabled, logging is disabled
125PRODUCT_PROPERTY_OVERRIDES += \
126 vendor.display.disable_hw_recovery_dump=1
127endif
128
129# Properties using default value:
130# vendor.display.disable_hw_recovery=0
131
132# This matrix should be in column major order, per SurfaceFlinger requirement
133# 1.0 0.0 0.0
134# 0.0 1.0 0.0
135# 0.0 0.0 1.0
136PRODUCT_PROPERTY_OVERRIDES += \
137 vendor.display.dataspace_saturation_matrix=1.0,0.0,0.0,0.0,1.0,0.0,0.0,0.0,1.0
Ashu Sharmace45ef02019-09-20 11:45:29 +0530138
139ifneq ($(TARGET_HAS_LOW_RAM),true)
140PRODUCT_PACKAGES += vendor.display.color@1.0.vendor \
141 vendor.display.color@1.1.vendor \
142 vendor.display.color@1.2.vendor \
143 vendor.display.color@1.3.vendor \
144 vendor.display.postproc@1.0.vendor \
145 vendor.display.color@1.0-service \
146 vendor.display.color@1.0-service.rc \
147 ppd
148endif