blob: 5e161ac61881b7718dc0a6c02ff28f87b44bd5c7 [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
Joe Onorato28b6e562023-04-14 10:58:58 -070017# Restrict the visibility of Android.bp files to improve build analysis time
18$(call inherit-product-if-exists, vendor/google/products/sources_pixel.mk)
19
Pindar Yang6fd62fe2024-08-29 11:58:09 +000020ifdef RELEASE_GOOGLE_ORIOLE_RADIO_DIR
21RELEASE_GOOGLE_PRODUCT_RADIO_DIR := $(RELEASE_GOOGLE_ORIOLE_RADIO_DIR)
22endif
23RELEASE_GOOGLE_BOOTLOADER_ORIOLE_DIR ?= pdk# Keep this for pdk TODO: b/327119000
24RELEASE_GOOGLE_PRODUCT_BOOTLOADER_DIR := bootloader/$(RELEASE_GOOGLE_BOOTLOADER_ORIOLE_DIR)
25$(call soong_config_set,raviole_bootloader,prebuilt_dir,$(RELEASE_GOOGLE_BOOTLOADER_ORIOLE_DIR))
26
27
Cyan_Hsiehc55ff342024-04-02 16:38:08 +080028TARGET_LINUX_KERNEL_VERSION := $(RELEASE_KERNEL_ORIOLE_VERSION)
Nina Chen40affb82024-03-08 18:29:57 +080029# Keeps flexibility for kasan and ufs builds
Cyan_Hsiehc55ff342024-04-02 16:38:08 +080030TARGET_KERNEL_DIR ?= $(RELEASE_KERNEL_ORIOLE_DIR)
31TARGET_BOARD_KERNEL_HEADERS ?= $(RELEASE_KERNEL_ORIOLE_DIR)/kernel-headers
Aaron Ding926ef412023-12-27 00:58:22 +080032
Robin Pengcd374d82021-02-23 20:00:46 +080033$(call inherit-product-if-exists, vendor/google_devices/raviole/prebuilts/device-vendor-oriole.mk)
34$(call inherit-product-if-exists, vendor/google_devices/gs101/prebuilts/device-vendor.mk)
35$(call inherit-product-if-exists, vendor/google_devices/gs101/proprietary/device-vendor.mk)
Bill Yic2e4a482021-03-17 05:53:25 +000036$(call inherit-product-if-exists, vendor/google_devices/oriole/proprietary/device-vendor.mk)
linpeterf3d8bf62021-03-17 09:27:12 +080037$(call inherit-product-if-exists, vendor/google_devices/raviole/proprietary/oriole/device-vendor-oriole.mk)
PEI-HSIEN KUO36dd88a2021-03-18 19:39:38 +080038$(call inherit-product-if-exists, vendor/google/camera/devices/raviole/oriole/device-vendor.mk)
Ching-Sung Li05395df2021-05-24 11:23:59 +080039$(call inherit-product-if-exists, vendor/google_devices/raviole/proprietary/WallpapersOriole.mk)
Robin Pengcd374d82021-02-23 20:00:46 +080040
41DEVICE_PACKAGE_OVERLAYS += device/google/raviole/oriole/overlay
42
Robert Lee09c3fd32021-08-16 06:21:06 +000043include device/google/raviole/audio/oriole/audio-tables.mk
Robin Pengcd374d82021-02-23 20:00:46 +080044include device/google/gs101/device-shipping-common.mk
yawensuc51621f2021-09-14 14:16:49 +080045include device/google/gs101/telephony/pktrouter.mk
Adam Shih6e05ed02022-08-16 13:56:53 +080046include device/google/gs-common/bcmbt/bluetooth.mk
Adam Shih71274422022-11-28 14:12:20 +080047include device/google/gs-common/touch/stm/stm11.mk
Robin Pengcd374d82021-02-23 20:00:46 +080048
chenkris686598b2023-06-08 09:59:13 +000049# Fingerprint HAL
50GOODIX_CONFIG_BUILD_VERSION := g6_trusty
chenkris79df8432023-06-13 03:06:29 +000051$(call inherit-product-if-exists, vendor/goodix/udfps/configuration/udfps_common.mk)
chenkris686598b2023-06-08 09:59:13 +000052ifeq ($(filter factory%, $(TARGET_PRODUCT)),)
chenkris79df8432023-06-13 03:06:29 +000053$(call inherit-product-if-exists, vendor/goodix/udfps/configuration/udfps_shipping.mk)
Ilya Matyukhin99725eb2021-05-18 00:58:22 -070054else
chenkris79df8432023-06-13 03:06:29 +000055$(call inherit-product-if-exists, vendor/goodix/udfps/configuration/udfps_factory.mk)
Ilya Matyukhin99725eb2021-05-18 00:58:22 -070056endif
57
Krzysztof Kosiński6165da42022-09-13 01:56:24 +000058# go/lyric-soong-variables
59$(call soong_config_set,lyric,camera_hardware,oriole)
Sasha Smundakfbe1c662021-12-15 09:17:53 -080060$(call soong_config_set,lyric,tuning_product,oriole)
61$(call soong_config_set,google3a_config,target_device,oriole)
Ilya Matyukhin99725eb2021-05-18 00:58:22 -070062
Robin Pengcd374d82021-02-23 20:00:46 +080063# Init files
64PRODUCT_COPY_FILES += \
Robin Peng334022f2021-05-05 12:01:32 +080065 device/google/raviole/conf/init.raviole.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.raviole.rc \
Robin Pengcd374d82021-02-23 20:00:46 +080066 device/google/raviole/conf/init.oriole.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.oriole.rc
67
68# Recovery files
69PRODUCT_COPY_FILES += \
70 device/google/gs101/conf/init.recovery.device.rc:$(TARGET_COPY_OUT_RECOVERY)/root/init.recovery.oriole.rc
71
Brian Norris1ea54292024-09-26 12:18:13 -070072# insmod files. Kernel 5.10 prebuilts don't provide these yet, so provide our
73# own copy if they're not in the prebuilts.
74# TODO(b/369686096): drop this when 5.10 is gone.
75ifeq ($(wildcard $(TARGET_KERNEL_DIR)/init.insmod.*.cfg),)
Robin Pengcd374d82021-02-23 20:00:46 +080076PRODUCT_COPY_FILES += \
Brian Norris1ea54292024-09-26 12:18:13 -070077 device/google/raviole/init.insmod.oriole.cfg:$(TARGET_COPY_OUT_VENDOR_DLKM)/etc/init.insmod.oriole.cfg
78endif
Robin Pengcd374d82021-02-23 20:00:46 +080079
80# Thermal Config
81PRODUCT_COPY_FILES += \
TeYuan Wang60d11bc2021-03-30 17:14:52 +080082 device/google/raviole/thermal_info_config_oriole.json:$(TARGET_COPY_OUT_VENDOR)/etc/thermal_info_config.json \
David Chao6c2519c2022-08-15 18:56:43 +080083 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 +080084 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 +080085
Jimmy Shiufdfe3e32022-01-22 05:04:01 +080086# Power HAL config
87PRODUCT_COPY_FILES += \
André Draszike3f5d8a2023-06-19 15:55:08 +010088 device/google/raviole/powerhint-oriole.json:$(TARGET_COPY_OUT_VENDOR)/etc/powerhint.json \
89 device/google/raviole/powerhint-oriole-mainline.json:$(TARGET_COPY_OUT_VENDOR)/etc/powerhint-mainline.json \
Jimmy Shiufdfe3e32022-01-22 05:04:01 +080090
Ted Wang1a822452023-05-07 11:27:19 +000091# Bluetooth sepolicy
92include device/google/gs101-sepolicy/oriole-sepolicy.mk
93
Cheney Niab920162021-06-28 13:47:54 +080094# Bluetooth
95PRODUCT_PRODUCT_PROPERTIES += \
jonerlin6075bd62022-07-15 10:47:19 +080096 persist.bluetooth.a2dp_aac.vbr_supported=true \
97 persist.bluetooth.firmware.selection=BCM.hcd
Cheney Niab920162021-06-28 13:47:54 +080098
Labib68270de2021-05-05 17:15:43 +080099# Bluetooth Tx power caps for oriole
100PRODUCT_COPY_FILES += \
Andrew Chant891f54c2023-05-30 14:43:13 -0700101 device/google/raviole/bluetooth_power_limits_oriole.csv:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_power_limits.csv \
102 device/google/raviole/bluetooth_power_limits_oriole_jp.csv:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_power_limits_JP.csv \
103 device/google/raviole/bluetooth_power_limits_G9S9B_US.csv:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_power_limits_G9S9B_US.csv \
104 device/google/raviole/bluetooth_power_limits_GB7N6_US.csv:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_power_limits_GB7N6_US.csv \
105 device/google/raviole/bluetooth_power_limits_G9S9B_EU.csv:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_power_limits_G9S9B_EU.csv \
106 device/google/raviole/bluetooth_power_limits_GB7N6_EU.csv:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_power_limits_GB7N6_EU.csv
Labib68270de2021-05-05 17:15:43 +0800107
Ted Wang6918ecc2021-08-05 11:33:20 +0800108
jonerlin9c27ad62022-04-06 11:49:52 +0800109# Bluetooth Hal Extension test tools
Ted Wang34a89632021-07-15 18:46:57 +0800110PRODUCT_PACKAGES_DEBUG += \
jonerlin9c27ad62022-04-06 11:49:52 +0800111 sar_test \
112 hci_inject
Ted Wang34a89632021-07-15 18:46:57 +0800113
Adam Shihe41c2c22022-08-26 09:54:06 +0800114# userdebug specific
115ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
116# Bluetooth LE Audio Hardware offload
117PRODUCT_PRODUCT_PROPERTIES += \
118 ro.bluetooth.leaudio_offload.supported=true \
119 persist.bluetooth.leaudio_offload.disabled=true \
120 persist.bluetooth.le_audio_test=false
121endif
122
123# Bluetooth HAL
124PRODUCT_COPY_FILES += \
125 device/google/raviole/bluetooth/bt_vendor_overlay.conf:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/bt_vendor_overlay.conf
126
Robin Pengcd374d82021-02-23 20:00:46 +0800127# MIPI Coex Configs
128PRODUCT_COPY_FILES += \
Eddie Tashjian7ecf2242021-03-25 13:25:38 -0700129 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 +0000130 device/google/raviole/radio/oriole_camera_front_mipi_coex_table.csv:$(TARGET_COPY_OUT_VENDOR)/etc/modem/camera_front_mipi_coex_table.csv \
131 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 +0800132
133# Camera
134PRODUCT_COPY_FILES += \
135 device/google/raviole/media_profiles_oriole.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_V1_0.xml
136
JimiChene2d48972022-06-30 19:39:15 +0800137PRODUCT_PROPERTY_OVERRIDES += \
Speth Changb9043502023-05-08 11:27:31 +0000138 persist.vendor.camera.fixed_fps_range_boost=1
JimiChene2d48972022-06-30 19:39:15 +0800139
Long Ling82756612021-04-30 15:52:57 -0700140# Display Config
141PRODUCT_COPY_FILES += \
Long Lingaaf6f632021-06-21 15:45:58 -0700142 device/google/raviole/oriole/display_golden_cal0.pb:$(TARGET_COPY_OUT_VENDOR)/etc/display_golden_cal0.pb \
Long Ling82756612021-04-30 15:52:57 -0700143 device/google/raviole/oriole/display_colordata_dev_cal0.pb:$(TARGET_COPY_OUT_VENDOR)/etc/display_colordata_dev_cal0.pb
144
Robin Pengcd374d82021-02-23 20:00:46 +0800145# NFC
146PRODUCT_COPY_FILES += \
George Chang8933f1b2021-08-17 00:51:25 +0800147 frameworks/native/data/etc/android.hardware.nfc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.xml \
148 frameworks/native/data/etc/android.hardware.nfc.hce.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hce.xml \
149 frameworks/native/data/etc/android.hardware.nfc.hcef.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hcef.xml \
150 frameworks/native/data/etc/com.nxp.mifare.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.nxp.mifare.xml \
151 frameworks/native/data/etc/android.hardware.nfc.uicc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.uicc.xml \
152 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 +0800153 device/google/raviole/nfc/libnfc-hal-st.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libnfc-hal-st.conf \
154 device/google/raviole/nfc/libnfc-nci.conf:$(TARGET_COPY_OUT_PRODUCT)/etc/libnfc-nci.conf
155
George Chang8933f1b2021-08-17 00:51:25 +0800156PRODUCT_PACKAGES += \
Roshan Piuscd3dd4d2023-12-01 19:19:56 +0000157 $(RELEASE_PACKAGE_NFC_STACK) \
George Chang8933f1b2021-08-17 00:51:25 +0800158 Tag \
Roshan Pius21db4432023-12-01 19:19:56 +0000159 android.hardware.nfc-service.st \
160 NfcOverlayOriole
George Chang8933f1b2021-08-17 00:51:25 +0800161
Eileen Lai013069b2024-10-09 08:13:38 +0000162# Shared Modem Platform
163SHARED_MODEM_PLATFORM_VENDOR := lassen
164
165# Shared Modem Platform
166include device/google/gs-common/modem/shared_modem_platform/shared_modem_platform.mk
Jim Tangcf891d22024-10-04 15:30:30 +0800167
George Chang8933f1b2021-08-17 00:51:25 +0800168# SecureElement
169PRODUCT_PACKAGES += \
George Changc84c4602021-08-20 17:09:55 +0800170 android.hardware.secure_element@1.2-service-gto \
171 android.hardware.secure_element@1.2-service-gto-ese2
George Chang8933f1b2021-08-17 00:51:25 +0800172
173PRODUCT_COPY_FILES += \
174 frameworks/native/data/etc/android.hardware.se.omapi.ese.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.se.omapi.ese.xml \
175 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 +0800176 device/google/raviole/nfc/libse-gto-hal.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libse-gto-hal.conf \
177 device/google/raviole/nfc/libse-gto-hal2.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libse-gto-hal2.conf
George Changd48ff142021-03-10 20:35:15 +0800178
Robin Pengcd374d82021-02-23 20:00:46 +0800179DEVICE_MANIFEST_FILE += \
George Chang8933f1b2021-08-17 00:51:25 +0800180 device/google/raviole/nfc/manifest_se.xml
Robin Pengcd374d82021-02-23 20:00:46 +0800181
182# Vibrator HAL
183PRODUCT_PRODUCT_PROPERTIES +=\
chasewuf6805292022-04-14 15:30:02 +0800184 ro.vendor.vibrator.hal.long.frequency.shift=15 \
185 ro.vendor.vibrator.hal.device.mass=0.205 \
Nathan Kulczak0b0f5862023-08-15 01:22:27 +0000186 ro.vendor.vibrator.hal.loc.coeff=2.25 \
187 persist.vendor.vibrator.hal.chirp.enabled=0
Jimmy Shiu1fef2282021-11-10 00:07:25 +0800188
Vince Leung63d0be62021-08-27 20:07:54 +0000189ACTUATOR_MODEL := luxshare_ict_081545
Robin Pengcd374d82021-02-23 20:00:46 +0800190
Benjamin Schwartzc798cb32021-03-18 17:55:40 -0700191# PowerStats HAL
Yanting Yang24333152021-05-03 15:43:06 +0800192PRODUCT_SOONG_NAMESPACES += \
193 device/google/raviole/powerstats/oriole \
194 device/google/raviole
Benjamin Schwartzc798cb32021-03-18 17:55:40 -0700195
Cyan_Hsieh60a6c992021-03-11 14:44:54 +0800196# Keyboard bottom padding in dp for portrait mode
197PRODUCT_PRODUCT_PROPERTIES += ro.com.google.ime.kb_pad_port_b=10
linpeter85646ce2020-12-17 21:18:41 +0800198
Daniel Solomon7494ecc2021-08-06 14:37:47 -0700199# Display
linpeter85646ce2020-12-17 21:18:41 +0800200PRODUCT_DEFAULT_PROPERTY_OVERRIDES += vendor.display.lbe.supported=1
Daniel Solomon7494ecc2021-08-06 14:37:47 -0700201PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.surface_flinger.set_idle_timer_ms=1500
Jack Wu6e0bb1c2019-01-17 21:38:27 +0800202
wenchangliu0e8a67f2021-08-18 11:02:49 +0800203# Media Performance Class 12
204PRODUCT_PROPERTY_OVERRIDES += ro.odm.build.media_performance_class=31
205
Jack Wu6e0bb1c2019-01-17 21:38:27 +0800206# userdebug specific
207ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
208 PRODUCT_COPY_FILES += \
Ken Tsou97db8552022-03-16 17:50:30 +0800209 device/google/gs101/init.hardware.wlc.rc.userdebug:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.wlc.rc
Jack Wu6e0bb1c2019-01-17 21:38:27 +0800210endif
terrycrhuangfd95a682021-04-14 17:32:20 +0800211
212# Increment the SVN for any official public releases
Lokesh Kumar Goel8062fbd2024-04-04 00:07:01 +0000213ifdef RELEASE_SVN_ORIOLE
214TARGET_SVN ?= $(RELEASE_SVN_ORIOLE)
215else
216# Set this for older releases that don't use build flag
Ankur Bakshid245dbc2024-08-08 21:16:22 +0000217TARGET_SVN ?= 86
Lokesh Kumar Goel8062fbd2024-04-04 00:07:01 +0000218endif
219
terrycrhuangfd95a682021-04-14 17:32:20 +0800220PRODUCT_VENDOR_PROPERTIES += \
Lokesh Kumar Goel8062fbd2024-04-04 00:07:01 +0000221 ro.vendor.build.svn=$(TARGET_SVN)
shawnlin1c491622021-04-22 13:27:45 +0800222
Lokesh Kumar Goelefffce02024-04-06 00:05:53 +0000223# Set device family property for SMR builds
224PRODUCT_PROPERTY_OVERRIDES += \
225 ro.build.device_family=O6R4B9
226
227# Set build properties for SMR builds
228ifeq ($(RELEASE_IS_SMR), true)
229 ifneq (,$(RELEASE_BASE_OS_ORIOLE))
230 PRODUCT_BASE_OS := $(RELEASE_BASE_OS_ORIOLE)
231 endif
232endif
233
234# Set build properties for EMR builds
235ifeq ($(RELEASE_IS_EMR), true)
236 ifneq (,$(RELEASE_BASE_OS_ORIOLE))
237 PRODUCT_PROPERTY_OVERRIDES += \
238 ro.build.version.emergency_base_os=$(RELEASE_BASE_OS_ORIOLE)
239 endif
240endif
241
shawnlin6c363972022-02-15 13:40:37 +0800242# Set support hide display cutout feature
243PRODUCT_PRODUCT_PROPERTIES += \
244 ro.support_hide_display_cutout=true
245
shawnlin1c491622021-04-22 13:27:45 +0800246# Hide cutout overlays
247PRODUCT_PACKAGES += \
248 NoCutoutOverlay \
249 AvoidAppsInCutoutOverlay
Yanting Yang24333152021-05-03 15:43:06 +0800250
Jayant Chowdharye3669c92023-05-25 20:16:27 +0000251# Android DeviceAsWebcam specific overlay
252PRODUCT_PACKAGES += \
253 DeviceAsWebcamOriole
254
Yanting Yang24333152021-05-03 15:43:06 +0800255# SKU specific RROs
256PRODUCT_PACKAGES += \
Yanting Yang7a754f92021-08-23 13:14:56 +0800257 SettingsOverlayGR1YH \
258 SettingsOverlayGB7N6 \
259 SettingsOverlayG9S9B
Kris Chen74dfc0c2021-05-07 21:38:46 +0800260
261# Fingerprint antispoof property
262PRODUCT_PRODUCT_PROPERTIES +=\
263 persist.vendor.fingerprint.disable.fake.override=none
Michael Ayoubica6b3522021-05-25 02:09:47 +0000264
Kris Chen36cf68c2022-04-19 22:12:00 +0800265# Fingerprint HAL
266PRODUCT_VENDOR_PROPERTIES += \
Kris Chenf5141282022-05-24 20:15:22 +0800267 persist.vendor.udfps.lhbm_controlled_in_hal_supported=true \
268 persist.vendor.udfps.als_feed_forward_supported=true
269
Kris Chen36cf68c2022-04-19 22:12:00 +0800270
Michael Ayoubica6b3522021-05-25 02:09:47 +0000271# DCK properties based on target
272PRODUCT_PROPERTY_OVERRIDES += \
Jeffrey Carlyleeaaa3f22023-02-17 15:01:11 -0800273 ro.gms.dck.eligible_wcc=2 \
274 ro.gms.dck.se_capability=1
Robin Peng6e4640b2021-06-01 18:03:27 +0800275
276# Trusty liboemcrypto.so
277PRODUCT_SOONG_NAMESPACES += vendor/google_devices/raviole/prebuilts
Bill Lin964bf232021-06-04 08:48:58 +0800278
279# Set support one-handed mode
280PRODUCT_PRODUCT_PROPERTIES += \
281 ro.support_one_handed_mode=true
Zhijun He59a30612021-07-09 11:33:45 -0700282
283# Enable camera exif model/make reporting
Charles Chiu57fc7062021-07-28 14:58:36 +0800284PRODUCT_VENDOR_PROPERTIES += \
Zhijun He59a30612021-07-09 11:33:45 -0700285 persist.vendor.camera.exif_reveal_make_model=true
jonerlin972d2c22021-06-29 16:36:29 +0800286
Mars Lineabb3bf2022-06-08 22:11:37 +0800287# tetheroffload HAL
288PRODUCT_PACKAGES += \
289 vendor.samsung_slsi.hardware.tetheroffload@1.1-service
290
jiabinc4ffb642021-07-16 22:34:35 +0000291# Override default distortion output gain according to UX experiments
Chris Paulo3f6f5bd2024-07-22 17:13:23 -0700292PRODUCT_VENDOR_PROPERTIES += \
293 vendor.audio.hapticgenerator.distortion.output.gain=0.32
Martin Liubbb311a2021-10-05 12:24:18 +0000294
Tri Vode03be02023-01-30 15:59:51 -0800295# RKPD
296PRODUCT_PRODUCT_PROPERTIES += \
Tri Vode03be02023-01-30 15:59:51 -0800297 remote_provisioning.hostname=remoteprovisioning.googleapis.com \
298
Martin Liubbb311a2021-10-05 12:24:18 +0000299# Set zram size
300PRODUCT_VENDOR_PROPERTIES += \
301 vendor.zram.size=3g
Alex Hongb8033582021-11-17 19:10:08 +0800302
303# This device is shipped with 31 (Android S)
304PRODUCT_SHIPPING_API_LEVEL := 31
Alice Kuo8ee46192021-12-17 13:28:08 +0800305
justinweng07e8b012022-01-25 15:45:21 +0800306# declare use of spatial audio
307PRODUCT_PROPERTY_OVERRIDES += \
308 ro.audio.spatializer_enabled=true
309
Andy Hung3f8d5cf2022-12-16 13:42:45 -0800310# optimize spatializer effect
311PRODUCT_PROPERTY_OVERRIDES += \
312 audio.spatializer.effect.util_clamp_min=300
313
justinweng07e8b012022-01-25 15:45:21 +0800314PRODUCT_PACKAGES += \
315 libspatialaudio
316
Ben Murdochb5b42572022-03-10 10:44:27 +0000317# Device features
318PRODUCT_COPY_FILES += \
319 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 +0000320
kuanyuhuang932c8172022-10-27 10:03:03 +0000321# Bluetooth OPUS codec
322PRODUCT_PRODUCT_PROPERTIES += \
323 persist.bluetooth.opus.enabled=true
Jakub Pawlowski9d6e6652022-10-31 22:04:26 +0100324
Adam Shih7845ccf2022-10-21 14:39:46 +0800325# Location
326ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
Cheng Chang9bef8782024-06-25 09:43:41 +0000327 ifneq (,$(filter 6.1, $(TARGET_LINUX_KERNEL_VERSION)))
Adam Shih7845ccf2022-10-21 14:39:46 +0800328 PRODUCT_COPY_FILES += \
Cheng Chang9bef8782024-06-25 09:43:41 +0000329 device/google/raviole/location/gps.6.1.xml.oriole:$(TARGET_COPY_OUT_VENDOR)/etc/gnss/gps.xml
330 else
331 PRODUCT_COPY_FILES += \
332 device/google/raviole/location/gps.xml.oriole:$(TARGET_COPY_OUT_VENDOR)/etc/gnss/gps.xml
333 endif
Adam Shih7845ccf2022-10-21 14:39:46 +0800334else
Cheng Chang9bef8782024-06-25 09:43:41 +0000335 ifneq (,$(filter 6.1, $(TARGET_LINUX_KERNEL_VERSION)))
Adam Shih7845ccf2022-10-21 14:39:46 +0800336 PRODUCT_COPY_FILES += \
Cheng Chang9bef8782024-06-25 09:43:41 +0000337 device/google/raviole/location/gps_user.6.1.xml.oriole:$(TARGET_COPY_OUT_VENDOR)/etc/gnss/gps.xml
338 else
339 PRODUCT_COPY_FILES += \
340 device/google/raviole/location/gps_user.xml.oriole:$(TARGET_COPY_OUT_VENDOR)/etc/gnss/gps.xml
341 endif
Adam Shih7845ccf2022-10-21 14:39:46 +0800342endif
Jiaming Liu9e53e0e2023-05-12 01:36:04 +0000343
Avichal Rakeshd5521192023-02-06 13:32:35 -0800344# Enable DeviceAsWebcam support
345PRODUCT_VENDOR_PROPERTIES += \
346 ro.usb.uvc.enabled=true
Shivakumar Neginal4fb3e742023-10-16 18:53:29 +0000347
348# Quick Start device-specific settings
349PRODUCT_PRODUCT_PROPERTIES += \
350 ro.quick_start.oem_id=00e0 \
351 ro.quick_start.device_id=oriole
Alice Wangc88d3362024-05-21 15:17:46 +0000352
353# Disable AVF Remote Attestation
354PRODUCT_AVF_REMOTE_ATTESTATION_DISABLED := true
Koli Lin6a11d1a2024-07-11 03:49:32 +0000355
356# Bluetooth device id
Koli Linbad1fd42024-09-05 08:20:53 +0000357# Oriole: 0x4106
Koli Lin6a11d1a2024-07-11 03:49:32 +0000358PRODUCT_PRODUCT_PROPERTIES += \
Koli Linbad1fd42024-09-05 08:20:53 +0000359 bluetooth.device_id.product_id=16646
Yabin Cuie0fcb2d2024-05-23 15:14:23 -0700360
361# ETM
362ifneq (,$(RELEASE_ETM_IN_USERDEBUG_ENG))
363ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
364$(call inherit-product-if-exists, device/google/common/etm/device-userdebug-modules.mk)
365endif
366endif
kellyhungd009e5b2024-11-06 05:55:01 +0000367
368# PlayVideos
369PLAYVIDEOS_VERSION_DIR := 4.20.6
370$(call soong_config_set_bool,playvideos,use_device_specific_version,true)
371PRODUCT_SOONG_NAMESPACES += vendor/unbundled_google/packages/PlayVideos/$(PLAYVIDEOS_VERSION_DIR)