Robin Peng | cd374d8 | 2021-02-23 20:00:46 +0800 | [diff] [blame] | 1 | # |
| 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 Gynther | b058000 | 2021-09-02 14:26:57 -0700 | [diff] [blame] | 17 | TARGET_KERNEL_DIR ?= device/google/raviole-kernel |
| 18 | TARGET_BOARD_KERNEL_HEADERS := device/google/raviole-kernel/kernel-headers |
Robin Peng | cd374d8 | 2021-02-23 20:00:46 +0800 | [diff] [blame] | 19 | |
| 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 Yi | c2e4a48 | 2021-03-17 05:53:25 +0000 | [diff] [blame] | 23 | $(call inherit-product-if-exists, vendor/google_devices/oriole/proprietary/device-vendor.mk) |
linpeter | f3d8bf6 | 2021-03-17 09:27:12 +0800 | [diff] [blame] | 24 | $(call inherit-product-if-exists, vendor/google_devices/raviole/proprietary/oriole/device-vendor-oriole.mk) |
PEI-HSIEN KUO | 36dd88a | 2021-03-18 19:39:38 +0800 | [diff] [blame] | 25 | $(call inherit-product-if-exists, vendor/google/camera/devices/raviole/oriole/device-vendor.mk) |
Ching-Sung Li | 05395df | 2021-05-24 11:23:59 +0800 | [diff] [blame] | 26 | $(call inherit-product-if-exists, vendor/google_devices/raviole/proprietary/WallpapersOriole.mk) |
Robin Peng | cd374d8 | 2021-02-23 20:00:46 +0800 | [diff] [blame] | 27 | |
leohsieh | 85d8c0b | 2021-08-30 22:22:49 +0800 | [diff] [blame] | 28 | GOODIX_CONFIG_BUILD_VERSION := g6_trusty |
Robin Peng | cd374d8 | 2021-02-23 20:00:46 +0800 | [diff] [blame] | 29 | DEVICE_PACKAGE_OVERLAYS += device/google/raviole/oriole/overlay |
| 30 | |
Robert Lee | 09c3fd3 | 2021-08-16 06:21:06 +0000 | [diff] [blame] | 31 | include device/google/raviole/audio/oriole/audio-tables.mk |
Robin Peng | cd374d8 | 2021-02-23 20:00:46 +0800 | [diff] [blame] | 32 | include device/google/gs101/device-shipping-common.mk |
Ilya Matyukhin | 99725eb | 2021-05-18 00:58:22 -0700 | [diff] [blame] | 33 | include device/google/gs101/fingerprint/udfps_common.mk |
yawensu | c51621f | 2021-09-14 14:16:49 +0800 | [diff] [blame] | 34 | include device/google/gs101/telephony/pktrouter.mk |
Robin Peng | cd374d8 | 2021-02-23 20:00:46 +0800 | [diff] [blame] | 35 | include hardware/google/pixel/vibrator/cs40l25/device.mk |
Patty | b527e46 | 2021-09-15 15:57:52 +0800 | [diff] [blame] | 36 | include device/google/gs101/bluetooth/bluetooth.mk |
Robin Peng | cd374d8 | 2021-02-23 20:00:46 +0800 | [diff] [blame] | 37 | |
Ilya Matyukhin | 99725eb | 2021-05-18 00:58:22 -0700 | [diff] [blame] | 38 | ifeq ($(filter factory_oriole, $(TARGET_PRODUCT)),) |
| 39 | include device/google/gs101/fingerprint/udfps_shipping.mk |
| 40 | else |
| 41 | include device/google/gs101/fingerprint/udfps_factory.mk |
| 42 | endif |
| 43 | |
Krzysztof KosiĆski | f0d6b36 | 2022-09-13 01:56:24 +0000 | [diff] [blame] | 44 | # go/lyric-soong-variables |
| 45 | $(call soong_config_set,lyric,camera_hardware,oriole) |
Sasha Smundak | fbe1c66 | 2021-12-15 09:17:53 -0800 | [diff] [blame] | 46 | $(call soong_config_set,lyric,tuning_product,oriole) |
| 47 | $(call soong_config_set,google3a_config,target_device,oriole) |
Ilya Matyukhin | 99725eb | 2021-05-18 00:58:22 -0700 | [diff] [blame] | 48 | |
Robin Peng | cd374d8 | 2021-02-23 20:00:46 +0800 | [diff] [blame] | 49 | # Init files |
| 50 | PRODUCT_COPY_FILES += \ |
Robin Peng | 334022f | 2021-05-05 12:01:32 +0800 | [diff] [blame] | 51 | device/google/raviole/conf/init.raviole.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.raviole.rc \ |
Robin Peng | cd374d8 | 2021-02-23 20:00:46 +0800 | [diff] [blame] | 52 | device/google/raviole/conf/init.oriole.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.oriole.rc |
| 53 | |
| 54 | # Recovery files |
| 55 | PRODUCT_COPY_FILES += \ |
| 56 | device/google/gs101/conf/init.recovery.device.rc:$(TARGET_COPY_OUT_RECOVERY)/root/init.recovery.oriole.rc |
| 57 | |
| 58 | # insmod files |
| 59 | PRODUCT_COPY_FILES += \ |
| 60 | device/google/raviole/init.insmod.oriole.cfg:$(TARGET_COPY_OUT_VENDOR)/etc/init.insmod.oriole.cfg |
| 61 | |
| 62 | # Thermal Config |
| 63 | PRODUCT_COPY_FILES += \ |
TeYuan Wang | 60d11bc | 2021-03-30 17:14:52 +0800 | [diff] [blame] | 64 | device/google/raviole/thermal_info_config_oriole.json:$(TARGET_COPY_OUT_VENDOR)/etc/thermal_info_config.json \ |
David Chao | 6c2519c | 2022-08-15 18:56:43 +0800 | [diff] [blame] | 65 | device/google/raviole/thermal_info_config_charge_oriole.json:$(TARGET_COPY_OUT_VENDOR)/etc/thermal_info_config_charge.json \ |
TeYuan Wang | 60d11bc | 2021-03-30 17:14:52 +0800 | [diff] [blame] | 66 | device/google/raviole/thermal_info_config_oriole_WHI_A.json:$(TARGET_COPY_OUT_VENDOR)/etc/thermal_info_config_WHI_A.json |
Robin Peng | cd374d8 | 2021-02-23 20:00:46 +0800 | [diff] [blame] | 67 | |
Jimmy Shiu | fdfe3e3 | 2022-01-22 05:04:01 +0800 | [diff] [blame] | 68 | # Power HAL config |
| 69 | PRODUCT_COPY_FILES += \ |
| 70 | device/google/raviole/powerhint-oriole.json:$(TARGET_COPY_OUT_VENDOR)/etc/powerhint.json |
| 71 | |
Cheney Ni | ab92016 | 2021-06-28 13:47:54 +0800 | [diff] [blame] | 72 | # Bluetooth |
| 73 | PRODUCT_PRODUCT_PROPERTIES += \ |
jonerlin | 6075bd6 | 2022-07-15 10:47:19 +0800 | [diff] [blame] | 74 | persist.bluetooth.a2dp_aac.vbr_supported=true \ |
| 75 | persist.bluetooth.firmware.selection=BCM.hcd |
Cheney Ni | ab92016 | 2021-06-28 13:47:54 +0800 | [diff] [blame] | 76 | |
Labib | 68270de | 2021-05-05 17:15:43 +0800 | [diff] [blame] | 77 | # Bluetooth Tx power caps for oriole |
| 78 | PRODUCT_COPY_FILES += \ |
Ted Wang | e241d59 | 2021-07-19 15:33:46 +0800 | [diff] [blame] | 79 | $(LOCAL_PATH)/bluetooth_power_limits_oriole.csv:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_power_limits.csv \ |
Ted Wang | 6918ecc | 2021-08-05 11:33:20 +0800 | [diff] [blame] | 80 | $(LOCAL_PATH)/bluetooth_power_limits_oriole_jp.csv:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_power_limits_JP.csv \ |
Ted Wang | e241d59 | 2021-07-19 15:33:46 +0800 | [diff] [blame] | 81 | $(LOCAL_PATH)/bluetooth_power_limits_G9S9B_US.csv:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_power_limits_G9S9B_US.csv \ |
Ted Wang | 3976daf | 2021-08-02 15:57:37 +0800 | [diff] [blame] | 82 | $(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 |
Labib | 68270de | 2021-05-05 17:15:43 +0800 | [diff] [blame] | 85 | |
Ted Wang | 6918ecc | 2021-08-05 11:33:20 +0800 | [diff] [blame] | 86 | |
jonerlin | 9c27ad6 | 2022-04-06 11:49:52 +0800 | [diff] [blame] | 87 | # Bluetooth Hal Extension test tools |
Ted Wang | 34a8963 | 2021-07-15 18:46:57 +0800 | [diff] [blame] | 88 | PRODUCT_PACKAGES_DEBUG += \ |
jonerlin | 9c27ad6 | 2022-04-06 11:49:52 +0800 | [diff] [blame] | 89 | sar_test \ |
| 90 | hci_inject |
Ted Wang | 34a8963 | 2021-07-15 18:46:57 +0800 | [diff] [blame] | 91 | |
Jack Wu | 6f51c2a | 2021-08-31 21:45:53 +0800 | [diff] [blame] | 92 | # WirelessCharger |
| 93 | DEVICE_PRODUCT_COMPATIBILITY_MATRIX_FILE += device/google/gs101/device_framework_matrix_product_wireless.xml |
| 94 | |
Robin Peng | cd374d8 | 2021-02-23 20:00:46 +0800 | [diff] [blame] | 95 | # MIPI Coex Configs |
| 96 | PRODUCT_COPY_FILES += \ |
Eddie Tashjian | 7ecf224 | 2021-03-25 13:25:38 -0700 | [diff] [blame] | 97 | device/google/raviole/radio/oriole_display_mipi_coex_table.csv:$(TARGET_COPY_OUT_VENDOR)/etc/modem/display_primary_mipi_coex_table.csv \ |
Jie Song | e488597 | 2021-04-19 17:50:26 +0000 | [diff] [blame] | 98 | device/google/raviole/radio/oriole_camera_front_mipi_coex_table.csv:$(TARGET_COPY_OUT_VENDOR)/etc/modem/camera_front_mipi_coex_table.csv \ |
| 99 | 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 Peng | cd374d8 | 2021-02-23 20:00:46 +0800 | [diff] [blame] | 100 | |
| 101 | # Camera |
| 102 | PRODUCT_COPY_FILES += \ |
| 103 | device/google/raviole/media_profiles_oriole.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_V1_0.xml |
| 104 | |
JimiChen | e2d4897 | 2022-06-30 19:39:15 +0800 | [diff] [blame] | 105 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 106 | persist.vendor.camera.fixed_fps_range_boost=1 |
| 107 | |
Long Ling | 8275661 | 2021-04-30 15:52:57 -0700 | [diff] [blame] | 108 | # Display Config |
| 109 | PRODUCT_COPY_FILES += \ |
Long Ling | aaf6f63 | 2021-06-21 15:45:58 -0700 | [diff] [blame] | 110 | device/google/raviole/oriole/display_golden_cal0.pb:$(TARGET_COPY_OUT_VENDOR)/etc/display_golden_cal0.pb \ |
Long Ling | 8275661 | 2021-04-30 15:52:57 -0700 | [diff] [blame] | 111 | device/google/raviole/oriole/display_colordata_dev_cal0.pb:$(TARGET_COPY_OUT_VENDOR)/etc/display_colordata_dev_cal0.pb |
| 112 | |
Robin Peng | cd374d8 | 2021-02-23 20:00:46 +0800 | [diff] [blame] | 113 | # NFC |
| 114 | PRODUCT_COPY_FILES += \ |
George Chang | 8933f1b | 2021-08-17 00:51:25 +0800 | [diff] [blame] | 115 | frameworks/native/data/etc/android.hardware.nfc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.xml \ |
| 116 | frameworks/native/data/etc/android.hardware.nfc.hce.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hce.xml \ |
| 117 | frameworks/native/data/etc/android.hardware.nfc.hcef.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hcef.xml \ |
| 118 | frameworks/native/data/etc/com.nxp.mifare.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.nxp.mifare.xml \ |
| 119 | frameworks/native/data/etc/android.hardware.nfc.uicc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.uicc.xml \ |
| 120 | frameworks/native/data/etc/android.hardware.nfc.ese.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.ese.xml \ |
George Chang | d48ff14 | 2021-03-10 20:35:15 +0800 | [diff] [blame] | 121 | device/google/raviole/nfc/libnfc-hal-st.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libnfc-hal-st.conf \ |
| 122 | device/google/raviole/nfc/libnfc-nci.conf:$(TARGET_COPY_OUT_PRODUCT)/etc/libnfc-nci.conf |
| 123 | |
George Chang | 8933f1b | 2021-08-17 00:51:25 +0800 | [diff] [blame] | 124 | PRODUCT_PACKAGES += \ |
| 125 | NfcNci \ |
| 126 | Tag \ |
George Chang | e8712cc | 2022-03-30 22:13:09 +0800 | [diff] [blame] | 127 | android.hardware.nfc-service.st |
George Chang | 8933f1b | 2021-08-17 00:51:25 +0800 | [diff] [blame] | 128 | |
| 129 | # SecureElement |
| 130 | PRODUCT_PACKAGES += \ |
George Chang | c84c460 | 2021-08-20 17:09:55 +0800 | [diff] [blame] | 131 | android.hardware.secure_element@1.2-service-gto \ |
| 132 | android.hardware.secure_element@1.2-service-gto-ese2 |
George Chang | 8933f1b | 2021-08-17 00:51:25 +0800 | [diff] [blame] | 133 | |
| 134 | PRODUCT_COPY_FILES += \ |
| 135 | frameworks/native/data/etc/android.hardware.se.omapi.ese.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.se.omapi.ese.xml \ |
| 136 | frameworks/native/data/etc/android.hardware.se.omapi.uicc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.se.omapi.uicc.xml \ |
George Chang | c84c460 | 2021-08-20 17:09:55 +0800 | [diff] [blame] | 137 | device/google/raviole/nfc/libse-gto-hal.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libse-gto-hal.conf \ |
| 138 | device/google/raviole/nfc/libse-gto-hal2.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libse-gto-hal2.conf |
George Chang | d48ff14 | 2021-03-10 20:35:15 +0800 | [diff] [blame] | 139 | |
Robin Peng | cd374d8 | 2021-02-23 20:00:46 +0800 | [diff] [blame] | 140 | DEVICE_MANIFEST_FILE += \ |
George Chang | 8933f1b | 2021-08-17 00:51:25 +0800 | [diff] [blame] | 141 | device/google/raviole/nfc/manifest_se.xml |
Robin Peng | cd374d8 | 2021-02-23 20:00:46 +0800 | [diff] [blame] | 142 | |
| 143 | # Vibrator HAL |
| 144 | PRODUCT_PRODUCT_PROPERTIES +=\ |
chasewu | f680529 | 2022-04-14 15:30:02 +0800 | [diff] [blame] | 145 | ro.vendor.vibrator.hal.long.frequency.shift=15 \ |
| 146 | ro.vendor.vibrator.hal.device.mass=0.205 \ |
| 147 | ro.vendor.vibrator.hal.loc.coeff=2.25 |
Jimmy Shiu | 1fef228 | 2021-11-10 00:07:25 +0800 | [diff] [blame] | 148 | |
Vince Leung | 63d0be6 | 2021-08-27 20:07:54 +0000 | [diff] [blame] | 149 | ACTUATOR_MODEL := luxshare_ict_081545 |
Robin Peng | cd374d8 | 2021-02-23 20:00:46 +0800 | [diff] [blame] | 150 | |
Benjamin Schwartz | c798cb3 | 2021-03-18 17:55:40 -0700 | [diff] [blame] | 151 | # PowerStats HAL |
Yanting Yang | 2433315 | 2021-05-03 15:43:06 +0800 | [diff] [blame] | 152 | PRODUCT_SOONG_NAMESPACES += \ |
| 153 | device/google/raviole/powerstats/oriole \ |
| 154 | device/google/raviole |
Benjamin Schwartz | c798cb3 | 2021-03-18 17:55:40 -0700 | [diff] [blame] | 155 | |
Cyan_Hsieh | 60a6c99 | 2021-03-11 14:44:54 +0800 | [diff] [blame] | 156 | # Keyboard bottom padding in dp for portrait mode |
| 157 | PRODUCT_PRODUCT_PROPERTIES += ro.com.google.ime.kb_pad_port_b=10 |
linpeter | 85646ce | 2020-12-17 21:18:41 +0800 | [diff] [blame] | 158 | |
Daniel Solomon | 7494ecc | 2021-08-06 14:37:47 -0700 | [diff] [blame] | 159 | # Display |
linpeter | 85646ce | 2020-12-17 21:18:41 +0800 | [diff] [blame] | 160 | PRODUCT_DEFAULT_PROPERTY_OVERRIDES += vendor.display.lbe.supported=1 |
Daniel Solomon | 7494ecc | 2021-08-06 14:37:47 -0700 | [diff] [blame] | 161 | PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.surface_flinger.set_idle_timer_ms=1500 |
Jack Wu | 6e0bb1c | 2019-01-17 21:38:27 +0800 | [diff] [blame] | 162 | |
wenchangliu | 0e8a67f | 2021-08-18 11:02:49 +0800 | [diff] [blame] | 163 | # Media Performance Class 12 |
| 164 | PRODUCT_PROPERTY_OVERRIDES += ro.odm.build.media_performance_class=31 |
| 165 | |
Jack Wu | 6e0bb1c | 2019-01-17 21:38:27 +0800 | [diff] [blame] | 166 | # userdebug specific |
| 167 | ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT))) |
| 168 | PRODUCT_COPY_FILES += \ |
Ken Tsou | 97db855 | 2022-03-16 17:50:30 +0800 | [diff] [blame] | 169 | device/google/gs101/init.hardware.wlc.rc.userdebug:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.wlc.rc |
Jack Wu | 6e0bb1c | 2019-01-17 21:38:27 +0800 | [diff] [blame] | 170 | endif |
terrycrhuang | fd95a68 | 2021-04-14 17:32:20 +0800 | [diff] [blame] | 171 | |
| 172 | # Increment the SVN for any official public releases |
| 173 | PRODUCT_VENDOR_PROPERTIES += \ |
Steve Berbary | f449d2e | 2022-12-07 19:29:22 +0000 | [diff] [blame] | 174 | ro.vendor.build.svn=43 |
shawnlin | 1c49162 | 2021-04-22 13:27:45 +0800 | [diff] [blame] | 175 | |
shawnlin | 6c36397 | 2022-02-15 13:40:37 +0800 | [diff] [blame] | 176 | # Set support hide display cutout feature |
| 177 | PRODUCT_PRODUCT_PROPERTIES += \ |
| 178 | ro.support_hide_display_cutout=true |
| 179 | |
shawnlin | 1c49162 | 2021-04-22 13:27:45 +0800 | [diff] [blame] | 180 | # Hide cutout overlays |
| 181 | PRODUCT_PACKAGES += \ |
| 182 | NoCutoutOverlay \ |
| 183 | AvoidAppsInCutoutOverlay |
Yanting Yang | 2433315 | 2021-05-03 15:43:06 +0800 | [diff] [blame] | 184 | |
| 185 | # SKU specific RROs |
| 186 | PRODUCT_PACKAGES += \ |
Yanting Yang | 7a754f9 | 2021-08-23 13:14:56 +0800 | [diff] [blame] | 187 | SettingsOverlayGR1YH \ |
| 188 | SettingsOverlayGB7N6 \ |
| 189 | SettingsOverlayG9S9B |
Kris Chen | 74dfc0c | 2021-05-07 21:38:46 +0800 | [diff] [blame] | 190 | |
| 191 | # Fingerprint antispoof property |
| 192 | PRODUCT_PRODUCT_PROPERTIES +=\ |
| 193 | persist.vendor.fingerprint.disable.fake.override=none |
Michael Ayoubi | ca6b352 | 2021-05-25 02:09:47 +0000 | [diff] [blame] | 194 | |
Kris Chen | 36cf68c | 2022-04-19 22:12:00 +0800 | [diff] [blame] | 195 | # Fingerprint HAL |
| 196 | PRODUCT_VENDOR_PROPERTIES += \ |
Kris Chen | f514128 | 2022-05-24 20:15:22 +0800 | [diff] [blame] | 197 | persist.vendor.udfps.lhbm_controlled_in_hal_supported=true \ |
| 198 | persist.vendor.udfps.als_feed_forward_supported=true |
| 199 | |
Kris Chen | 36cf68c | 2022-04-19 22:12:00 +0800 | [diff] [blame] | 200 | |
Michael Ayoubi | ca6b352 | 2021-05-25 02:09:47 +0000 | [diff] [blame] | 201 | # DCK properties based on target |
| 202 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 203 | ro.gms.dck.eligible_wcc=2 |
Robin Peng | 6e4640b | 2021-06-01 18:03:27 +0800 | [diff] [blame] | 204 | |
| 205 | # Trusty liboemcrypto.so |
| 206 | PRODUCT_SOONG_NAMESPACES += vendor/google_devices/raviole/prebuilts |
Bill Lin | 964bf23 | 2021-06-04 08:48:58 +0800 | [diff] [blame] | 207 | |
| 208 | # Set support one-handed mode |
| 209 | PRODUCT_PRODUCT_PROPERTIES += \ |
| 210 | ro.support_one_handed_mode=true |
Zhijun He | 59a3061 | 2021-07-09 11:33:45 -0700 | [diff] [blame] | 211 | |
| 212 | # Enable camera exif model/make reporting |
Charles Chiu | 57fc706 | 2021-07-28 14:58:36 +0800 | [diff] [blame] | 213 | PRODUCT_VENDOR_PROPERTIES += \ |
Zhijun He | 59a3061 | 2021-07-09 11:33:45 -0700 | [diff] [blame] | 214 | persist.vendor.camera.exif_reveal_make_model=true |
jonerlin | 972d2c2 | 2021-06-29 16:36:29 +0800 | [diff] [blame] | 215 | |
| 216 | # Bluetooth HAL |
| 217 | PRODUCT_PACKAGES += \ |
jonerlin | 972d2c2 | 2021-06-29 16:36:29 +0800 | [diff] [blame] | 218 | bt_vendor.conf |
Ted Wang | 0ada3b4 | 2022-08-31 19:24:48 +0800 | [diff] [blame] | 219 | PRODUCT_COPY_FILES += \ |
| 220 | device/google/raviole/bluetooth/bt_vendor_overlay.conf:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/bt_vendor_overlay.conf |
jiabin | c4ffb64 | 2021-07-16 22:34:35 +0000 | [diff] [blame] | 221 | |
Mars Lin | eabb3bf | 2022-06-08 22:11:37 +0800 | [diff] [blame] | 222 | # tetheroffload HAL |
| 223 | PRODUCT_PACKAGES += \ |
| 224 | vendor.samsung_slsi.hardware.tetheroffload@1.1-service |
| 225 | |
jiabin | c4ffb64 | 2021-07-16 22:34:35 +0000 | [diff] [blame] | 226 | # Override default distortion output gain according to UX experiments |
| 227 | PRODUCT_PRODUCT_PROPERTIES += \ |
| 228 | vendor.audio.hapticgenerator.distortion.output.gain=0.5 |
Martin Liu | bbb311a | 2021-10-05 12:24:18 +0000 | [diff] [blame] | 229 | |
| 230 | # Set zram size |
| 231 | PRODUCT_VENDOR_PROPERTIES += \ |
| 232 | vendor.zram.size=3g |
Alex Hong | b803358 | 2021-11-17 19:10:08 +0800 | [diff] [blame] | 233 | |
| 234 | # This device is shipped with 31 (Android S) |
| 235 | PRODUCT_SHIPPING_API_LEVEL := 31 |
Alice Kuo | 8ee4619 | 2021-12-17 13:28:08 +0800 | [diff] [blame] | 236 | |
| 237 | # userdebug specific |
| 238 | ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT))) |
| 239 | # Bluetooth LE Audio Hardware offload |
| 240 | PRODUCT_PRODUCT_PROPERTIES += \ |
| 241 | ro.bluetooth.leaudio_offload.supported=true \ |
| 242 | persist.bluetooth.leaudio_offload.disabled=true \ |
Patty | 434b1bd | 2022-03-22 12:09:58 +0800 | [diff] [blame] | 243 | persist.bluetooth.le_audio_test=false |
Alice Kuo | 8ee4619 | 2021-12-17 13:28:08 +0800 | [diff] [blame] | 244 | endif |
Ben Murdoch | b5b4257 | 2022-03-10 10:44:27 +0000 | [diff] [blame] | 245 | |
Jean-Michel Trivi | d84805f | 2022-10-31 21:42:51 +0000 | [diff] [blame] | 246 | # declare use of spatial audio |
justinweng | 07e8b01 | 2022-01-25 15:45:21 +0800 | [diff] [blame] | 247 | PRODUCT_PROPERTY_OVERRIDES += \ |
Jean-Michel Trivi | d84805f | 2022-10-31 21:42:51 +0000 | [diff] [blame] | 248 | ro.audio.spatializer_enabled=true |
justinweng | 07e8b01 | 2022-01-25 15:45:21 +0800 | [diff] [blame] | 249 | |
Andy Hung | 3f8d5cf | 2022-12-16 13:42:45 -0800 | [diff] [blame^] | 250 | # optimize spatializer effect |
| 251 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 252 | audio.spatializer.effect.util_clamp_min=300 |
| 253 | |
justinweng | 07e8b01 | 2022-01-25 15:45:21 +0800 | [diff] [blame] | 254 | PRODUCT_PACKAGES += \ |
| 255 | libspatialaudio |
| 256 | |
Ben Murdoch | b5b4257 | 2022-03-10 10:44:27 +0000 | [diff] [blame] | 257 | # Device features |
| 258 | PRODUCT_COPY_FILES += \ |
| 259 | frameworks/native/data/etc/handheld_core_hardware.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/handheld_core_hardware.xml |
Jean-Michel Trivi | 8074cbc | 2022-03-07 11:20:40 -0800 | [diff] [blame] | 260 | |
| 261 | # Dolby integration |
| 262 | -include vendor/dolby/ds/dolby-buildspec.mk |
| 263 | $(call inherit-product-if-exists, vendor/dolby/ds/dolby-product.mk) |
| 264 | # overwrite file coming from device/google/gs101/media_codecs_bo_c2.xml |
| 265 | PRODUCT_COPY_FILES := \ |
| 266 | device/google/raviole/media_codecs_dolby_c2.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_c2.xml \ |
| 267 | $(PRODUCT_COPY_FILES) |
| 268 | |
| 269 | PRODUCT_RESTRICT_VENDOR_FILES := false |
Matt Buckley | c9c61f4 | 2022-08-10 18:59:17 +0000 | [diff] [blame] | 270 | |
| 271 | # Enable adpf cpu hint session for SurfaceFlinger |
| 272 | PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \ |
| 273 | debug.sf.enable_adpf_cpu_hint=true |
kuanyuhuang | 932c817 | 2022-10-27 10:03:03 +0000 | [diff] [blame] | 274 | |
| 275 | # Bluetooth OPUS codec |
| 276 | PRODUCT_PRODUCT_PROPERTIES += \ |
| 277 | persist.bluetooth.opus.enabled=true |