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 | |
Joe Onorato | 28b6e56 | 2023-04-14 10:58:58 -0700 | [diff] [blame] | 17 | # 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 Yang | 6fd62fe | 2024-08-29 11:58:09 +0000 | [diff] [blame] | 20 | ifdef RELEASE_GOOGLE_RAVEN_RADIO_DIR |
| 21 | RELEASE_GOOGLE_PRODUCT_RADIO_DIR := $(RELEASE_GOOGLE_RAVEN_RADIO_DIR) |
| 22 | endif |
| 23 | RELEASE_GOOGLE_BOOTLOADER_RAVEN_DIR ?= pdk# Keep this for pdk TODO: b/327119000 |
| 24 | RELEASE_GOOGLE_PRODUCT_BOOTLOADER_DIR := bootloader/$(RELEASE_GOOGLE_BOOTLOADER_RAVEN_DIR) |
| 25 | $(call soong_config_set,raviole_bootloader,prebuilt_dir,$(RELEASE_GOOGLE_BOOTLOADER_RAVEN_DIR)) |
| 26 | |
| 27 | |
Cyan_Hsieh | c55ff34 | 2024-04-02 16:38:08 +0800 | [diff] [blame] | 28 | TARGET_LINUX_KERNEL_VERSION := $(RELEASE_KERNEL_RAVEN_VERSION) |
Nina Chen | 40affb8 | 2024-03-08 18:29:57 +0800 | [diff] [blame] | 29 | # Keeps flexibility for kasan and ufs builds |
Cyan_Hsieh | c55ff34 | 2024-04-02 16:38:08 +0800 | [diff] [blame] | 30 | TARGET_KERNEL_DIR ?= $(RELEASE_KERNEL_RAVEN_DIR) |
| 31 | TARGET_BOARD_KERNEL_HEADERS ?= $(RELEASE_KERNEL_RAVEN_DIR)/kernel-headers |
Aaron Ding | 926ef41 | 2023-12-27 00:58:22 +0800 | [diff] [blame] | 32 | |
Cole Faust | 4a96299 | 2023-10-06 15:04:01 -0700 | [diff] [blame] | 33 | $(call inherit-product, device/google/raviole/uwb/uwb_calibration_country.mk) |
Robin Peng | cd374d8 | 2021-02-23 20:00:46 +0800 | [diff] [blame] | 34 | $(call inherit-product-if-exists, vendor/google_devices/raviole/prebuilts/device-vendor-raven.mk) |
| 35 | $(call inherit-product-if-exists, vendor/google_devices/gs101/prebuilts/device-vendor.mk) |
| 36 | $(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] | 37 | $(call inherit-product-if-exists, vendor/google_devices/raven/proprietary/device-vendor.mk) |
linpeter | f3d8bf6 | 2021-03-17 09:27:12 +0800 | [diff] [blame] | 38 | $(call inherit-product-if-exists, vendor/google_devices/raviole/proprietary/raven/device-vendor-raven.mk) |
PEI-HSIEN KUO | 36dd88a | 2021-03-18 19:39:38 +0800 | [diff] [blame] | 39 | $(call inherit-product-if-exists, vendor/google/camera/devices/raviole/raven/device-vendor.mk) |
Ching-Sung Li | fb5e389 | 2021-05-31 15:18:59 +0800 | [diff] [blame] | 40 | $(call inherit-product-if-exists, vendor/google_devices/raviole/proprietary/WallpapersRaven.mk) |
Robin Peng | cd374d8 | 2021-02-23 20:00:46 +0800 | [diff] [blame] | 41 | |
| 42 | DEVICE_PACKAGE_OVERLAYS += device/google/raviole/raven/overlay |
| 43 | |
Robert Lee | 09c3fd3 | 2021-08-16 06:21:06 +0000 | [diff] [blame] | 44 | include device/google/raviole/audio/raven/audio-tables.mk |
Robin Peng | cd374d8 | 2021-02-23 20:00:46 +0800 | [diff] [blame] | 45 | include device/google/gs101/device-shipping-common.mk |
yawensu | c51621f | 2021-09-14 14:16:49 +0800 | [diff] [blame] | 46 | include device/google/gs101/telephony/pktrouter.mk |
Adam Shih | 6e05ed0 | 2022-08-16 13:56:53 +0800 | [diff] [blame] | 47 | include device/google/gs-common/bcmbt/bluetooth.mk |
Adam Shih | 7b29848 | 2022-11-07 11:34:43 +0800 | [diff] [blame] | 48 | include device/google/gs-common/touch/lsi/lsi.mk |
Ilya Matyukhin | 1d54825 | 2021-05-18 01:03:41 -0700 | [diff] [blame] | 49 | |
chenkris | 686598b | 2023-06-08 09:59:13 +0000 | [diff] [blame] | 50 | # Fingerprint HAL |
| 51 | GOODIX_CONFIG_BUILD_VERSION := g6_trusty |
chenkris | 79df843 | 2023-06-13 03:06:29 +0000 | [diff] [blame] | 52 | $(call inherit-product-if-exists, vendor/goodix/udfps/configuration/udfps_common.mk) |
chenkris | 686598b | 2023-06-08 09:59:13 +0000 | [diff] [blame] | 53 | ifeq ($(filter factory%, $(TARGET_PRODUCT)),) |
chenkris | 79df843 | 2023-06-13 03:06:29 +0000 | [diff] [blame] | 54 | $(call inherit-product-if-exists, vendor/goodix/udfps/configuration/udfps_shipping.mk) |
Ilya Matyukhin | 1d54825 | 2021-05-18 01:03:41 -0700 | [diff] [blame] | 55 | else |
chenkris | 79df843 | 2023-06-13 03:06:29 +0000 | [diff] [blame] | 56 | $(call inherit-product-if-exists, vendor/goodix/udfps/configuration/udfps_factory.mk) |
Ilya Matyukhin | 1d54825 | 2021-05-18 01:03:41 -0700 | [diff] [blame] | 57 | endif |
| 58 | |
Victor Liu | 0bc47d6 | 2021-04-20 22:15:02 +0000 | [diff] [blame] | 59 | ifeq ($(filter factory_raven, $(TARGET_PRODUCT)),) |
Victor Liu | 49d231b | 2021-10-26 12:00:09 -0700 | [diff] [blame] | 60 | include device/google/raviole/uwb/uwb_calibration.mk |
Victor Liu | 0bc47d6 | 2021-04-20 22:15:02 +0000 | [diff] [blame] | 61 | endif |
Ilya Matyukhin | 1d54825 | 2021-05-18 01:03:41 -0700 | [diff] [blame] | 62 | |
Robin Peng | cd374d8 | 2021-02-23 20:00:46 +0800 | [diff] [blame] | 63 | include hardware/google/pixel/vibrator/cs40l25/device.mk |
| 64 | |
Krzysztof Kosiński | 6165da4 | 2022-09-13 01:56:24 +0000 | [diff] [blame] | 65 | # go/lyric-soong-variables |
| 66 | $(call soong_config_set,lyric,camera_hardware,raven) |
Sasha Smundak | fbe1c66 | 2021-12-15 09:17:53 -0800 | [diff] [blame] | 67 | $(call soong_config_set,lyric,tuning_product,raven) |
| 68 | $(call soong_config_set,google3a_config,target_device,raven) |
Krzysztof Kosiński | 0fc38d2 | 2021-11-02 21:00:10 -0700 | [diff] [blame] | 69 | |
Robin Peng | cd374d8 | 2021-02-23 20:00:46 +0800 | [diff] [blame] | 70 | PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.surface_flinger.support_kernel_idle_timer=true |
Ady Abraham | 9a9d024 | 2021-03-19 12:52:46 -0700 | [diff] [blame] | 71 | PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.surface_flinger.enable_frame_rate_override=true |
Robin Peng | cd374d8 | 2021-02-23 20:00:46 +0800 | [diff] [blame] | 72 | |
| 73 | # Init files |
| 74 | PRODUCT_COPY_FILES += \ |
Robin Peng | 334022f | 2021-05-05 12:01:32 +0800 | [diff] [blame] | 75 | 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] | 76 | device/google/raviole/conf/init.raven.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.raven.rc |
| 77 | |
| 78 | # Recovery files |
| 79 | PRODUCT_COPY_FILES += \ |
| 80 | device/google/gs101/conf/init.recovery.device.rc:$(TARGET_COPY_OUT_RECOVERY)/root/init.recovery.raven.rc |
| 81 | |
| 82 | # insmod files |
| 83 | PRODUCT_COPY_FILES += \ |
| 84 | device/google/raviole/init.insmod.raven.cfg:$(TARGET_COPY_OUT_VENDOR)/etc/init.insmod.raven.cfg |
| 85 | |
| 86 | # Thermal Config |
| 87 | PRODUCT_COPY_FILES += \ |
David Chao | 6c2519c | 2022-08-15 18:56:43 +0800 | [diff] [blame] | 88 | device/google/raviole/thermal_info_config_raven.json:$(TARGET_COPY_OUT_VENDOR)/etc/thermal_info_config.json \ |
| 89 | device/google/raviole/thermal_info_config_charge_raven.json:$(TARGET_COPY_OUT_VENDOR)/etc/thermal_info_config_charge.json |
Robin Peng | cd374d8 | 2021-02-23 20:00:46 +0800 | [diff] [blame] | 90 | |
Jimmy Shiu | fdfe3e3 | 2022-01-22 05:04:01 +0800 | [diff] [blame] | 91 | # Power HAL config |
| 92 | PRODUCT_COPY_FILES += \ |
André Draszik | e3f5d8a | 2023-06-19 15:55:08 +0100 | [diff] [blame] | 93 | device/google/raviole/powerhint-raven.json:$(TARGET_COPY_OUT_VENDOR)/etc/powerhint.json \ |
| 94 | device/google/raviole/powerhint-raven-mainline.json:$(TARGET_COPY_OUT_VENDOR)/etc/powerhint-mainline.json |
Jimmy Shiu | fdfe3e3 | 2022-01-22 05:04:01 +0800 | [diff] [blame] | 95 | |
Roshan Pius | 19b9158 | 2022-12-09 04:27:29 +0000 | [diff] [blame] | 96 | PRODUCT_PACKAGES += \ |
| 97 | UwbOverlayR4 |
| 98 | |
Ted Wang | 2640afc | 2023-05-05 04:02:11 +0000 | [diff] [blame] | 99 | # Bluetooth sepolicy |
| 100 | include device/google/gs101-sepolicy/raven-sepolicy.mk |
| 101 | |
Cheney Ni | ab92016 | 2021-06-28 13:47:54 +0800 | [diff] [blame] | 102 | # Bluetooth |
| 103 | PRODUCT_PRODUCT_PROPERTIES += \ |
jonerlin | 6075bd6 | 2022-07-15 10:47:19 +0800 | [diff] [blame] | 104 | persist.bluetooth.a2dp_aac.vbr_supported=true \ |
| 105 | persist.bluetooth.firmware.selection=BCM.hcd |
Cheney Ni | ab92016 | 2021-06-28 13:47:54 +0800 | [diff] [blame] | 106 | |
Labib | 68270de | 2021-05-05 17:15:43 +0800 | [diff] [blame] | 107 | # Bluetooth Tx power caps for raven |
| 108 | PRODUCT_COPY_FILES += \ |
Andrew Chant | 891f54c | 2023-05-30 14:43:13 -0700 | [diff] [blame] | 109 | device/google/raviole/bluetooth_power_limits_raven.csv:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_power_limits.csv \ |
| 110 | device/google/raviole/bluetooth_power_limits_raven_us.csv:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_power_limits_US.csv \ |
| 111 | device/google/raviole/bluetooth_power_limits_raven_eu.csv:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_power_limits_EU.csv \ |
| 112 | device/google/raviole/bluetooth_power_limits_raven_jp.csv:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_power_limits_JP.csv |
Ted Wang | e540f7b | 2021-08-23 09:48:56 +0800 | [diff] [blame] | 113 | |
Adam Shih | e41c2c2 | 2022-08-26 09:54:06 +0800 | [diff] [blame] | 114 | # Bluetooth HAL |
| 115 | PRODUCT_COPY_FILES += \ |
| 116 | device/google/raviole/bluetooth/bt_vendor_overlay.conf:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/bt_vendor_overlay.conf |
Labib | 68270de | 2021-05-05 17:15:43 +0800 | [diff] [blame] | 117 | |
jonerlin | 9c27ad6 | 2022-04-06 11:49:52 +0800 | [diff] [blame] | 118 | # Bluetooth Hal Extension test tools |
Ted Wang | 34a8963 | 2021-07-15 18:46:57 +0800 | [diff] [blame] | 119 | PRODUCT_PACKAGES_DEBUG += \ |
jonerlin | 9c27ad6 | 2022-04-06 11:49:52 +0800 | [diff] [blame] | 120 | sar_test \ |
| 121 | hci_inject |
Ted Wang | 34a8963 | 2021-07-15 18:46:57 +0800 | [diff] [blame] | 122 | |
Adam Shih | e41c2c2 | 2022-08-26 09:54:06 +0800 | [diff] [blame] | 123 | # userdebug specific |
| 124 | ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT))) |
| 125 | # Bluetooth LE Audio Hardware offload |
| 126 | PRODUCT_PRODUCT_PROPERTIES += \ |
| 127 | ro.bluetooth.leaudio_offload.supported=true \ |
| 128 | persist.bluetooth.leaudio_offload.disabled=true \ |
| 129 | persist.bluetooth.le_audio_test=false |
| 130 | endif |
| 131 | |
Jie Song | 6b68ff7 | 2021-07-14 21:35:19 +0000 | [diff] [blame] | 132 | # MIPI Coex Configs |
| 133 | PRODUCT_COPY_FILES += \ |
| 134 | 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 |
| 135 | |
Robin Peng | cd374d8 | 2021-02-23 20:00:46 +0800 | [diff] [blame] | 136 | # Camera |
| 137 | PRODUCT_COPY_FILES += \ |
| 138 | device/google/raviole/media_profiles_raven.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_V1_0.xml |
| 139 | |
| 140 | # Display Config |
| 141 | PRODUCT_COPY_FILES += \ |
Long Ling | 8275661 | 2021-04-30 15:52:57 -0700 | [diff] [blame] | 142 | device/google/raviole/raven/display_golden_cal0.pb:$(TARGET_COPY_OUT_VENDOR)/etc/display_golden_cal0.pb \ |
| 143 | device/google/raviole/raven/display_colordata_dev_cal0.pb:$(TARGET_COPY_OUT_VENDOR)/etc/display_colordata_dev_cal0.pb |
Robin Peng | cd374d8 | 2021-02-23 20:00:46 +0800 | [diff] [blame] | 144 | |
linpeter | a6263cc | 2021-07-01 19:40:34 +0800 | [diff] [blame] | 145 | #config of display brightness dimming |
linpeter | f256ffb | 2022-08-19 15:17:11 +0800 | [diff] [blame] | 146 | PRODUCT_DEFAULT_PROPERTY_OVERRIDES += vendor.display.0.brightness.dimming.usage=1 |
linpeter | a6263cc | 2021-07-01 19:40:34 +0800 | [diff] [blame] | 147 | |
Robin Peng | cd374d8 | 2021-02-23 20:00:46 +0800 | [diff] [blame] | 148 | # NFC |
| 149 | PRODUCT_COPY_FILES += \ |
George Chang | 8933f1b | 2021-08-17 00:51:25 +0800 | [diff] [blame] | 150 | frameworks/native/data/etc/android.hardware.nfc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.xml \ |
| 151 | frameworks/native/data/etc/android.hardware.nfc.hce.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hce.xml \ |
| 152 | frameworks/native/data/etc/android.hardware.nfc.hcef.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hcef.xml \ |
| 153 | frameworks/native/data/etc/com.nxp.mifare.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.nxp.mifare.xml \ |
| 154 | frameworks/native/data/etc/android.hardware.nfc.uicc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.uicc.xml \ |
Victor Liu | a2e5153 | 2023-08-31 22:00:57 +0000 | [diff] [blame] | 155 | 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] | 156 | device/google/raviole/nfc/libnfc-hal-st.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libnfc-hal-st.conf \ |
| 157 | device/google/raviole/nfc/libnfc-nci-raven.conf:$(TARGET_COPY_OUT_PRODUCT)/etc/libnfc-nci.conf |
| 158 | |
George Chang | 8933f1b | 2021-08-17 00:51:25 +0800 | [diff] [blame] | 159 | PRODUCT_PACKAGES += \ |
Roshan Pius | cd3dd4d | 2023-12-01 19:19:56 +0000 | [diff] [blame] | 160 | $(RELEASE_PACKAGE_NFC_STACK) \ |
George Chang | 8933f1b | 2021-08-17 00:51:25 +0800 | [diff] [blame] | 161 | Tag \ |
Roshan Pius | 21db443 | 2023-12-01 19:19:56 +0000 | [diff] [blame] | 162 | android.hardware.nfc-service.st \ |
| 163 | NfcOverlayRaven |
George Chang | 8933f1b | 2021-08-17 00:51:25 +0800 | [diff] [blame] | 164 | |
| 165 | # SecureElement |
| 166 | PRODUCT_PACKAGES += \ |
George Chang | c84c460 | 2021-08-20 17:09:55 +0800 | [diff] [blame] | 167 | android.hardware.secure_element@1.2-service-gto \ |
| 168 | android.hardware.secure_element@1.2-service-gto-ese2 |
George Chang | 8933f1b | 2021-08-17 00:51:25 +0800 | [diff] [blame] | 169 | |
| 170 | PRODUCT_COPY_FILES += \ |
| 171 | frameworks/native/data/etc/android.hardware.se.omapi.ese.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.se.omapi.ese.xml \ |
| 172 | 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] | 173 | device/google/raviole/nfc/libse-gto-hal.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libse-gto-hal.conf \ |
| 174 | device/google/raviole/nfc/libse-gto-hal2.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libse-gto-hal2.conf |
George Chang | 8933f1b | 2021-08-17 00:51:25 +0800 | [diff] [blame] | 175 | |
Robin Peng | cd374d8 | 2021-02-23 20:00:46 +0800 | [diff] [blame] | 176 | DEVICE_MANIFEST_FILE += \ |
George Chang | 8933f1b | 2021-08-17 00:51:25 +0800 | [diff] [blame] | 177 | device/google/raviole/nfc/manifest_se.xml |
Robin Peng | cd374d8 | 2021-02-23 20:00:46 +0800 | [diff] [blame] | 178 | |
George Chang | c84c460 | 2021-08-20 17:09:55 +0800 | [diff] [blame] | 179 | |
Robin Peng | cd374d8 | 2021-02-23 20:00:46 +0800 | [diff] [blame] | 180 | # Vibrator HAL |
| 181 | PRODUCT_PRODUCT_PROPERTIES +=\ |
chasewu | f680529 | 2022-04-14 15:30:02 +0800 | [diff] [blame] | 182 | ro.vendor.vibrator.hal.long.frequency.shift=15 \ |
| 183 | ro.vendor.vibrator.hal.device.mass=0.21 \ |
Nathan Kulczak | 0b0f586 | 2023-08-15 01:22:27 +0000 | [diff] [blame] | 184 | ro.vendor.vibrator.hal.loc.coeff=2.5 \ |
| 185 | persist.vendor.vibrator.hal.chirp.enabled=0 |
Jimmy Shiu | 1fef228 | 2021-11-10 00:07:25 +0800 | [diff] [blame] | 186 | |
Vince Leung | 63d0be6 | 2021-08-27 20:07:54 +0000 | [diff] [blame] | 187 | ACTUATOR_MODEL := luxshare_ict_081545 |
Robin Peng | cd374d8 | 2021-02-23 20:00:46 +0800 | [diff] [blame] | 188 | |
linpeter | 85646ce | 2020-12-17 21:18:41 +0800 | [diff] [blame] | 189 | # Display LBE |
| 190 | PRODUCT_DEFAULT_PROPERTY_OVERRIDES += vendor.display.lbe.supported=1 |
Benjamin Schwartz | c798cb3 | 2021-03-18 17:55:40 -0700 | [diff] [blame] | 191 | |
wenchangliu | a768e6f | 2021-08-13 15:31:52 +0800 | [diff] [blame] | 192 | # Media Performance Class 12 |
| 193 | PRODUCT_PROPERTY_OVERRIDES += ro.odm.build.media_performance_class=31 |
| 194 | |
Benjamin Schwartz | c798cb3 | 2021-03-18 17:55:40 -0700 | [diff] [blame] | 195 | # PowerStats HAL |
Yanting Yang | 3b1f8ef | 2021-05-31 03:53:40 +0800 | [diff] [blame] | 196 | PRODUCT_SOONG_NAMESPACES += \ |
| 197 | device/google/raviole/powerstats/raven \ |
| 198 | device/google/raviole |
| 199 | |
Jack Wu | 6e0bb1c | 2019-01-17 21:38:27 +0800 | [diff] [blame] | 200 | |
| 201 | # userdebug specific |
| 202 | ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT))) |
| 203 | PRODUCT_COPY_FILES += \ |
Ken Tsou | 97db855 | 2022-03-16 17:50:30 +0800 | [diff] [blame] | 204 | 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] | 205 | endif |
terrycrhuang | fd95a68 | 2021-04-14 17:32:20 +0800 | [diff] [blame] | 206 | |
| 207 | # Increment the SVN for any official public releases |
Lokesh Kumar Goel | 8062fbd | 2024-04-04 00:07:01 +0000 | [diff] [blame] | 208 | ifdef RELEASE_SVN_RAVEN |
| 209 | TARGET_SVN ?= $(RELEASE_SVN_RAVEN) |
| 210 | else |
| 211 | # Set this for older releases that don't use build flag |
Ankur Bakshi | 121db9a | 2024-08-09 00:08:23 +0000 | [diff] [blame] | 212 | TARGET_SVN ?= 86 |
Lokesh Kumar Goel | 8062fbd | 2024-04-04 00:07:01 +0000 | [diff] [blame] | 213 | endif |
| 214 | |
terrycrhuang | fd95a68 | 2021-04-14 17:32:20 +0800 | [diff] [blame] | 215 | PRODUCT_VENDOR_PROPERTIES += \ |
Lokesh Kumar Goel | 8062fbd | 2024-04-04 00:07:01 +0000 | [diff] [blame] | 216 | ro.vendor.build.svn=$(TARGET_SVN) |
shawnlin | 1c49162 | 2021-04-22 13:27:45 +0800 | [diff] [blame] | 217 | |
Lokesh Kumar Goel | efffce0 | 2024-04-06 00:05:53 +0000 | [diff] [blame] | 218 | # Set device family property for SMR |
| 219 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 220 | ro.build.device_family=O6R4B9 |
| 221 | |
| 222 | # Set build properties for SMR builds |
| 223 | ifeq ($(RELEASE_IS_SMR), true) |
| 224 | ifneq (,$(RELEASE_BASE_OS_RAVEN)) |
| 225 | PRODUCT_BASE_OS := $(RELEASE_BASE_OS_RAVEN) |
| 226 | endif |
| 227 | endif |
| 228 | |
| 229 | # Set build properties for EMR builds |
| 230 | ifeq ($(RELEASE_IS_EMR), true) |
| 231 | ifneq (,$(RELEASE_BASE_OS_RAVEN)) |
| 232 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 233 | ro.build.version.emergency_base_os=$(RELEASE_BASE_OS_RAVEN) |
| 234 | endif |
| 235 | endif |
| 236 | |
shawnlin | 6c36397 | 2022-02-15 13:40:37 +0800 | [diff] [blame] | 237 | # Set support hide display cutout feature |
| 238 | PRODUCT_PRODUCT_PROPERTIES += \ |
| 239 | ro.support_hide_display_cutout=true |
| 240 | |
shawnlin | 1c49162 | 2021-04-22 13:27:45 +0800 | [diff] [blame] | 241 | # Hide cutout overlays |
| 242 | PRODUCT_PACKAGES += \ |
| 243 | NoCutoutOverlay \ |
| 244 | AvoidAppsInCutoutOverlay |
Kris Chen | 74dfc0c | 2021-05-07 21:38:46 +0800 | [diff] [blame] | 245 | |
Jayant Chowdhary | e3669c9 | 2023-05-25 20:16:27 +0000 | [diff] [blame] | 246 | # Android DeviceAsWebcam specific overlay |
| 247 | PRODUCT_PACKAGES += \ |
| 248 | DeviceAsWebcamRaven |
| 249 | |
Kris Chen | 74dfc0c | 2021-05-07 21:38:46 +0800 | [diff] [blame] | 250 | # Fingerprint antispoof property |
| 251 | PRODUCT_PRODUCT_PROPERTIES +=\ |
| 252 | persist.vendor.fingerprint.disable.fake.override=none |
Cyan_Hsieh | a327e42 | 2021-05-26 11:56:31 +0800 | [diff] [blame] | 253 | |
Kris Chen | 36cf68c | 2022-04-19 22:12:00 +0800 | [diff] [blame] | 254 | # Fingerprint HAL |
| 255 | PRODUCT_VENDOR_PROPERTIES += \ |
Kris Chen | f514128 | 2022-05-24 20:15:22 +0800 | [diff] [blame] | 256 | persist.vendor.udfps.lhbm_controlled_in_hal_supported=true \ |
| 257 | persist.vendor.udfps.als_feed_forward_supported=true |
| 258 | |
Kris Chen | 36cf68c | 2022-04-19 22:12:00 +0800 | [diff] [blame] | 259 | |
Cyan_Hsieh | a327e42 | 2021-05-26 11:56:31 +0800 | [diff] [blame] | 260 | # Keyboard side padding in dp for portrait mode |
| 261 | PRODUCT_PRODUCT_PROPERTIES += ro.com.google.ime.kb_pad_port_r=11 |
| 262 | PRODUCT_PRODUCT_PROPERTIES += ro.com.google.ime.kb_pad_port_l=11 |
Michael Ayoubi | ca6b352 | 2021-05-25 02:09:47 +0000 | [diff] [blame] | 263 | |
| 264 | # DCK properties based on target |
| 265 | PRODUCT_PROPERTY_OVERRIDES += \ |
Jeffrey Carlyle | eaaa3f2 | 2023-02-17 15:01:11 -0800 | [diff] [blame] | 266 | ro.gms.dck.eligible_wcc=3 \ |
| 267 | ro.gms.dck.se_capability=1 |
Yanting Yang | 3b1f8ef | 2021-05-31 03:53:40 +0800 | [diff] [blame] | 268 | |
| 269 | # SKU specific RROs |
| 270 | PRODUCT_PACKAGES += \ |
Yanting Yang | c1583a9 | 2021-08-23 13:34:59 +0800 | [diff] [blame] | 271 | SettingsOverlayGF5KQ \ |
| 272 | SettingsOverlayGLU0G \ |
| 273 | SettingsOverlayG8V0U |
Robin Peng | 6e4640b | 2021-06-01 18:03:27 +0800 | [diff] [blame] | 274 | |
| 275 | # Trusty liboemcrypto.so |
| 276 | PRODUCT_SOONG_NAMESPACES += vendor/google_devices/raviole/prebuilts |
Bill Lin | 964bf23 | 2021-06-04 08:48:58 +0800 | [diff] [blame] | 277 | |
| 278 | # Set support one-handed mode |
| 279 | PRODUCT_PRODUCT_PROPERTIES += \ |
| 280 | ro.support_one_handed_mode=true |
Zhijun He | 59a3061 | 2021-07-09 11:33:45 -0700 | [diff] [blame] | 281 | |
| 282 | # Enable camera exif model/make reporting |
Charles Chiu | 57fc706 | 2021-07-28 14:58:36 +0800 | [diff] [blame] | 283 | PRODUCT_VENDOR_PROPERTIES += \ |
Zhijun He | 59a3061 | 2021-07-09 11:33:45 -0700 | [diff] [blame] | 284 | persist.vendor.camera.exif_reveal_make_model=true |
jonerlin | 972d2c2 | 2021-06-29 16:36:29 +0800 | [diff] [blame] | 285 | |
Mars Lin | eabb3bf | 2022-06-08 22:11:37 +0800 | [diff] [blame] | 286 | # tetheroffload HAL |
| 287 | PRODUCT_PACKAGES += \ |
| 288 | vendor.samsung_slsi.hardware.tetheroffload@1.1-service |
| 289 | |
jiabin | c4ffb64 | 2021-07-16 22:34:35 +0000 | [diff] [blame] | 290 | # Override default distortion output gain according to UX experiments |
Chris Paulo | 3f6f5bd | 2024-07-22 17:13:23 -0700 | [diff] [blame] | 291 | PRODUCT_VENDOR_PROPERTIES += \ |
| 292 | vendor.audio.hapticgenerator.distortion.output.gain=0.32 |
Martin Liu | bbb311a | 2021-10-05 12:24:18 +0000 | [diff] [blame] | 293 | |
Tri Vo | de03be0 | 2023-01-30 15:59:51 -0800 | [diff] [blame] | 294 | # RKPD |
| 295 | PRODUCT_PRODUCT_PROPERTIES += \ |
Tri Vo | de03be0 | 2023-01-30 15:59:51 -0800 | [diff] [blame] | 296 | remote_provisioning.hostname=remoteprovisioning.googleapis.com \ |
| 297 | |
Martin Liu | bbb311a | 2021-10-05 12:24:18 +0000 | [diff] [blame] | 298 | # Set zram size |
| 299 | PRODUCT_VENDOR_PROPERTIES += \ |
| 300 | vendor.zram.size=3g |
Alex Hong | b803358 | 2021-11-17 19:10:08 +0800 | [diff] [blame] | 301 | |
| 302 | # This device is shipped with 31 (Android S) |
| 303 | PRODUCT_SHIPPING_API_LEVEL := 31 |
Alice Kuo | 8ee4619 | 2021-12-17 13:28:08 +0800 | [diff] [blame] | 304 | |
justinweng | 20a2a95 | 2022-01-25 15:45:21 +0800 | [diff] [blame] | 305 | # declare use of spatial audio |
| 306 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 307 | ro.audio.spatializer_enabled=true |
| 308 | |
Andy Hung | 3f8d5cf | 2022-12-16 13:42:45 -0800 | [diff] [blame] | 309 | # optimize spatializer effect |
| 310 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 311 | audio.spatializer.effect.util_clamp_min=300 |
| 312 | |
justinweng | 20a2a95 | 2022-01-25 15:45:21 +0800 | [diff] [blame] | 313 | PRODUCT_PACKAGES += \ |
| 314 | libspatialaudio |
| 315 | |
Ben Murdoch | b5b4257 | 2022-03-10 10:44:27 +0000 | [diff] [blame] | 316 | # Device features |
| 317 | PRODUCT_COPY_FILES += \ |
| 318 | frameworks/native/data/etc/handheld_core_hardware.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/handheld_core_hardware.xml |
Matt Buckley | 0f365e0 | 2022-08-10 18:59:17 +0000 | [diff] [blame] | 319 | |
joenchen | 81330ea | 2022-09-07 12:59:12 +0000 | [diff] [blame] | 320 | # Display RRS default Config |
| 321 | PRODUCT_DEFAULT_PROPERTY_OVERRIDES += persist.vendor.display.primary.boot_config=1440x3120@120 |
| 322 | |
kuanyuhuang | 932c817 | 2022-10-27 10:03:03 +0000 | [diff] [blame] | 323 | # Bluetooth OPUS codec |
| 324 | PRODUCT_PRODUCT_PROPERTIES += \ |
| 325 | persist.bluetooth.opus.enabled=true |
Jakub Pawlowski | 9d6e665 | 2022-10-31 22:04:26 +0100 | [diff] [blame] | 326 | |
Adam Shih | 7845ccf | 2022-10-21 14:39:46 +0800 | [diff] [blame] | 327 | # Location |
| 328 | ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT))) |
Cheng Chang | 9bef878 | 2024-06-25 09:43:41 +0000 | [diff] [blame] | 329 | ifneq (,$(filter 6.1, $(TARGET_LINUX_KERNEL_VERSION))) |
Adam Shih | 7845ccf | 2022-10-21 14:39:46 +0800 | [diff] [blame] | 330 | PRODUCT_COPY_FILES += \ |
Cheng Chang | 9bef878 | 2024-06-25 09:43:41 +0000 | [diff] [blame] | 331 | device/google/raviole/location/gps.6.1.xml.raven:$(TARGET_COPY_OUT_VENDOR)/etc/gnss/gps.xml |
| 332 | else |
| 333 | PRODUCT_COPY_FILES += \ |
| 334 | device/google/raviole/location/gps.xml.raven:$(TARGET_COPY_OUT_VENDOR)/etc/gnss/gps.xml |
| 335 | endif |
Adam Shih | 7845ccf | 2022-10-21 14:39:46 +0800 | [diff] [blame] | 336 | else |
Cheng Chang | 9bef878 | 2024-06-25 09:43:41 +0000 | [diff] [blame] | 337 | ifneq (,$(filter 6.1, $(TARGET_LINUX_KERNEL_VERSION))) |
Adam Shih | 7845ccf | 2022-10-21 14:39:46 +0800 | [diff] [blame] | 338 | PRODUCT_COPY_FILES += \ |
Cheng Chang | 9bef878 | 2024-06-25 09:43:41 +0000 | [diff] [blame] | 339 | device/google/raviole/location/gps_user.6.1.xml.raven:$(TARGET_COPY_OUT_VENDOR)/etc/gnss/gps.xml |
| 340 | else |
| 341 | PRODUCT_COPY_FILES += \ |
| 342 | device/google/raviole/location/gps_user.xml.raven:$(TARGET_COPY_OUT_VENDOR)/etc/gnss/gps.xml |
| 343 | endif |
Adam Shih | 7845ccf | 2022-10-21 14:39:46 +0800 | [diff] [blame] | 344 | endif |
Jiaming Liu | 9e53e0e | 2023-05-12 01:36:04 +0000 | [diff] [blame] | 345 | |
Avichal Rakesh | d552119 | 2023-02-06 13:32:35 -0800 | [diff] [blame] | 346 | # Enable DeviceAsWebcam support |
| 347 | PRODUCT_VENDOR_PROPERTIES += \ |
| 348 | ro.usb.uvc.enabled=true |
Shivakumar Neginal | 4fb3e74 | 2023-10-16 18:53:29 +0000 | [diff] [blame] | 349 | # Quick Start device-specific settings |
| 350 | PRODUCT_PRODUCT_PROPERTIES += \ |
| 351 | ro.quick_start.oem_id=00e0 \ |
| 352 | ro.quick_start.device_id=raven |
Alice Wang | c88d336 | 2024-05-21 15:17:46 +0000 | [diff] [blame] | 353 | |
| 354 | # Disable AVF Remote Attestation |
| 355 | PRODUCT_AVF_REMOTE_ATTESTATION_DISABLED := true |
Koli Lin | 6a11d1a | 2024-07-11 03:49:32 +0000 | [diff] [blame] | 356 | |
| 357 | # Bluetooth device id |
| 358 | PRODUCT_PRODUCT_PROPERTIES += \ |
| 359 | bluetooth.device_id.product_id=20487 |
Yabin Cui | e0fcb2d | 2024-05-23 15:14:23 -0700 | [diff] [blame^] | 360 | |
| 361 | # ETM |
| 362 | ifneq (,$(RELEASE_ETM_IN_USERDEBUG_ENG)) |
| 363 | ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT))) |
| 364 | $(call inherit-product-if-exists, device/google/common/etm/device-userdebug-modules.mk) |
| 365 | endif |
| 366 | endif |