blob: 663af4e2e0d717bf610567d9adcd06b4a563bf5b [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
Adam Shih6e05ed02022-08-16 13:56:53 +080035include device/google/gs-common/bcmbt/bluetooth.mk
Adam Shih7b298482022-11-07 11:34:43 +080036include device/google/gs-common/touch/lsi/lsi.mk
Ilya Matyukhin1d548252021-05-18 01:03:41 -070037
38ifeq ($(filter factory_raven, $(TARGET_PRODUCT)),)
39include device/google/gs101/fingerprint/udfps_shipping.mk
40else
41include device/google/gs101/fingerprint/udfps_factory.mk
42endif
43
Victor Liu0bc47d62021-04-20 22:15:02 +000044ifeq ($(filter factory_raven, $(TARGET_PRODUCT)),)
Victor Liu49d231b2021-10-26 12:00:09 -070045include device/google/raviole/uwb/uwb_calibration.mk
Victor Liu0bc47d62021-04-20 22:15:02 +000046endif
Ilya Matyukhin1d548252021-05-18 01:03:41 -070047
Robin Pengcd374d82021-02-23 20:00:46 +080048include hardware/google/pixel/vibrator/cs40l25/device.mk
49
Krzysztof Kosiński6165da42022-09-13 01:56:24 +000050# go/lyric-soong-variables
51$(call soong_config_set,lyric,camera_hardware,raven)
Sasha Smundakfbe1c662021-12-15 09:17:53 -080052$(call soong_config_set,lyric,tuning_product,raven)
53$(call soong_config_set,google3a_config,target_device,raven)
Krzysztof Kosiński0fc38d22021-11-02 21:00:10 -070054
Robin Pengcd374d82021-02-23 20:00:46 +080055PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.surface_flinger.support_kernel_idle_timer=true
Ady Abraham9a9d0242021-03-19 12:52:46 -070056PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.surface_flinger.enable_frame_rate_override=true
Robin Pengcd374d82021-02-23 20:00:46 +080057
58# Init files
59PRODUCT_COPY_FILES += \
Robin Peng334022f2021-05-05 12:01:32 +080060 device/google/raviole/conf/init.raviole.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.raviole.rc \
Robin Pengcd374d82021-02-23 20:00:46 +080061 device/google/raviole/conf/init.raven.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.raven.rc
62
63# Recovery files
64PRODUCT_COPY_FILES += \
65 device/google/gs101/conf/init.recovery.device.rc:$(TARGET_COPY_OUT_RECOVERY)/root/init.recovery.raven.rc
66
67# insmod files
68PRODUCT_COPY_FILES += \
69 device/google/raviole/init.insmod.raven.cfg:$(TARGET_COPY_OUT_VENDOR)/etc/init.insmod.raven.cfg
70
71# Thermal Config
72PRODUCT_COPY_FILES += \
David Chao6c2519c2022-08-15 18:56:43 +080073 device/google/raviole/thermal_info_config_raven.json:$(TARGET_COPY_OUT_VENDOR)/etc/thermal_info_config.json \
74 device/google/raviole/thermal_info_config_charge_raven.json:$(TARGET_COPY_OUT_VENDOR)/etc/thermal_info_config_charge.json
Robin Pengcd374d82021-02-23 20:00:46 +080075
Jimmy Shiufdfe3e32022-01-22 05:04:01 +080076# Power HAL config
77PRODUCT_COPY_FILES += \
78 device/google/raviole/powerhint-raven.json:$(TARGET_COPY_OUT_VENDOR)/etc/powerhint.json
79
Cheney Niab920162021-06-28 13:47:54 +080080# Bluetooth
81PRODUCT_PRODUCT_PROPERTIES += \
jonerlin6075bd62022-07-15 10:47:19 +080082 persist.bluetooth.a2dp_aac.vbr_supported=true \
83 persist.bluetooth.firmware.selection=BCM.hcd
Cheney Niab920162021-06-28 13:47:54 +080084
Labib68270de2021-05-05 17:15:43 +080085# Bluetooth Tx power caps for raven
86PRODUCT_COPY_FILES += \
Ted Wangd92243b2021-07-27 11:20:00 +080087 $(LOCAL_PATH)/bluetooth_power_limits_raven.csv:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_power_limits.csv \
Ted Wange540f7b2021-08-23 09:48:56 +080088 $(LOCAL_PATH)/bluetooth_power_limits_raven_us.csv:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_power_limits_US.csv \
89 $(LOCAL_PATH)/bluetooth_power_limits_raven_eu.csv:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_power_limits_EU.csv \
90 $(LOCAL_PATH)/bluetooth_power_limits_raven_jp.csv:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_power_limits_JP.csv
91
Adam Shihe41c2c22022-08-26 09:54:06 +080092# Bluetooth HAL
93PRODUCT_COPY_FILES += \
94 device/google/raviole/bluetooth/bt_vendor_overlay.conf:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/bt_vendor_overlay.conf
Labib68270de2021-05-05 17:15:43 +080095
jonerlin9c27ad62022-04-06 11:49:52 +080096# Bluetooth Hal Extension test tools
Ted Wang34a89632021-07-15 18:46:57 +080097PRODUCT_PACKAGES_DEBUG += \
jonerlin9c27ad62022-04-06 11:49:52 +080098 sar_test \
99 hci_inject
Ted Wang34a89632021-07-15 18:46:57 +0800100
Adam Shihe41c2c22022-08-26 09:54:06 +0800101# userdebug specific
102ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
103# Bluetooth LE Audio Hardware offload
104PRODUCT_PRODUCT_PROPERTIES += \
105 ro.bluetooth.leaudio_offload.supported=true \
106 persist.bluetooth.leaudio_offload.disabled=true \
107 persist.bluetooth.le_audio_test=false
108endif
109
Jack Wu6f51c2a2021-08-31 21:45:53 +0800110# WirelessCharger
111DEVICE_PRODUCT_COMPATIBILITY_MATRIX_FILE += device/google/gs101/device_framework_matrix_product_wireless.xml
112
Jie Song6b68ff72021-07-14 21:35:19 +0000113# MIPI Coex Configs
114PRODUCT_COPY_FILES += \
115 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
116
Robin Pengcd374d82021-02-23 20:00:46 +0800117# Camera
118PRODUCT_COPY_FILES += \
119 device/google/raviole/media_profiles_raven.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_V1_0.xml
120
121# Display Config
122PRODUCT_COPY_FILES += \
Long Ling82756612021-04-30 15:52:57 -0700123 device/google/raviole/raven/display_golden_cal0.pb:$(TARGET_COPY_OUT_VENDOR)/etc/display_golden_cal0.pb \
124 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 +0800125
linpetera6263cc2021-07-01 19:40:34 +0800126#config of display brightness dimming
linpeterf256ffb2022-08-19 15:17:11 +0800127PRODUCT_DEFAULT_PROPERTY_OVERRIDES += vendor.display.0.brightness.dimming.usage=1
linpetera6263cc2021-07-01 19:40:34 +0800128
Robin Pengcd374d82021-02-23 20:00:46 +0800129# NFC
130PRODUCT_COPY_FILES += \
George Chang8933f1b2021-08-17 00:51:25 +0800131 frameworks/native/data/etc/android.hardware.nfc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.xml \
132 frameworks/native/data/etc/android.hardware.nfc.hce.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hce.xml \
133 frameworks/native/data/etc/android.hardware.nfc.hcef.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hcef.xml \
134 frameworks/native/data/etc/com.nxp.mifare.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.nxp.mifare.xml \
135 frameworks/native/data/etc/android.hardware.nfc.uicc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.uicc.xml \
Victor Liu3d9d2892021-11-11 16:26:30 -0800136 frameworks/native/data/etc/android.hardware.nfc.ese.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.ese.xml
137
138ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
139PRODUCT_COPY_FILES += \
140 device/google/raviole/nfc/libnfc-hal-st-debug.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libnfc-hal-st.conf \
141 device/google/raviole/nfc/libnfc-nci-raven-debug.conf:$(TARGET_COPY_OUT_PRODUCT)/etc/libnfc-nci.conf
142else
143PRODUCT_COPY_FILES += \
George Changd48ff142021-03-10 20:35:15 +0800144 device/google/raviole/nfc/libnfc-hal-st.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libnfc-hal-st.conf \
145 device/google/raviole/nfc/libnfc-nci-raven.conf:$(TARGET_COPY_OUT_PRODUCT)/etc/libnfc-nci.conf
Victor Liu3d9d2892021-11-11 16:26:30 -0800146endif
George Changd48ff142021-03-10 20:35:15 +0800147
George Chang8933f1b2021-08-17 00:51:25 +0800148PRODUCT_PACKAGES += \
149 NfcNci \
150 Tag \
George Chang91a40962022-03-30 22:13:09 +0800151 android.hardware.nfc-service.st
George Chang8933f1b2021-08-17 00:51:25 +0800152
153# SecureElement
154PRODUCT_PACKAGES += \
George Changc84c4602021-08-20 17:09:55 +0800155 android.hardware.secure_element@1.2-service-gto \
156 android.hardware.secure_element@1.2-service-gto-ese2
George Chang8933f1b2021-08-17 00:51:25 +0800157
158PRODUCT_COPY_FILES += \
159 frameworks/native/data/etc/android.hardware.se.omapi.ese.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.se.omapi.ese.xml \
160 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 +0800161 device/google/raviole/nfc/libse-gto-hal.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libse-gto-hal.conf \
162 device/google/raviole/nfc/libse-gto-hal2.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libse-gto-hal2.conf
George Chang8933f1b2021-08-17 00:51:25 +0800163
Robin Pengcd374d82021-02-23 20:00:46 +0800164DEVICE_MANIFEST_FILE += \
George Chang8933f1b2021-08-17 00:51:25 +0800165 device/google/raviole/nfc/manifest_se.xml
Robin Pengcd374d82021-02-23 20:00:46 +0800166
George Changc84c4602021-08-20 17:09:55 +0800167
Robin Pengcd374d82021-02-23 20:00:46 +0800168# Vibrator HAL
169PRODUCT_PRODUCT_PROPERTIES +=\
chasewuf6805292022-04-14 15:30:02 +0800170 ro.vendor.vibrator.hal.long.frequency.shift=15 \
171 ro.vendor.vibrator.hal.device.mass=0.21 \
172 ro.vendor.vibrator.hal.loc.coeff=2.5
Jimmy Shiu1fef2282021-11-10 00:07:25 +0800173
Vince Leung63d0be62021-08-27 20:07:54 +0000174ACTUATOR_MODEL := luxshare_ict_081545
Robin Pengcd374d82021-02-23 20:00:46 +0800175
linpeter85646ce2020-12-17 21:18:41 +0800176# Display LBE
177PRODUCT_DEFAULT_PROPERTY_OVERRIDES += vendor.display.lbe.supported=1
Benjamin Schwartzc798cb32021-03-18 17:55:40 -0700178
wenchangliua768e6f2021-08-13 15:31:52 +0800179# Media Performance Class 12
180PRODUCT_PROPERTY_OVERRIDES += ro.odm.build.media_performance_class=31
181
Benjamin Schwartzc798cb32021-03-18 17:55:40 -0700182# PowerStats HAL
Yanting Yang3b1f8ef2021-05-31 03:53:40 +0800183PRODUCT_SOONG_NAMESPACES += \
184 device/google/raviole/powerstats/raven \
185 device/google/raviole
186
Jack Wu6e0bb1c2019-01-17 21:38:27 +0800187
188# userdebug specific
189ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
190 PRODUCT_COPY_FILES += \
Ken Tsou97db8552022-03-16 17:50:30 +0800191 device/google/gs101/init.hardware.wlc.rc.userdebug:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.wlc.rc
Jack Wu6e0bb1c2019-01-17 21:38:27 +0800192endif
terrycrhuangfd95a682021-04-14 17:32:20 +0800193
194# Increment the SVN for any official public releases
195PRODUCT_VENDOR_PROPERTIES += \
Steve Berbary1d38efc2022-11-11 17:38:53 +0000196 ro.vendor.build.svn=42
shawnlin1c491622021-04-22 13:27:45 +0800197
shawnlin6c363972022-02-15 13:40:37 +0800198# Set support hide display cutout feature
199PRODUCT_PRODUCT_PROPERTIES += \
200 ro.support_hide_display_cutout=true
201
shawnlin1c491622021-04-22 13:27:45 +0800202# Hide cutout overlays
203PRODUCT_PACKAGES += \
204 NoCutoutOverlay \
205 AvoidAppsInCutoutOverlay
Kris Chen74dfc0c2021-05-07 21:38:46 +0800206
207# Fingerprint antispoof property
208PRODUCT_PRODUCT_PROPERTIES +=\
209 persist.vendor.fingerprint.disable.fake.override=none
Cyan_Hsieha327e422021-05-26 11:56:31 +0800210
Kris Chen36cf68c2022-04-19 22:12:00 +0800211# Fingerprint HAL
212PRODUCT_VENDOR_PROPERTIES += \
Kris Chenf5141282022-05-24 20:15:22 +0800213 persist.vendor.udfps.lhbm_controlled_in_hal_supported=true \
214 persist.vendor.udfps.als_feed_forward_supported=true
215
Kris Chen36cf68c2022-04-19 22:12:00 +0800216
Cyan_Hsieha327e422021-05-26 11:56:31 +0800217# Keyboard side padding in dp for portrait mode
218PRODUCT_PRODUCT_PROPERTIES += ro.com.google.ime.kb_pad_port_r=11
219PRODUCT_PRODUCT_PROPERTIES += ro.com.google.ime.kb_pad_port_l=11
Michael Ayoubica6b3522021-05-25 02:09:47 +0000220
221# DCK properties based on target
222PRODUCT_PROPERTY_OVERRIDES += \
Harpreet Eli Sangha07637b42022-06-01 11:04:45 +0900223 ro.gms.dck.eligible_wcc=3
Yanting Yang3b1f8ef2021-05-31 03:53:40 +0800224
225# SKU specific RROs
226PRODUCT_PACKAGES += \
Yanting Yangc1583a92021-08-23 13:34:59 +0800227 SettingsOverlayGF5KQ \
228 SettingsOverlayGLU0G \
229 SettingsOverlayG8V0U
Robin Peng6e4640b2021-06-01 18:03:27 +0800230
231# Trusty liboemcrypto.so
232PRODUCT_SOONG_NAMESPACES += vendor/google_devices/raviole/prebuilts
Bill Lin964bf232021-06-04 08:48:58 +0800233
234# Set support one-handed mode
235PRODUCT_PRODUCT_PROPERTIES += \
236 ro.support_one_handed_mode=true
Zhijun He59a30612021-07-09 11:33:45 -0700237
238# Enable camera exif model/make reporting
Charles Chiu57fc7062021-07-28 14:58:36 +0800239PRODUCT_VENDOR_PROPERTIES += \
Zhijun He59a30612021-07-09 11:33:45 -0700240 persist.vendor.camera.exif_reveal_make_model=true
jonerlin972d2c22021-06-29 16:36:29 +0800241
Mars Lineabb3bf2022-06-08 22:11:37 +0800242# tetheroffload HAL
243PRODUCT_PACKAGES += \
244 vendor.samsung_slsi.hardware.tetheroffload@1.1-service
245
jiabinc4ffb642021-07-16 22:34:35 +0000246# Override default distortion output gain according to UX experiments
247PRODUCT_PRODUCT_PROPERTIES += \
248 vendor.audio.hapticgenerator.distortion.output.gain=0.5
Martin Liubbb311a2021-10-05 12:24:18 +0000249
250# Set zram size
251PRODUCT_VENDOR_PROPERTIES += \
252 vendor.zram.size=3g
Alex Hongb8033582021-11-17 19:10:08 +0800253
254# This device is shipped with 31 (Android S)
255PRODUCT_SHIPPING_API_LEVEL := 31
Alice Kuo8ee46192021-12-17 13:28:08 +0800256
justinweng20a2a952022-01-25 15:45:21 +0800257# declare use of spatial audio
258PRODUCT_PROPERTY_OVERRIDES += \
259 ro.audio.spatializer_enabled=true
260
261PRODUCT_PACKAGES += \
262 libspatialaudio
263
Ben Murdochb5b42572022-03-10 10:44:27 +0000264# Device features
265PRODUCT_COPY_FILES += \
266 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 +0000267
268# Enable adpf cpu hint session for SurfaceFlinger
269PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \
270 debug.sf.enable_adpf_cpu_hint=true
Adam Shih7845ccf2022-10-21 14:39:46 +0800271
kuanyuhuang932c8172022-10-27 10:03:03 +0000272# Bluetooth OPUS codec
273PRODUCT_PRODUCT_PROPERTIES += \
274 persist.bluetooth.opus.enabled=true
Jakub Pawlowski9d6e6652022-10-31 22:04:26 +0100275
Adam Shih7845ccf2022-10-21 14:39:46 +0800276# Location
277ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
278 PRODUCT_COPY_FILES += \
279 device/google/raviole/location/gps.xml.raven:$(TARGET_COPY_OUT_VENDOR)/etc/gnss/gps.xml
280else
281 PRODUCT_COPY_FILES += \
282 device/google/raviole/location/gps_user.xml.raven:$(TARGET_COPY_OUT_VENDOR)/etc/gnss/gps.xml
283endif
lbill33234ac2022-11-03 18:08:44 +0000284
285# Biometrics virtual HAL for e2e testing
286PRODUCT_PACKAGES_DEBUG += \
287 android.hardware.biometrics.fingerprint-service.example
288