blob: 9a2221bb52552bcf0b2129aa3ec54b026b36c753 [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-oriole.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/oriole/proprietary/device-vendor.mk)
linpeterf3d8bf62021-03-17 09:27:12 +080024$(call inherit-product-if-exists, vendor/google_devices/raviole/proprietary/oriole/device-vendor-oriole.mk)
PEI-HSIEN KUO36dd88a2021-03-18 19:39:38 +080025$(call inherit-product-if-exists, vendor/google/camera/devices/raviole/oriole/device-vendor.mk)
Ching-Sung Li05395df2021-05-24 11:23:59 +080026$(call inherit-product-if-exists, vendor/google_devices/raviole/proprietary/WallpapersOriole.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/oriole/overlay
30
Robert Lee09c3fd32021-08-16 06:21:06 +000031include device/google/raviole/audio/oriole/audio-tables.mk
Robin Pengcd374d82021-02-23 20:00:46 +080032include device/google/gs101/device-shipping-common.mk
Ilya Matyukhin99725eb2021-05-18 00:58:22 -070033include device/google/gs101/fingerprint/udfps_common.mk
Robin Pengcd374d82021-02-23 20:00:46 +080034include hardware/google/pixel/vibrator/cs40l25/device.mk
35
Ilya Matyukhin99725eb2021-05-18 00:58:22 -070036ifeq ($(filter factory_oriole, $(TARGET_PRODUCT)),)
37include device/google/gs101/fingerprint/udfps_shipping.mk
38else
39include device/google/gs101/fingerprint/udfps_factory.mk
40endif
41
42
Robin Pengcd374d82021-02-23 20:00:46 +080043# Init files
44PRODUCT_COPY_FILES += \
Robin Peng334022f2021-05-05 12:01:32 +080045 device/google/raviole/conf/init.raviole.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.raviole.rc \
Robin Pengcd374d82021-02-23 20:00:46 +080046 device/google/raviole/conf/init.oriole.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.oriole.rc
47
48# Recovery files
49PRODUCT_COPY_FILES += \
50 device/google/gs101/conf/init.recovery.device.rc:$(TARGET_COPY_OUT_RECOVERY)/root/init.recovery.oriole.rc
51
52# insmod files
53PRODUCT_COPY_FILES += \
54 device/google/raviole/init.insmod.oriole.cfg:$(TARGET_COPY_OUT_VENDOR)/etc/init.insmod.oriole.cfg
55
56# Thermal Config
57PRODUCT_COPY_FILES += \
TeYuan Wang60d11bc2021-03-30 17:14:52 +080058 device/google/raviole/thermal_info_config_oriole.json:$(TARGET_COPY_OUT_VENDOR)/etc/thermal_info_config.json \
59 device/google/raviole/thermal_info_config_oriole_WHI_A.json:$(TARGET_COPY_OUT_VENDOR)/etc/thermal_info_config_WHI_A.json
Robin Pengcd374d82021-02-23 20:00:46 +080060
Cheney Niab920162021-06-28 13:47:54 +080061# Bluetooth
62PRODUCT_PRODUCT_PROPERTIES += \
63 persist.bluetooth.a2dp_aac.vbr_supported=true
64
Labib68270de2021-05-05 17:15:43 +080065# Bluetooth Tx power caps for oriole
66PRODUCT_COPY_FILES += \
Ted Wange241d592021-07-19 15:33:46 +080067 $(LOCAL_PATH)/bluetooth_power_limits_oriole.csv:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_power_limits.csv \
Ted Wang6918ecc2021-08-05 11:33:20 +080068 $(LOCAL_PATH)/bluetooth_power_limits_oriole_jp.csv:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_power_limits_JP.csv \
Ted Wange241d592021-07-19 15:33:46 +080069 $(LOCAL_PATH)/bluetooth_power_limits_G9S9B_US.csv:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_power_limits_G9S9B_US.csv \
Ted Wang3976daf2021-08-02 15:57:37 +080070 $(LOCAL_PATH)/bluetooth_power_limits_GB7N6_US.csv:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_power_limits_GB7N6_US.csv \
71 $(LOCAL_PATH)/bluetooth_power_limits_G9S9B_EU.csv:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_power_limits_G9S9B_EU.csv \
72 $(LOCAL_PATH)/bluetooth_power_limits_GB7N6_EU.csv:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_power_limits_GB7N6_EU.csv
Labib68270de2021-05-05 17:15:43 +080073
Ted Wang6918ecc2021-08-05 11:33:20 +080074
Ted Wang34a89632021-07-15 18:46:57 +080075# Bluetooth SAR test tool
76PRODUCT_PACKAGES_DEBUG += \
77 sar_test
78
Jack Wu6f51c2a2021-08-31 21:45:53 +080079# WirelessCharger
80DEVICE_PRODUCT_COMPATIBILITY_MATRIX_FILE += device/google/gs101/device_framework_matrix_product_wireless.xml
81
Robin Pengcd374d82021-02-23 20:00:46 +080082# MIPI Coex Configs
83PRODUCT_COPY_FILES += \
Eddie Tashjian7ecf2242021-03-25 13:25:38 -070084 device/google/raviole/radio/oriole_display_mipi_coex_table.csv:$(TARGET_COPY_OUT_VENDOR)/etc/modem/display_primary_mipi_coex_table.csv \
Jie Songe4885972021-04-19 17:50:26 +000085 device/google/raviole/radio/oriole_camera_front_mipi_coex_table.csv:$(TARGET_COPY_OUT_VENDOR)/etc/modem/camera_front_mipi_coex_table.csv \
86 device/google/raviole/radio/oriole_camera_rear_wide_mipi_coex_table.csv:$(TARGET_COPY_OUT_VENDOR)/etc/modem/camera_rear_wide_mipi_coex_table.csv
Robin Pengcd374d82021-02-23 20:00:46 +080087
88# Camera
89PRODUCT_COPY_FILES += \
90 device/google/raviole/media_profiles_oriole.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_V1_0.xml
91
Long Ling82756612021-04-30 15:52:57 -070092# Display Config
93PRODUCT_COPY_FILES += \
Long Lingaaf6f632021-06-21 15:45:58 -070094 device/google/raviole/oriole/display_golden_cal0.pb:$(TARGET_COPY_OUT_VENDOR)/etc/display_golden_cal0.pb \
Long Ling82756612021-04-30 15:52:57 -070095 device/google/raviole/oriole/display_colordata_dev_cal0.pb:$(TARGET_COPY_OUT_VENDOR)/etc/display_colordata_dev_cal0.pb
96
Robin Pengcd374d82021-02-23 20:00:46 +080097# NFC
98PRODUCT_COPY_FILES += \
George Changb2562832021-08-17 00:51:25 +080099 frameworks/native/data/etc/android.hardware.nfc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.xml \
100 frameworks/native/data/etc/android.hardware.nfc.hce.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hce.xml \
101 frameworks/native/data/etc/android.hardware.nfc.hcef.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hcef.xml \
102 frameworks/native/data/etc/com.nxp.mifare.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.nxp.mifare.xml \
103 frameworks/native/data/etc/android.hardware.nfc.uicc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.uicc.xml \
104 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 +0800105 device/google/raviole/nfc/libnfc-hal-st.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libnfc-hal-st.conf \
106 device/google/raviole/nfc/libnfc-nci.conf:$(TARGET_COPY_OUT_PRODUCT)/etc/libnfc-nci.conf
107
George Changb2562832021-08-17 00:51:25 +0800108PRODUCT_PACKAGES += \
109 NfcNci \
110 Tag \
111 android.hardware.nfc@1.2-service.st
112
113# SecureElement
114PRODUCT_PACKAGES += \
115 android.hardware.secure_element@1.2-service-gto
116
117PRODUCT_COPY_FILES += \
118 frameworks/native/data/etc/android.hardware.se.omapi.ese.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.se.omapi.ese.xml \
119 frameworks/native/data/etc/android.hardware.se.omapi.uicc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.se.omapi.uicc.xml \
120 device/google/raviole/nfc/libse-gto-hal.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libse-gto-hal.conf
George Changd48ff142021-03-10 20:35:15 +0800121
Robin Pengcd374d82021-02-23 20:00:46 +0800122DEVICE_MANIFEST_FILE += \
George Changb2562832021-08-17 00:51:25 +0800123 device/google/raviole/nfc/manifest_nfc.xml \
124 device/google/raviole/nfc/manifest_se.xml
Robin Pengcd374d82021-02-23 20:00:46 +0800125
126# Vibrator HAL
127PRODUCT_PRODUCT_PROPERTIES +=\
128 ro.vendor.vibrator.hal.long.frequency.shift=15
Jimmy Shiu7700cf02021-06-18 13:54:27 +0800129PRODUCT_PRODUCT_PROPERTIES += \
130 vendor.powerhal.adpf.rate=11111111
Vince Leung63d0be62021-08-27 20:07:54 +0000131ACTUATOR_MODEL := luxshare_ict_081545
Robin Pengcd374d82021-02-23 20:00:46 +0800132
133# Voice packs for Text-To-Speech
134PRODUCT_COPY_FILES += \
Peter_Liang55f8b7c2021-05-20 17:20:36 +0800135 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\
136 device/google/raviole/tts/ja-jp/ja-jp-x-multi-r27.zvoice:product/tts/google/ja-jp/ja-jp-x-multi-r27.zvoice\
137 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\
138 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\
139 device/google/raviole/tts/fr-fr/fr-fr-x-multi-r27.zvoice:product/tts/google/fr-fr/fr-fr-x-multi-r27.zvoice\
140 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\
141 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\
142 device/google/raviole/tts/de-de/de-de-x-multi-r27.zvoice:product/tts/google/de-de/de-de-x-multi-r27.zvoice\
143 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\
144 device/google/raviole/tts/it-it/it-it-x-multi-r24.zvoice:product/tts/google/it-it/it-it-x-multi-r24.zvoice\
145 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\
146 device/google/raviole/tts/es-es/es-es-x-multi-r27.zvoice:product/tts/google/es-es/es-es-x-multi-r27.zvoice\
147 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
Cyan_Hsieh60a6c992021-03-11 14:44:54 +0800148
Benjamin Schwartzc798cb32021-03-18 17:55:40 -0700149# PowerStats HAL
Yanting Yang24333152021-05-03 15:43:06 +0800150PRODUCT_SOONG_NAMESPACES += \
151 device/google/raviole/powerstats/oriole \
152 device/google/raviole
Benjamin Schwartzc798cb32021-03-18 17:55:40 -0700153
Cyan_Hsieh60a6c992021-03-11 14:44:54 +0800154# Keyboard bottom padding in dp for portrait mode
155PRODUCT_PRODUCT_PROPERTIES += ro.com.google.ime.kb_pad_port_b=10
linpeter85646ce2020-12-17 21:18:41 +0800156
Daniel Solomon7494ecc2021-08-06 14:37:47 -0700157# Display
linpeter85646ce2020-12-17 21:18:41 +0800158PRODUCT_DEFAULT_PROPERTY_OVERRIDES += vendor.display.lbe.supported=1
Daniel Solomon7494ecc2021-08-06 14:37:47 -0700159PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.surface_flinger.set_idle_timer_ms=1500
Jack Wu6e0bb1c2019-01-17 21:38:27 +0800160
wenchangliu0e8a67f2021-08-18 11:02:49 +0800161# Media Performance Class 12
162PRODUCT_PROPERTY_OVERRIDES += ro.odm.build.media_performance_class=31
163
Jack Wu6e0bb1c2019-01-17 21:38:27 +0800164# userdebug specific
165ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
166 PRODUCT_COPY_FILES += \
167 device/google/gs101/init.hardware.wlc.rc.userdebug:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.$(PRODUCT_PLATFORM).wlc.rc
168endif
terrycrhuangfd95a682021-04-14 17:32:20 +0800169
170# Increment the SVN for any official public releases
171PRODUCT_VENDOR_PROPERTIES += \
172 ro.vendor.build.svn=1
shawnlin1c491622021-04-22 13:27:45 +0800173
174# Hide cutout overlays
175PRODUCT_PACKAGES += \
176 NoCutoutOverlay \
177 AvoidAppsInCutoutOverlay
Yanting Yang24333152021-05-03 15:43:06 +0800178
179# SKU specific RROs
180PRODUCT_PACKAGES += \
Yanting Yang7a754f92021-08-23 13:14:56 +0800181 SettingsOverlayGR1YH \
182 SettingsOverlayGB7N6 \
183 SettingsOverlayG9S9B
Kris Chen74dfc0c2021-05-07 21:38:46 +0800184
185# Fingerprint antispoof property
186PRODUCT_PRODUCT_PROPERTIES +=\
187 persist.vendor.fingerprint.disable.fake.override=none
Michael Ayoubica6b3522021-05-25 02:09:47 +0000188
189# DCK properties based on target
190PRODUCT_PROPERTY_OVERRIDES += \
191 ro.gms.dck.eligible_wcc=2
Robin Peng6e4640b2021-06-01 18:03:27 +0800192
193# Trusty liboemcrypto.so
194PRODUCT_SOONG_NAMESPACES += vendor/google_devices/raviole/prebuilts
Bill Lin964bf232021-06-04 08:48:58 +0800195
196# Set support one-handed mode
197PRODUCT_PRODUCT_PROPERTIES += \
198 ro.support_one_handed_mode=true
Zhijun He59a30612021-07-09 11:33:45 -0700199
200# Enable camera exif model/make reporting
Charles Chiu57fc7062021-07-28 14:58:36 +0800201PRODUCT_VENDOR_PROPERTIES += \
Zhijun He59a30612021-07-09 11:33:45 -0700202 persist.vendor.camera.exif_reveal_make_model=true
jiabin58bd1ba2021-07-16 22:34:35 +0000203
204# Override default distortion output gain according to UX experiments
205PRODUCT_PRODUCT_PROPERTIES += \
206 vendor.audio.hapticgenerator.distortion.output.gain=0.5