blob: 3caae073c1fdf4b2283c157cfe675b06ac7a10b1 [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
yawensuc51621f2021-09-14 14:16:49 +080034include device/google/gs101/telephony/pktrouter.mk
Robin Pengcd374d82021-02-23 20:00:46 +080035include hardware/google/pixel/vibrator/cs40l25/device.mk
Adam Shih6e05ed02022-08-16 13:56:53 +080036include device/google/gs-common/bcmbt/bluetooth.mk
Robin Pengcd374d82021-02-23 20:00:46 +080037
Ilya Matyukhin99725eb2021-05-18 00:58:22 -070038ifeq ($(filter factory_oriole, $(TARGET_PRODUCT)),)
39include device/google/gs101/fingerprint/udfps_shipping.mk
40else
41include device/google/gs101/fingerprint/udfps_factory.mk
42endif
43
Krzysztof KosiƄski6165da42022-09-13 01:56:24 +000044# go/lyric-soong-variables
45$(call soong_config_set,lyric,camera_hardware,oriole)
Sasha Smundakfbe1c662021-12-15 09:17:53 -080046$(call soong_config_set,lyric,tuning_product,oriole)
47$(call soong_config_set,google3a_config,target_device,oriole)
Ilya Matyukhin99725eb2021-05-18 00:58:22 -070048
Robin Pengcd374d82021-02-23 20:00:46 +080049# Init files
50PRODUCT_COPY_FILES += \
Robin Peng334022f2021-05-05 12:01:32 +080051 device/google/raviole/conf/init.raviole.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.raviole.rc \
Robin Pengcd374d82021-02-23 20:00:46 +080052 device/google/raviole/conf/init.oriole.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.oriole.rc
53
54# Recovery files
55PRODUCT_COPY_FILES += \
56 device/google/gs101/conf/init.recovery.device.rc:$(TARGET_COPY_OUT_RECOVERY)/root/init.recovery.oriole.rc
57
58# insmod files
59PRODUCT_COPY_FILES += \
60 device/google/raviole/init.insmod.oriole.cfg:$(TARGET_COPY_OUT_VENDOR)/etc/init.insmod.oriole.cfg
61
62# Thermal Config
63PRODUCT_COPY_FILES += \
TeYuan Wang60d11bc2021-03-30 17:14:52 +080064 device/google/raviole/thermal_info_config_oriole.json:$(TARGET_COPY_OUT_VENDOR)/etc/thermal_info_config.json \
David Chao6c2519c2022-08-15 18:56:43 +080065 device/google/raviole/thermal_info_config_charge_oriole.json:$(TARGET_COPY_OUT_VENDOR)/etc/thermal_info_config_charge.json \
TeYuan Wang60d11bc2021-03-30 17:14:52 +080066 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 +080067
Jimmy Shiufdfe3e32022-01-22 05:04:01 +080068# Power HAL config
69PRODUCT_COPY_FILES += \
70 device/google/raviole/powerhint-oriole.json:$(TARGET_COPY_OUT_VENDOR)/etc/powerhint.json
71
Cheney Niab920162021-06-28 13:47:54 +080072# Bluetooth
73PRODUCT_PRODUCT_PROPERTIES += \
jonerlin6075bd62022-07-15 10:47:19 +080074 persist.bluetooth.a2dp_aac.vbr_supported=true \
75 persist.bluetooth.firmware.selection=BCM.hcd
Cheney Niab920162021-06-28 13:47:54 +080076
Labib68270de2021-05-05 17:15:43 +080077# Bluetooth Tx power caps for oriole
78PRODUCT_COPY_FILES += \
Ted Wange241d592021-07-19 15:33:46 +080079 $(LOCAL_PATH)/bluetooth_power_limits_oriole.csv:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_power_limits.csv \
Ted Wang6918ecc2021-08-05 11:33:20 +080080 $(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 +080081 $(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 +080082 $(LOCAL_PATH)/bluetooth_power_limits_GB7N6_US.csv:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_power_limits_GB7N6_US.csv \
83 $(LOCAL_PATH)/bluetooth_power_limits_G9S9B_EU.csv:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_power_limits_G9S9B_EU.csv \
84 $(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 +080085
Ted Wang6918ecc2021-08-05 11:33:20 +080086
jonerlin9c27ad62022-04-06 11:49:52 +080087# Bluetooth Hal Extension test tools
Ted Wang34a89632021-07-15 18:46:57 +080088PRODUCT_PACKAGES_DEBUG += \
jonerlin9c27ad62022-04-06 11:49:52 +080089 sar_test \
90 hci_inject
Ted Wang34a89632021-07-15 18:46:57 +080091
Adam Shihe41c2c22022-08-26 09:54:06 +080092# userdebug specific
93ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
94# Bluetooth LE Audio Hardware offload
95PRODUCT_PRODUCT_PROPERTIES += \
96 ro.bluetooth.leaudio_offload.supported=true \
97 persist.bluetooth.leaudio_offload.disabled=true \
98 persist.bluetooth.le_audio_test=false
99endif
100
101# Bluetooth HAL
102PRODUCT_COPY_FILES += \
103 device/google/raviole/bluetooth/bt_vendor_overlay.conf:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/bt_vendor_overlay.conf
104
105
Jack Wu6f51c2a2021-08-31 21:45:53 +0800106# WirelessCharger
107DEVICE_PRODUCT_COMPATIBILITY_MATRIX_FILE += device/google/gs101/device_framework_matrix_product_wireless.xml
108
Robin Pengcd374d82021-02-23 20:00:46 +0800109# MIPI Coex Configs
110PRODUCT_COPY_FILES += \
Eddie Tashjian7ecf2242021-03-25 13:25:38 -0700111 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 +0000112 device/google/raviole/radio/oriole_camera_front_mipi_coex_table.csv:$(TARGET_COPY_OUT_VENDOR)/etc/modem/camera_front_mipi_coex_table.csv \
113 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 +0800114
115# Camera
116PRODUCT_COPY_FILES += \
117 device/google/raviole/media_profiles_oriole.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_V1_0.xml
118
JimiChene2d48972022-06-30 19:39:15 +0800119PRODUCT_PROPERTY_OVERRIDES += \
120 persist.vendor.camera.fixed_fps_range_boost=1
121
Long Ling82756612021-04-30 15:52:57 -0700122# Display Config
123PRODUCT_COPY_FILES += \
Long Lingaaf6f632021-06-21 15:45:58 -0700124 device/google/raviole/oriole/display_golden_cal0.pb:$(TARGET_COPY_OUT_VENDOR)/etc/display_golden_cal0.pb \
Long Ling82756612021-04-30 15:52:57 -0700125 device/google/raviole/oriole/display_colordata_dev_cal0.pb:$(TARGET_COPY_OUT_VENDOR)/etc/display_colordata_dev_cal0.pb
126
Robin Pengcd374d82021-02-23 20:00:46 +0800127# NFC
128PRODUCT_COPY_FILES += \
George Chang8933f1b2021-08-17 00:51:25 +0800129 frameworks/native/data/etc/android.hardware.nfc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.xml \
130 frameworks/native/data/etc/android.hardware.nfc.hce.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hce.xml \
131 frameworks/native/data/etc/android.hardware.nfc.hcef.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hcef.xml \
132 frameworks/native/data/etc/com.nxp.mifare.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.nxp.mifare.xml \
133 frameworks/native/data/etc/android.hardware.nfc.uicc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.uicc.xml \
134 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 +0800135 device/google/raviole/nfc/libnfc-hal-st.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libnfc-hal-st.conf \
136 device/google/raviole/nfc/libnfc-nci.conf:$(TARGET_COPY_OUT_PRODUCT)/etc/libnfc-nci.conf
137
George Chang8933f1b2021-08-17 00:51:25 +0800138PRODUCT_PACKAGES += \
139 NfcNci \
140 Tag \
George Change8712cc2022-03-30 22:13:09 +0800141 android.hardware.nfc-service.st
George Chang8933f1b2021-08-17 00:51:25 +0800142
143# SecureElement
144PRODUCT_PACKAGES += \
George Changc84c4602021-08-20 17:09:55 +0800145 android.hardware.secure_element@1.2-service-gto \
146 android.hardware.secure_element@1.2-service-gto-ese2
George Chang8933f1b2021-08-17 00:51:25 +0800147
148PRODUCT_COPY_FILES += \
149 frameworks/native/data/etc/android.hardware.se.omapi.ese.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.se.omapi.ese.xml \
150 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 +0800151 device/google/raviole/nfc/libse-gto-hal.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libse-gto-hal.conf \
152 device/google/raviole/nfc/libse-gto-hal2.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libse-gto-hal2.conf
George Changd48ff142021-03-10 20:35:15 +0800153
Robin Pengcd374d82021-02-23 20:00:46 +0800154DEVICE_MANIFEST_FILE += \
George Chang8933f1b2021-08-17 00:51:25 +0800155 device/google/raviole/nfc/manifest_se.xml
Robin Pengcd374d82021-02-23 20:00:46 +0800156
157# Vibrator HAL
158PRODUCT_PRODUCT_PROPERTIES +=\
chasewuf6805292022-04-14 15:30:02 +0800159 ro.vendor.vibrator.hal.long.frequency.shift=15 \
160 ro.vendor.vibrator.hal.device.mass=0.205 \
161 ro.vendor.vibrator.hal.loc.coeff=2.25
Jimmy Shiu1fef2282021-11-10 00:07:25 +0800162
Vince Leung63d0be62021-08-27 20:07:54 +0000163ACTUATOR_MODEL := luxshare_ict_081545
Robin Pengcd374d82021-02-23 20:00:46 +0800164
Benjamin Schwartzc798cb32021-03-18 17:55:40 -0700165# PowerStats HAL
Yanting Yang24333152021-05-03 15:43:06 +0800166PRODUCT_SOONG_NAMESPACES += \
167 device/google/raviole/powerstats/oriole \
168 device/google/raviole
Benjamin Schwartzc798cb32021-03-18 17:55:40 -0700169
Cyan_Hsieh60a6c992021-03-11 14:44:54 +0800170# Keyboard bottom padding in dp for portrait mode
171PRODUCT_PRODUCT_PROPERTIES += ro.com.google.ime.kb_pad_port_b=10
linpeter85646ce2020-12-17 21:18:41 +0800172
Daniel Solomon7494ecc2021-08-06 14:37:47 -0700173# Display
linpeter85646ce2020-12-17 21:18:41 +0800174PRODUCT_DEFAULT_PROPERTY_OVERRIDES += vendor.display.lbe.supported=1
Daniel Solomon7494ecc2021-08-06 14:37:47 -0700175PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.surface_flinger.set_idle_timer_ms=1500
Jack Wu6e0bb1c2019-01-17 21:38:27 +0800176
wenchangliu0e8a67f2021-08-18 11:02:49 +0800177# Media Performance Class 12
178PRODUCT_PROPERTY_OVERRIDES += ro.odm.build.media_performance_class=31
179
Jack Wu6e0bb1c2019-01-17 21:38:27 +0800180# userdebug specific
181ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
182 PRODUCT_COPY_FILES += \
Ken Tsou97db8552022-03-16 17:50:30 +0800183 device/google/gs101/init.hardware.wlc.rc.userdebug:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.wlc.rc
Jack Wu6e0bb1c2019-01-17 21:38:27 +0800184endif
terrycrhuangfd95a682021-04-14 17:32:20 +0800185
186# Increment the SVN for any official public releases
187PRODUCT_VENDOR_PROPERTIES += \
Steve Berbaryb82247d2022-10-03 19:28:26 +0000188 ro.vendor.build.svn=41
shawnlin1c491622021-04-22 13:27:45 +0800189
shawnlin6c363972022-02-15 13:40:37 +0800190# Set support hide display cutout feature
191PRODUCT_PRODUCT_PROPERTIES += \
192 ro.support_hide_display_cutout=true
193
shawnlin1c491622021-04-22 13:27:45 +0800194# Hide cutout overlays
195PRODUCT_PACKAGES += \
196 NoCutoutOverlay \
197 AvoidAppsInCutoutOverlay
Yanting Yang24333152021-05-03 15:43:06 +0800198
199# SKU specific RROs
200PRODUCT_PACKAGES += \
Yanting Yang7a754f92021-08-23 13:14:56 +0800201 SettingsOverlayGR1YH \
202 SettingsOverlayGB7N6 \
203 SettingsOverlayG9S9B
Kris Chen74dfc0c2021-05-07 21:38:46 +0800204
205# Fingerprint antispoof property
206PRODUCT_PRODUCT_PROPERTIES +=\
207 persist.vendor.fingerprint.disable.fake.override=none
Michael Ayoubica6b3522021-05-25 02:09:47 +0000208
Kris Chen36cf68c2022-04-19 22:12:00 +0800209# Fingerprint HAL
210PRODUCT_VENDOR_PROPERTIES += \
Kris Chenf5141282022-05-24 20:15:22 +0800211 persist.vendor.udfps.lhbm_controlled_in_hal_supported=true \
212 persist.vendor.udfps.als_feed_forward_supported=true
213
Kris Chen36cf68c2022-04-19 22:12:00 +0800214
Michael Ayoubica6b3522021-05-25 02:09:47 +0000215# DCK properties based on target
216PRODUCT_PROPERTY_OVERRIDES += \
217 ro.gms.dck.eligible_wcc=2
Robin Peng6e4640b2021-06-01 18:03:27 +0800218
219# Trusty liboemcrypto.so
220PRODUCT_SOONG_NAMESPACES += vendor/google_devices/raviole/prebuilts
Bill Lin964bf232021-06-04 08:48:58 +0800221
222# Set support one-handed mode
223PRODUCT_PRODUCT_PROPERTIES += \
224 ro.support_one_handed_mode=true
Zhijun He59a30612021-07-09 11:33:45 -0700225
226# Enable camera exif model/make reporting
Charles Chiu57fc7062021-07-28 14:58:36 +0800227PRODUCT_VENDOR_PROPERTIES += \
Zhijun He59a30612021-07-09 11:33:45 -0700228 persist.vendor.camera.exif_reveal_make_model=true
jonerlin972d2c22021-06-29 16:36:29 +0800229
Mars Lineabb3bf2022-06-08 22:11:37 +0800230# tetheroffload HAL
231PRODUCT_PACKAGES += \
232 vendor.samsung_slsi.hardware.tetheroffload@1.1-service
233
jiabinc4ffb642021-07-16 22:34:35 +0000234# Override default distortion output gain according to UX experiments
235PRODUCT_PRODUCT_PROPERTIES += \
236 vendor.audio.hapticgenerator.distortion.output.gain=0.5
Martin Liubbb311a2021-10-05 12:24:18 +0000237
238# Set zram size
239PRODUCT_VENDOR_PROPERTIES += \
240 vendor.zram.size=3g
Alex Hongb8033582021-11-17 19:10:08 +0800241
242# This device is shipped with 31 (Android S)
243PRODUCT_SHIPPING_API_LEVEL := 31
Alice Kuo8ee46192021-12-17 13:28:08 +0800244
justinweng07e8b012022-01-25 15:45:21 +0800245# declare use of spatial audio
246PRODUCT_PROPERTY_OVERRIDES += \
247 ro.audio.spatializer_enabled=true
248
249PRODUCT_PACKAGES += \
250 libspatialaudio
251
Ben Murdochb5b42572022-03-10 10:44:27 +0000252# Device features
253PRODUCT_COPY_FILES += \
254 frameworks/native/data/etc/handheld_core_hardware.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/handheld_core_hardware.xml
Matt Buckley0f365e02022-08-10 18:59:17 +0000255
256# Enable adpf cpu hint session for SurfaceFlinger
257PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \
258 debug.sf.enable_adpf_cpu_hint=true
Adam Shih7845ccf2022-10-21 14:39:46 +0800259
260# Location
261ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
262 PRODUCT_COPY_FILES += \
263 device/google/raviole/location/gps.xml.oriole:$(TARGET_COPY_OUT_VENDOR)/etc/gnss/gps.xml
264else
265 PRODUCT_COPY_FILES += \
266 device/google/raviole/location/gps_user.xml.oriole:$(TARGET_COPY_OUT_VENDOR)/etc/gnss/gps.xml
267endif
268