blob: 33560bbac6b7b2b948a3ab45bbe5981bd08129c9 [file] [log] [blame]
Robin Pengcd374d82021-02-23 20:00:46 +08001#
2# Copyright (C) 2020 The Android Open-Source Project
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15#
16
Petri Gyntherb0580002021-09-02 14:26:57 -070017TARGET_KERNEL_DIR ?= device/google/raviole-kernel
18TARGET_BOARD_KERNEL_HEADERS := device/google/raviole-kernel/kernel-headers
Robin Pengcd374d82021-02-23 20:00:46 +080019
20$(call inherit-product-if-exists, vendor/google_devices/raviole/prebuilts/device-vendor-raven.mk)
21$(call inherit-product-if-exists, vendor/google_devices/gs101/prebuilts/device-vendor.mk)
22$(call inherit-product-if-exists, vendor/google_devices/gs101/proprietary/device-vendor.mk)
Bill Yic2e4a482021-03-17 05:53:25 +000023$(call inherit-product-if-exists, vendor/google_devices/raven/proprietary/device-vendor.mk)
linpeterf3d8bf62021-03-17 09:27:12 +080024$(call inherit-product-if-exists, vendor/google_devices/raviole/proprietary/raven/device-vendor-raven.mk)
PEI-HSIEN KUO36dd88a2021-03-18 19:39:38 +080025$(call inherit-product-if-exists, vendor/google/camera/devices/raviole/raven/device-vendor.mk)
Ching-Sung Lifb5e3892021-05-31 15:18:59 +080026$(call inherit-product-if-exists, vendor/google_devices/raviole/proprietary/WallpapersRaven.mk)
Robin Pengcd374d82021-02-23 20:00:46 +080027
leohsieh85d8c0b2021-08-30 22:22:49 +080028GOODIX_CONFIG_BUILD_VERSION := g6_trusty
Robin Pengcd374d82021-02-23 20:00:46 +080029DEVICE_PACKAGE_OVERLAYS += device/google/raviole/raven/overlay
30
Robert Lee09c3fd32021-08-16 06:21:06 +000031include device/google/raviole/audio/raven/audio-tables.mk
Robin Pengcd374d82021-02-23 20:00:46 +080032include device/google/gs101/device-shipping-common.mk
Ilya Matyukhin1d548252021-05-18 01:03:41 -070033include device/google/gs101/fingerprint/udfps_common.mk
yawensuc51621f2021-09-14 14:16:49 +080034include device/google/gs101/telephony/pktrouter.mk
Pattyb527e462021-09-15 15:57:52 +080035include device/google/gs101/bluetooth/bluetooth.mk
Ilya Matyukhin1d548252021-05-18 01:03:41 -070036
37ifeq ($(filter factory_raven, $(TARGET_PRODUCT)),)
38include device/google/gs101/fingerprint/udfps_shipping.mk
39else
40include device/google/gs101/fingerprint/udfps_factory.mk
41endif
42
Victor Liu0bc47d62021-04-20 22:15:02 +000043ifeq ($(filter factory_raven, $(TARGET_PRODUCT)),)
44include device/google/gs101/uwb/uwb.mk
45endif
Ilya Matyukhin1d548252021-05-18 01:03:41 -070046
Robin Pengcd374d82021-02-23 20:00:46 +080047include hardware/google/pixel/vibrator/cs40l25/device.mk
48
49PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.surface_flinger.support_kernel_idle_timer=true
Ady Abraham9a9d0242021-03-19 12:52:46 -070050PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.surface_flinger.enable_frame_rate_override=true
Robin Pengcd374d82021-02-23 20:00:46 +080051
52# Init files
53PRODUCT_COPY_FILES += \
Robin Peng334022f2021-05-05 12:01:32 +080054 device/google/raviole/conf/init.raviole.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.raviole.rc \
Robin Pengcd374d82021-02-23 20:00:46 +080055 device/google/raviole/conf/init.raven.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.raven.rc
56
57# Recovery files
58PRODUCT_COPY_FILES += \
59 device/google/gs101/conf/init.recovery.device.rc:$(TARGET_COPY_OUT_RECOVERY)/root/init.recovery.raven.rc
60
61# insmod files
62PRODUCT_COPY_FILES += \
63 device/google/raviole/init.insmod.raven.cfg:$(TARGET_COPY_OUT_VENDOR)/etc/init.insmod.raven.cfg
64
65# Thermal Config
66PRODUCT_COPY_FILES += \
67 device/google/raviole/thermal_info_config_raven.json:$(TARGET_COPY_OUT_VENDOR)/etc/thermal_info_config.json
68
Cheney Niab920162021-06-28 13:47:54 +080069# Bluetooth
70PRODUCT_PRODUCT_PROPERTIES += \
71 persist.bluetooth.a2dp_aac.vbr_supported=true
72
Labib68270de2021-05-05 17:15:43 +080073# Bluetooth Tx power caps for raven
74PRODUCT_COPY_FILES += \
Ted Wangd92243b2021-07-27 11:20:00 +080075 $(LOCAL_PATH)/bluetooth_power_limits_raven.csv:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_power_limits.csv \
Ted Wange540f7b2021-08-23 09:48:56 +080076 $(LOCAL_PATH)/bluetooth_power_limits_raven_us.csv:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_power_limits_US.csv \
77 $(LOCAL_PATH)/bluetooth_power_limits_raven_eu.csv:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_power_limits_EU.csv \
78 $(LOCAL_PATH)/bluetooth_power_limits_raven_jp.csv:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_power_limits_JP.csv
79
Labib68270de2021-05-05 17:15:43 +080080
Ted Wang34a89632021-07-15 18:46:57 +080081# Bluetooth SAR test tool
82PRODUCT_PACKAGES_DEBUG += \
83 sar_test
84
Jack Wu6f51c2a2021-08-31 21:45:53 +080085# WirelessCharger
86DEVICE_PRODUCT_COMPATIBILITY_MATRIX_FILE += device/google/gs101/device_framework_matrix_product_wireless.xml
87
Jie Song6b68ff72021-07-14 21:35:19 +000088# MIPI Coex Configs
89PRODUCT_COPY_FILES += \
90 device/google/raviole/radio/raven_camera_rear_tele_mipi_coex_table.csv:$(TARGET_COPY_OUT_VENDOR)/etc/modem/camera_rear_tele_mipi_coex_table.csv
91
Robin Pengcd374d82021-02-23 20:00:46 +080092# Camera
93PRODUCT_COPY_FILES += \
94 device/google/raviole/media_profiles_raven.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_V1_0.xml
95
96# Display Config
97PRODUCT_COPY_FILES += \
Long Ling82756612021-04-30 15:52:57 -070098 device/google/raviole/raven/display_golden_cal0.pb:$(TARGET_COPY_OUT_VENDOR)/etc/display_golden_cal0.pb \
99 device/google/raviole/raven/display_colordata_dev_cal0.pb:$(TARGET_COPY_OUT_VENDOR)/etc/display_colordata_dev_cal0.pb
Robin Pengcd374d82021-02-23 20:00:46 +0800100
linpetera6263cc2021-07-01 19:40:34 +0800101#config of display brightness dimming
linpeter2d185272021-08-13 18:46:54 +0800102PRODUCT_DEFAULT_PROPERTY_OVERRIDES += vendor.display.brightness.dimming.usage=2
linpetera6263cc2021-07-01 19:40:34 +0800103
Robin Pengcd374d82021-02-23 20:00:46 +0800104# NFC
105PRODUCT_COPY_FILES += \
George Chang8933f1b2021-08-17 00:51:25 +0800106 frameworks/native/data/etc/android.hardware.nfc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.xml \
107 frameworks/native/data/etc/android.hardware.nfc.hce.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hce.xml \
108 frameworks/native/data/etc/android.hardware.nfc.hcef.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hcef.xml \
109 frameworks/native/data/etc/com.nxp.mifare.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.nxp.mifare.xml \
110 frameworks/native/data/etc/android.hardware.nfc.uicc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.uicc.xml \
111 frameworks/native/data/etc/android.hardware.nfc.ese.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.ese.xml \
George Changd48ff142021-03-10 20:35:15 +0800112 device/google/raviole/nfc/libnfc-hal-st.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libnfc-hal-st.conf \
113 device/google/raviole/nfc/libnfc-nci-raven.conf:$(TARGET_COPY_OUT_PRODUCT)/etc/libnfc-nci.conf
114
George Chang8933f1b2021-08-17 00:51:25 +0800115PRODUCT_PACKAGES += \
116 NfcNci \
117 Tag \
118 android.hardware.nfc@1.2-service.st
119
120# SecureElement
121PRODUCT_PACKAGES += \
George Changc84c4602021-08-20 17:09:55 +0800122 android.hardware.secure_element@1.2-service-gto \
123 android.hardware.secure_element@1.2-service-gto-ese2
George Chang8933f1b2021-08-17 00:51:25 +0800124
125PRODUCT_COPY_FILES += \
126 frameworks/native/data/etc/android.hardware.se.omapi.ese.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.se.omapi.ese.xml \
127 frameworks/native/data/etc/android.hardware.se.omapi.uicc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.se.omapi.uicc.xml \
George Changc84c4602021-08-20 17:09:55 +0800128 device/google/raviole/nfc/libse-gto-hal.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libse-gto-hal.conf \
129 device/google/raviole/nfc/libse-gto-hal2.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libse-gto-hal2.conf
George Chang8933f1b2021-08-17 00:51:25 +0800130
Robin Pengcd374d82021-02-23 20:00:46 +0800131DEVICE_MANIFEST_FILE += \
George Chang8933f1b2021-08-17 00:51:25 +0800132 device/google/raviole/nfc/manifest_nfc.xml \
133 device/google/raviole/nfc/manifest_se.xml
Robin Pengcd374d82021-02-23 20:00:46 +0800134
George Changc84c4602021-08-20 17:09:55 +0800135
Robin Pengcd374d82021-02-23 20:00:46 +0800136# Vibrator HAL
137PRODUCT_PRODUCT_PROPERTIES +=\
138 ro.vendor.vibrator.hal.long.frequency.shift=15
Jimmy Shiu7700cf02021-06-18 13:54:27 +0800139PRODUCT_PRODUCT_PROPERTIES += \
140 vendor.powerhal.adpf.rate=8333333
Vince Leung63d0be62021-08-27 20:07:54 +0000141ACTUATOR_MODEL := luxshare_ict_081545
Robin Pengcd374d82021-02-23 20:00:46 +0800142
143# Voice packs for Text-To-Speech
144PRODUCT_COPY_FILES += \
Peter_Liang55f8b7c2021-05-20 17:20:36 +0800145 device/google/raviole/tts/ja-jp/ja-jp-x-multi-darwinn-wavernn-r27.zvoice:product/tts/google/ja-jp/ja-jp-x-multi-darwinn-wavernn-r27.zvoice\
146 device/google/raviole/tts/ja-jp/ja-jp-x-multi-r27.zvoice:product/tts/google/ja-jp/ja-jp-x-multi-r27.zvoice\
147 device/google/raviole/tts/ja-jp/ja-jp-x-multi-wavernn-r27.zvoice:product/tts/google/ja-jp/ja-jp-x-multi-wavernn-r27.zvoice\
148 device/google/raviole/tts/fr-fr/fr-fr-x-multi-darwinn-wavernn-r27.zvoice:product/tts/google/fr-fr/fr-fr-x-multi-darwinn-wavernn-r27.zvoice\
149 device/google/raviole/tts/fr-fr/fr-fr-x-multi-r27.zvoice:product/tts/google/fr-fr/fr-fr-x-multi-r27.zvoice\
150 device/google/raviole/tts/fr-fr/fr-fr-x-multi-wavernn-r27.zvoice:product/tts/google/fr-fr/fr-fr-x-multi-wavernn-r27.zvoice\
151 device/google/raviole/tts/de-de/de-de-x-multi-darwinn-wavernn-r27.zvoice:product/tts/google/de-de/de-de-x-multi-darwinn-wavernn-r27.zvoice\
152 device/google/raviole/tts/de-de/de-de-x-multi-r27.zvoice:product/tts/google/de-de/de-de-x-multi-r27.zvoice\
153 device/google/raviole/tts/de-de/de-de-x-multi-wavernn-r27.zvoice:product/tts/google/de-de/de-de-x-multi-wavernn-r27.zvoice\
154 device/google/raviole/tts/it-it/it-it-x-multi-r24.zvoice:product/tts/google/it-it/it-it-x-multi-r24.zvoice\
155 device/google/raviole/tts/es-es/es-es-x-multi-darwinn-wavernn-r27.zvoice:product/tts/google/es-es/es-es-x-multi-darwinn-wavernn-r27.zvoice\
156 device/google/raviole/tts/es-es/es-es-x-multi-r27.zvoice:product/tts/google/es-es/es-es-x-multi-r27.zvoice\
157 device/google/raviole/tts/es-es/es-es-x-multi-wavernn-r27.zvoice:product/tts/google/es-es/es-es-x-multi-wavernn-r27.zvoice
linpeter85646ce2020-12-17 21:18:41 +0800158
159# Display LBE
160PRODUCT_DEFAULT_PROPERTY_OVERRIDES += vendor.display.lbe.supported=1
Benjamin Schwartzc798cb32021-03-18 17:55:40 -0700161
wenchangliua768e6f2021-08-13 15:31:52 +0800162# Media Performance Class 12
163PRODUCT_PROPERTY_OVERRIDES += ro.odm.build.media_performance_class=31
164
Benjamin Schwartzc798cb32021-03-18 17:55:40 -0700165# PowerStats HAL
Yanting Yang3b1f8ef2021-05-31 03:53:40 +0800166PRODUCT_SOONG_NAMESPACES += \
167 device/google/raviole/powerstats/raven \
168 device/google/raviole
169
Jack Wu6e0bb1c2019-01-17 21:38:27 +0800170
171# userdebug specific
172ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
173 PRODUCT_COPY_FILES += \
174 device/google/gs101/init.hardware.wlc.rc.userdebug:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.$(PRODUCT_PLATFORM).wlc.rc
175endif
terrycrhuangfd95a682021-04-14 17:32:20 +0800176
177# Increment the SVN for any official public releases
178PRODUCT_VENDOR_PROPERTIES += \
Robin Peng221c80b2021-09-27 09:53:13 +0800179 ro.vendor.build.svn=4
shawnlin1c491622021-04-22 13:27:45 +0800180
181# Hide cutout overlays
182PRODUCT_PACKAGES += \
183 NoCutoutOverlay \
184 AvoidAppsInCutoutOverlay
Kris Chen74dfc0c2021-05-07 21:38:46 +0800185
186# Fingerprint antispoof property
187PRODUCT_PRODUCT_PROPERTIES +=\
188 persist.vendor.fingerprint.disable.fake.override=none
Cyan_Hsieha327e422021-05-26 11:56:31 +0800189
190# Keyboard side padding in dp for portrait mode
191PRODUCT_PRODUCT_PROPERTIES += ro.com.google.ime.kb_pad_port_r=11
192PRODUCT_PRODUCT_PROPERTIES += ro.com.google.ime.kb_pad_port_l=11
Michael Ayoubica6b3522021-05-25 02:09:47 +0000193
194# DCK properties based on target
195PRODUCT_PROPERTY_OVERRIDES += \
Michael Ayoubiadcaf472021-08-25 01:06:28 +0000196 ro.gms.dck.eligible_wcc=3
Yanting Yang3b1f8ef2021-05-31 03:53:40 +0800197
198# SKU specific RROs
199PRODUCT_PACKAGES += \
Yanting Yangc1583a92021-08-23 13:34:59 +0800200 SettingsOverlayGF5KQ \
201 SettingsOverlayGLU0G \
202 SettingsOverlayG8V0U
Robin Peng6e4640b2021-06-01 18:03:27 +0800203
204# Trusty liboemcrypto.so
205PRODUCT_SOONG_NAMESPACES += vendor/google_devices/raviole/prebuilts
Bill Lin964bf232021-06-04 08:48:58 +0800206
207# Set support one-handed mode
208PRODUCT_PRODUCT_PROPERTIES += \
209 ro.support_one_handed_mode=true
Zhijun He59a30612021-07-09 11:33:45 -0700210
211# Enable camera exif model/make reporting
Charles Chiu57fc7062021-07-28 14:58:36 +0800212PRODUCT_VENDOR_PROPERTIES += \
Zhijun He59a30612021-07-09 11:33:45 -0700213 persist.vendor.camera.exif_reveal_make_model=true
jonerlin972d2c22021-06-29 16:36:29 +0800214
215# Bluetooth HAL
216PRODUCT_PACKAGES += \
jonerlin972d2c22021-06-29 16:36:29 +0800217 bt_vendor.conf
jiabinc4ffb642021-07-16 22:34:35 +0000218
219# Override default distortion output gain according to UX experiments
220PRODUCT_PRODUCT_PROPERTIES += \
221 vendor.audio.hapticgenerator.distortion.output.gain=0.5