• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#
2# Copyright (C) 2016 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
17TARGET_CHIPSET := sdm710
18
19PRODUCT_SOONG_NAMESPACES += \
20    device/google/bonito \
21    hardware/google/av \
22    hardware/google/camera \
23    hardware/google/interfaces \
24    hardware/google/pixel \
25    hardware/qcom/sdm845 \
26    vendor/google/camera \
27    vendor/qcom/sdm845 \
28    vendor/google/interfaces
29
30PRODUCT_PROPERTY_OVERRIDES += \
31    keyguard.no_require_sim=true
32
33PRODUCT_PROPERTY_OVERRIDES += ro.crypto.volume.filenames_mode=aes-256-cts
34
35# enable cal by default on accel sensor
36PRODUCT_PRODUCT_PROPERTIES += \
37    persist.debug.sensors.accel_cal=1
38
39# The default value of this variable is false and should only be set to true when
40# the device allows users to retain eSIM profiles after factory reset of user data.
41PRODUCT_PRODUCT_PROPERTIES += \
42    masterclear.allow_retain_esim_profiles_after_fdr=true
43
44PRODUCT_COPY_FILES += \
45    device/google/bonito/default-permissions.xml:$(TARGET_COPY_OUT_VENDOR)/etc/default-permissions/default-permissions.xml \
46    device/google/bonito/component-overrides.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sysconfig/component-overrides.xml \
47    frameworks/native/data/etc/handheld_core_hardware.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/handheld_core_hardware.xml \
48    frameworks/native/data/etc/android.software.verified_boot.xml:$(TARGET_COPY_OUT_PRODUCT)/etc/permissions/android.software.verified_boot.xml
49
50# Enforce privapp-permissions whitelist
51PRODUCT_PROPERTY_OVERRIDES += \
52    ro.control_privapp_permissions=enforce
53
54# Enable on-access verification of priv apps. This requires fs-verity support in kernel.
55PRODUCT_PROPERTY_OVERRIDES += \
56    ro.apk_verity.mode=1
57
58PRODUCT_PACKAGES += \
59    messaging
60
61ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
62PRODUCT_PACKAGES += chre_test_client
63endif
64
65LOCAL_PATH := device/google/bonito
66
67TARGET_PRODUCT_PROP := $(LOCAL_PATH)/product.prop
68
69$(call inherit-product, $(LOCAL_PATH)/utils.mk)
70
71# Installs gsi keys into ramdisk, to boot a developer GSI with verified boot.
72$(call inherit-product, $(SRC_TARGET_DIR)/product/developer_gsi_keys.mk)
73
74ifeq ($(wildcard vendor/google_devices/bonito/proprietary/device-vendor-bonito.mk),)
75    BUILD_WITHOUT_VENDOR := true
76endif
77
78ifeq ($(TARGET_PREBUILT_KERNEL),)
79    LOCAL_KERNEL := device/google/bonito-kernel/Image.lz4
80else
81    LOCAL_KERNEL := $(TARGET_PREBUILT_KERNEL)
82endif
83
84PRODUCT_CHARACTERISTICS := nosdcard
85PRODUCT_SHIPPING_API_LEVEL := 28
86
87DEVICE_PACKAGE_OVERLAYS += $(LOCAL_PATH)/overlay
88
89PRODUCT_COPY_FILES += \
90    $(LOCAL_KERNEL):kernel \
91    $(LOCAL_PATH)/init.recovery.hardware.rc:recovery/root/init.recovery.$(PRODUCT_PLATFORM).rc \
92    $(LOCAL_PATH)/init.hardware.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.$(PRODUCT_PLATFORM).rc \
93    $(LOCAL_PATH)/init.hardware.usb.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.$(PRODUCT_PLATFORM).usb.rc \
94    $(LOCAL_PATH)/ueventd.hardware.rc:$(TARGET_COPY_OUT_VENDOR)/ueventd.rc \
95    $(LOCAL_PATH)/init.power.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.$(PRODUCT_PLATFORM).power.rc \
96    $(LOCAL_PATH)/init.radio.sh:$(TARGET_COPY_OUT_VENDOR)/bin/init.radio.sh \
97    $(LOCAL_PATH)/uinput-fpc.kl:$(TARGET_COPY_OUT_VENDOR)/usr/keylayout/uinput-fpc.kl \
98    $(LOCAL_PATH)/uinput-fpc.idc:$(TARGET_COPY_OUT_VENDOR)/usr/idc/uinput-fpc.idc \
99    $(LOCAL_PATH)/init.qcom.devstart.sh:$(TARGET_COPY_OUT_VENDOR)/bin/init.qcom.devstart.sh \
100    $(LOCAL_PATH)/init.qcom.ipastart.sh:$(TARGET_COPY_OUT_VENDOR)/bin/init.qcom.ipastart.sh \
101    $(LOCAL_PATH)/init.qcom.wlan.sh:$(TARGET_COPY_OUT_VENDOR)/bin/init.qcom.wlan.sh \
102    $(LOCAL_PATH)/init.insmod.sh:$(TARGET_COPY_OUT_VENDOR)/bin/init.insmod.sh \
103    $(LOCAL_PATH)/init.insmod.cfg:$(TARGET_COPY_OUT_VENDOR)/etc/init.insmod.cfg \
104    $(LOCAL_PATH)/thermal-engine-$(PRODUCT_HARDWARE).conf:$(TARGET_COPY_OUT_VENDOR)/etc/thermal-engine-$(PRODUCT_HARDWARE).conf \
105    $(LOCAL_PATH)/init.firstboot.sh:$(TARGET_COPY_OUT_VENDOR)/bin/init.firstboot.sh \
106    $(LOCAL_PATH)/init.ramoops.sh:$(TARGET_COPY_OUT_VENDOR)/bin/init.ramoops.sh
107
108# Edge Sense initialization script.
109# TODO: b/67205273
110PRODUCT_COPY_FILES += \
111    $(LOCAL_PATH)/init.edge_sense.sh:$(TARGET_COPY_OUT_VENDOR)/bin/init.edge_sense.sh
112
113ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
114  PRODUCT_COPY_FILES += \
115      $(LOCAL_PATH)/init.hardware.diag.rc.userdebug:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.$(PRODUCT_PLATFORM).diag.rc
116  PRODUCT_COPY_FILES += \
117      $(LOCAL_PATH)/init.hardware.mpssrfs.rc.userdebug:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.$(PRODUCT_PLATFORM).mpssrfs.rc
118  PRODUCT_COPY_FILES += \
119      $(LOCAL_PATH)/init.hardware.chamber.rc.userdebug:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.$(PRODUCT_PLATFORM).chamber.rc
120else
121  PRODUCT_COPY_FILES += \
122      $(LOCAL_PATH)/init.hardware.diag.rc.user:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.$(PRODUCT_PLATFORM).diag.rc
123  PRODUCT_COPY_FILES += \
124      $(LOCAL_PATH)/init.hardware.mpssrfs.rc.user:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.$(PRODUCT_PLATFORM).mpssrfs.rc
125endif
126
127#per device
128PRODUCT_COPY_FILES += \
129    $(LOCAL_PATH)/bonito/init.bonito.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.bonito.rc \
130    $(LOCAL_PATH)/sargo/init.sargo.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.sargo.rc \
131    $(LOCAL_PATH)/init.recovery.hardware.device.rc:recovery/root/init.recovery.bonito.rc \
132    $(LOCAL_PATH)/init.recovery.hardware.device.rc:recovery/root/init.recovery.sargo.rc \
133
134MSM_VIDC_TARGET_LIST := sdm710 # Get the color format from kernel headers
135MASTER_SIDE_CP_TARGET_LIST := sdm710 # ION specific settings
136
137# A/B support
138PRODUCT_PACKAGES += \
139    otapreopt_script \
140    cppreopts.sh \
141    update_engine \
142    update_verifier
143
144# Resume on Reboot support
145PRODUCT_PACKAGES += \
146    android.hardware.rebootescrow-service.citadel
147
148# Use Sdcardfs
149PRODUCT_PRODUCT_PROPERTIES += \
150    ro.sys.sdcardfs=1
151
152PRODUCT_PACKAGES += \
153    bootctrl.sdm710 \
154    bootctrl.sdm710.recovery
155
156PRODUCT_PROPERTY_OVERRIDES += \
157    ro.cp_system_other_odex=1
158
159# Userdata Checkpointing OTA GC
160PRODUCT_PACKAGES += \
161    checkpoint_gc
162
163AB_OTA_POSTINSTALL_CONFIG += \
164    RUN_POSTINSTALL_system=true \
165    POSTINSTALL_PATH_system=system/bin/otapreopt_script \
166    FILESYSTEM_TYPE_system=ext4 \
167    POSTINSTALL_OPTIONAL_system=true
168
169AB_OTA_POSTINSTALL_CONFIG += \
170    RUN_POSTINSTALL_vendor=true \
171    POSTINSTALL_PATH_vendor=bin/checkpoint_gc \
172    FILESYSTEM_TYPE_vendor=ext4 \
173    POSTINSTALL_OPTIONAL_vendor=true
174
175PRODUCT_PACKAGES += \
176    update_engine_sideload \
177    sg_write_buffer \
178    f2fs_io \
179    check_f2fs
180
181# The following modules are included in debuggable builds only.
182PRODUCT_PACKAGES_DEBUG += \
183    bootctl \
184    update_engine_client
185
186# Write flags to the vendor space in /misc partition.
187PRODUCT_PACKAGES += \
188    misc_writer
189
190PRODUCT_COPY_FILES += \
191    frameworks/native/data/etc/android.hardware.camera.flash-autofocus.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.flash-autofocus.xml \
192    frameworks/native/data/etc/android.hardware.camera.front.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.front.xml \
193    frameworks/native/data/etc/android.hardware.camera.full.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.full.xml\
194    frameworks/native/data/etc/android.hardware.camera.raw.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.raw.xml\
195    frameworks/native/data/etc/android.hardware.bluetooth.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth.xml \
196    frameworks/native/data/etc/android.hardware.bluetooth_le.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth_le.xml \
197    frameworks/native/data/etc/android.hardware.reboot_escrow.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.reboot_escrow.xml \
198    frameworks/native/data/etc/android.hardware.sensor.accelerometer.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.accelerometer.xml \
199    frameworks/native/data/etc/android.hardware.sensor.assist.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.assist.xml \
200    frameworks/native/data/etc/android.hardware.sensor.compass.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.compass.xml \
201    frameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.gyroscope.xml \
202    frameworks/native/data/etc/android.hardware.sensor.light.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.light.xml \
203    frameworks/native/data/etc/android.hardware.sensor.proximity.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.proximity.xml \
204    frameworks/native/data/etc/android.hardware.sensor.barometer.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.barometer.xml \
205    frameworks/native/data/etc/android.hardware.sensor.stepcounter.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.stepcounter.xml \
206    frameworks/native/data/etc/android.hardware.sensor.stepdetector.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.stepdetector.xml \
207    frameworks/native/data/etc/android.hardware.sensor.hifi_sensors.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.hifi_sensors.xml \
208    frameworks/native/data/etc/android.hardware.context_hub.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.context_hub.xml \
209    frameworks/native/data/etc/android.hardware.location.gps.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.location.gps.xml \
210    frameworks/native/data/etc/android.hardware.telephony.gsm.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.telephony.gsm.xml \
211    frameworks/native/data/etc/android.hardware.telephony.cdma.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.telephony.cdma.xml \
212    frameworks/native/data/etc/android.hardware.telephony.ims.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.telephony.ims.xml \
213    frameworks/native/data/etc/android.hardware.touchscreen.multitouch.jazzhand.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml \
214    frameworks/native/data/etc/android.hardware.wifi.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.xml \
215    frameworks/native/data/etc/android.hardware.wifi.direct.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.direct.xml \
216    frameworks/native/data/etc/android.hardware.wifi.aware.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.aware.xml \
217    frameworks/native/data/etc/android.hardware.wifi.passpoint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.passpoint.xml \
218    frameworks/native/data/etc/android.hardware.wifi.rtt.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.rtt.xml \
219    frameworks/native/data/etc/android.software.sip.voip.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.sip.voip.xml \
220    frameworks/native/data/etc/android.hardware.usb.accessory.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.usb.accessory.xml \
221    frameworks/native/data/etc/android.hardware.usb.host.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.usb.host.xml \
222    frameworks/native/data/etc/android.hardware.opengles.aep.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.opengles.aep.xml \
223    frameworks/native/data/etc/android.hardware.nfc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.xml \
224    frameworks/native/data/etc/android.hardware.nfc.hce.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hce.xml \
225    frameworks/native/data/etc/android.hardware.nfc.hcef.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hcef.xml \
226    frameworks/native/data/etc/com.nxp.mifare.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.nxp.mifare.xml \
227    frameworks/native/data/etc/android.hardware.vulkan.level-1.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.vulkan.level.xml \
228    frameworks/native/data/etc/android.hardware.vulkan.compute-0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.vulkan.compute.xml \
229    frameworks/native/data/etc/android.hardware.vulkan.version-1_1.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.vulkan.version.xml \
230    frameworks/native/data/etc/android.software.vulkan.deqp.level-2020-03-01.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.vulkan.deqp.level.xml \
231    frameworks/native/data/etc/android.hardware.telephony.carrierlock.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.telephony.carrierlock.xml \
232    frameworks/native/data/etc/android.hardware.se.omapi.uicc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.se.omapi.uicc.xml \
233    frameworks/native/data/etc/android.hardware.strongbox_keystore.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.strongbox_keystore.xml \
234    frameworks/native/data/etc/android.software.ipsec_tunnels.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.ipsec_tunnels.xml \
235
236# powerstats HAL
237PRODUCT_PACKAGES += \
238    android.hardware.power.stats@1.0-service.pixel
239
240PRODUCT_COPY_FILES += \
241    $(LOCAL_PATH)/powerhint.json:$(TARGET_COPY_OUT_VENDOR)/etc/powerhint.json
242
243# perfstatsd
244PRODUCT_PACKAGES_DEBUG += \
245    perfstatsd
246
247# Audio fluence, ns, aec property, voice and media volume steps
248PRODUCT_PROPERTY_OVERRIDES += \
249    ro.vendor.audio.sdk.fluencetype=fluencepro \
250    persist.audio.fluence.voicecall=true \
251    persist.audio.fluence.speaker=true \
252    persist.audio.fluence.voicecomm=true \
253    persist.audio.fluence.voicerec=false \
254    persist.audio.dualmic.config=endfire \
255    persist.audio.in_mmap_delay_micros=100 \
256    persist.audio.out_mmap_delay_micros=150 \
257    ro.config.vc_call_vol_steps=7 \
258    ro.config.media_vol_steps=25 \
259    vendor.audio.offload.gapless.enabled=true \
260
261# MaxxAudio effect and add rotation monitor
262PRODUCT_PROPERTY_OVERRIDES += \
263    ro.audio.monitorRotation=true
264
265PRODUCT_PACKAGES += \
266    libmalistener
267
268# graphics
269PRODUCT_PROPERTY_OVERRIDES += \
270    ro.opengles.version=196610
271
272PRODUCT_PROPERTY_OVERRIDES += \
273    ro.vendor.display.foss=1 \
274    ro.vendor.display.paneltype=2 \
275    ro.vendor.display.sensortype=2 \
276    vendor.display.foss.config=1 \
277    vendor.display.foss.config_path=/vendor/etc/FOSSConfig.xml
278
279# Add saturation parameters
280PRODUCT_PROPERTY_OVERRIDES += \
281    vendor.display.adaptive_saturation_parameter=1.1574,-0.0426,-0.0426,-0.143,1.057,-0.143,-0.0144,-0.0144,1.1856
282
283# b/73168288
284PRODUCT_PROPERTY_OVERRIDES += \
285    vendor.display.disable_rotator_downscale=1
286
287PRODUCT_PROPERTY_OVERRIDES += \
288    vendor.display.disable_inline_rotator=1
289
290# Enable camera EIS3.0
291PRODUCT_PROPERTY_OVERRIDES += \
292    persist.camera.is_type=5 \
293    persist.camera.gzoom.at=0
294
295# camera google face detection
296PRODUCT_PROPERTY_OVERRIDES += \
297    persist.camera.googfd.enable=1
298
299# Enable logical camera as default (camera id 1)
300PRODUCT_PROPERTY_OVERRIDES += \
301    persist.camera.logical.default=1
302
303# OEM Unlock reporting
304PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \
305    ro.oem_unlock_supported=1
306
307PRODUCT_PROPERTY_OVERRIDES += \
308    persist.vendor.cne.feature=1 \
309    persist.vendor.data.iwlan.enable=true \
310    persist.radio.RATE_ADAPT_ENABLE=1 \
311    persist.radio.ROTATION_ENABLE=1 \
312    persist.radio.VT_ENABLE=1 \
313    persist.radio.VT_HYBRID_ENABLE=1 \
314    persist.vendor.radio.apm_sim_not_pwdn=1 \
315    persist.vendor.radio.custom_ecc=1 \
316    persist.vendor.radio.data_ltd_sys_ind=1 \
317    persist.radio.videopause.mode=1 \
318    persist.vendor.radio.mt_sms_ack=30 \
319    persist.vendor.radio.multisim_switch_support=true \
320    persist.vendor.radio.sib16_support=1 \
321    persist.vendor.radio.data_con_rprt=true \
322    persist.vendor.radio.relay_oprt_change=1 \
323    persist.vendor.radio.sap_silent_pin=1 \
324    persist.vendor.radio.no_wait_for_card=1 \
325    persist.vendor.radio.manual_nw_rej_ct=1 \
326    persist.rcs.supported=1 \
327    vendor.rild.libpath=/vendor/lib64/libril-qc-hal-qmi.so \
328    ro.hardware.keystore_desede=true \
329
330# Enable reboot free DSDS
331PRODUCT_PRODUCT_PROPERTIES += \
332    persist.radio.reboot_on_modem_change=false
333
334PRODUCT_PROPERTY_OVERRIDES += \
335    telephony.active_modems.max_count=2
336
337# Disable snapshot timer
338PRODUCT_PROPERTY_OVERRIDES += \
339    persist.vendor.radio.snapshot_enabled=0 \
340    persist.vendor.radio.snapshot_timer=0
341
342# logical camera for dual front sensors
343PRODUCT_PROPERTY_OVERRIDES += \
344  persist.vendor.camera.multicam=1
345
346# WLAN driver configuration files
347PRODUCT_COPY_FILES += \
348    $(LOCAL_PATH)/wpa_supplicant_overlay.conf:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/wpa_supplicant_overlay.conf \
349    $(LOCAL_PATH)/p2p_supplicant_overlay.conf:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/p2p_supplicant_overlay.conf \
350    $(LOCAL_PATH)/wifi_concurrency_cfg.txt:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/wifi_concurrency_cfg.txt \
351    $(LOCAL_PATH)/WCNSS_qcom_cfg.ini:$(TARGET_COPY_OUT_VENDOR)/firmware/wlan/qca_cld/WCNSS_qcom_cfg.ini \
352
353PRODUCT_PACKAGES += \
354    hwcomposer.$(TARGET_CHIPSET) \
355    android.hardware.graphics.composer@2.2-service \
356    gralloc.$(TARGET_CHIPSET) \
357    android.hardware.graphics.mapper@2.0-impl-qti-display \
358    vendor.qti.hardware.display.allocator@1.0-service
359
360# RenderScript HAL
361PRODUCT_PACKAGES += \
362    android.hardware.renderscript@1.0-impl
363
364# Health HAL
365PRODUCT_PACKAGES += \
366    android.hardware.health@2.0-service.bonito
367
368# Storage health HAL
369PRODUCT_PACKAGES += \
370    android.hardware.health.storage@1.0-service
371
372# Light HAL
373PRODUCT_PACKAGES += \
374    lights.$(TARGET_CHIPSET) \
375    android.hardware.light@2.0-impl \
376    android.hardware.light@2.0-service
377
378# Memtrack HAL
379PRODUCT_PACKAGES += \
380    memtrack.$(TARGET_CHIPSET) \
381    android.hardware.memtrack@1.0-impl \
382    android.hardware.memtrack@1.0-service
383
384# Bluetooth HAL
385PRODUCT_PACKAGES += \
386    android.hardware.bluetooth@1.0-impl-qti \
387    android.hardware.bluetooth@1.0-service-qti
388
389# Bluetooth SoC
390PRODUCT_PROPERTY_OVERRIDES += \
391    vendor.qcom.bluetooth.soc=cherokee
392
393# Property for loading BDA from device tree
394PRODUCT_PROPERTY_OVERRIDES += \
395    ro.vendor.bt.bdaddr_path=/proc/device-tree/chosen/cdt/cdb2/bt_addr
396
397# Bluetooth WiPower
398PRODUCT_PROPERTY_OVERRIDES += \
399    ro.vendor.bluetooth.emb_wp_mode=false \
400    ro.vendor.bluetooth.wipower=false
401
402# DRM HAL
403PRODUCT_PACKAGES += \
404    android.hardware.drm@1.0-impl \
405    android.hardware.drm@1.0-service \
406    android.hardware.drm@1.3-service.clearkey \
407    android.hardware.drm@1.3-service.widevine
408
409# NFC and Secure Element packages
410PRODUCT_PACKAGES += \
411    NfcNci \
412    Tag \
413    SecureElement \
414    android.hardware.nfc@1.2-service \
415    android.hardware.secure_element@1.1-service-disabled
416
417PRODUCT_COPY_FILES += \
418    device/google/bonito/nfc/libnfc-nci.conf:$(TARGET_COPY_OUT_PRODUCT)/etc/libnfc-nci.conf \
419    device/google/bonito/nfc/libese-nxp.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libese-nxp.conf
420
421PRODUCT_COPY_FILES += \
422    frameworks/native/data/etc/android.hardware.nfc.uicc.xml:$(TARGET_COPY_OUT_VENDOR)/odm/etc/permissions/sku_G020A/android.hardware.nfc.uicc.xml \
423    frameworks/native/data/etc/android.hardware.nfc.uicc.xml:$(TARGET_COPY_OUT_VENDOR)/odm/etc/permissions/sku_G020B/android.hardware.nfc.uicc.xml \
424    frameworks/native/data/etc/android.hardware.nfc.uicc.xml:$(TARGET_COPY_OUT_VENDOR)/odm/etc/permissions/sku_G020C/android.hardware.nfc.uicc.xml \
425    frameworks/native/data/etc/android.hardware.nfc.ese.xml:$(TARGET_COPY_OUT_VENDOR)/odm/etc/permissions/sku_G020D/android.hardware.nfc.ese.xml \
426    frameworks/native/data/etc/android.hardware.se.omapi.ese.xml:$(TARGET_COPY_OUT_VENDOR)/odm/etc/permissions/sku_G020D/android.hardware.se.omapi.ese.xml \
427    frameworks/native/data/etc/android.hardware.nfc.uicc.xml:$(TARGET_COPY_OUT_VENDOR)/odm/etc/permissions/sku_G020E/android.hardware.nfc.uicc.xml \
428    frameworks/native/data/etc/android.hardware.nfc.uicc.xml:$(TARGET_COPY_OUT_VENDOR)/odm/etc/permissions/sku_G020F/android.hardware.nfc.uicc.xml \
429    frameworks/native/data/etc/android.hardware.nfc.uicc.xml:$(TARGET_COPY_OUT_VENDOR)/odm/etc/permissions/sku_G020G/android.hardware.nfc.uicc.xml \
430    frameworks/native/data/etc/android.hardware.nfc.ese.xml:$(TARGET_COPY_OUT_VENDOR)/odm/etc/permissions/sku_G020H/android.hardware.nfc.ese.xml \
431    frameworks/native/data/etc/android.hardware.se.omapi.ese.xml:$(TARGET_COPY_OUT_VENDOR)/odm/etc/permissions/sku_G020D/android.hardware.se.omapi.ese.xml \
432
433PRODUCT_COPY_FILES += \
434    device/google/bonito/nfc/com.google.hardware.pixel.japan.xml:$(TARGET_COPY_OUT_ODM)/etc/permissions/sku_G020D/com.google.hardware.pixel.japan.xml \
435    device/google/bonito/nfc/com.google.hardware.pixel.japan.xml:$(TARGET_COPY_OUT_ODM)/etc/permissions/sku_G020H/com.google.hardware.pixel.japan.xml
436
437PRODUCT_PACKAGES += \
438    android.hardware.usb@1.1-service.bonito
439
440PRODUCT_PACKAGES += \
441    libmm-omxcore \
442    libOmxCore \
443    libstagefrighthw \
444    libOmxVdec \
445    libOmxVdecHevc \
446    libOmxVenc \
447    libc2dcolorconvert
448
449# Enable Codec 2.0
450PRODUCT_PROPERTY_OVERRIDES += \
451    debug.media.codec2=2 \
452
453# Disable OMX
454PRODUCT_PROPERTY_OVERRIDES += \
455    vendor.media.omx=0 \
456
457# Create input surface on the framework side
458PRODUCT_PROPERTY_OVERRIDES += \
459    debug.stagefright.c2inputsurface=-1 \
460
461PRODUCT_PACKAGES += \
462    libqcodec2 \
463    vendor.qti.media.c2@1.0-service \
464    media_codecs_c2.xml \
465    codec2.vendor.ext.policy \
466    codec2.vendor.base.policy
467
468PRODUCT_PACKAGES += \
469    android.hardware.camera.provider@2.4-impl \
470    android.hardware.camera.provider@2.4-service_64 \
471    camera.device@3.2-impl \
472    camera.sdm710 \
473    libqomx_core \
474    libmmjpeg_interface \
475    libmmcamera_interface \
476    libcameradepthcalibrator
477
478# Google Camera HAL test libraries in debug builds
479PRODUCT_PACKAGES_DEBUG += \
480    libgoogle_camera_hal_proprietary_tests \
481    libgoogle_camera_hal_tests.vendor
482
483PRODUCT_PACKAGES += \
484    sensors.$(PRODUCT_HARDWARE) \
485    android.hardware.sensors@2.0-impl \
486    android.hardware.sensors@2.0-service \
487    android.hardware.sensors@2.0-service.rc
488
489PRODUCT_COPY_FILES += \
490    $(LOCAL_PATH)/sensors/hals.conf:vendor/etc/sensors/hals.conf
491
492# Default permission grant exceptions
493PRODUCT_COPY_FILES += \
494    device/google/bonito/default-permissions.xml:$(TARGET_COPY_OUT_VENDOR)/etc/default-permissions/default-permissions.xml
495
496PRODUCT_PACKAGES += \
497    fs_config_dirs \
498    fs_config_files
499
500# Context hub HAL
501PRODUCT_PACKAGES += \
502    android.hardware.contexthub@1.1-service.generic
503
504# Boot control HAL
505PRODUCT_PACKAGES += \
506    android.hardware.boot@1.0-impl \
507    android.hardware.boot@1.0-impl.recovery \
508    android.hardware.boot@1.0-service \
509
510PRODUCT_COPY_FILES += \
511    $(LOCAL_PATH)/thermal_info_config_$(PRODUCT_HARDWARE).json:$(TARGET_COPY_OUT_VENDOR)/etc/thermal_info_config.json
512
513#GNSS HAL
514PRODUCT_PACKAGES += \
515    libgps.utils \
516    libgnss \
517    liblocation_api \
518    android.hardware.gnss@1.1-impl-qti \
519    android.hardware.gnss@1.1-service-qti
520
521ENABLE_VENDOR_RIL_SERVICE := true
522
523PRODUCT_COPY_FILES += \
524    $(LOCAL_PATH)/sec_config:$(TARGET_COPY_OUT_VENDOR)/etc/sec_config
525
526
527HOSTAPD := hostapd
528HOSTAPD += hostapd_cli
529PRODUCT_PACKAGES += $(HOSTAPD)
530
531WPA := wpa_supplicant.conf
532WPA += wpa_supplicant_wcn.conf
533WPA += wpa_supplicant
534PRODUCT_PACKAGES += $(WPA)
535
536ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
537PRODUCT_PACKAGES += wpa_cli
538endif
539
540# Wifi
541PRODUCT_PACKAGES += \
542    android.hardware.wifi@1.0-service \
543    wificond \
544    libwpa_client \
545    WifiOverlay
546
547LIB_NL := libnl_2
548PRODUCT_PACKAGES += $(LIB_NL)
549
550# Audio effects
551PRODUCT_PACKAGES += \
552    libvolumelistener \
553    libqcomvisualizer \
554    libqcomvoiceprocessing \
555    libqcomvoiceprocessingdescriptors \
556    libqcompostprocbundle
557
558PRODUCT_PACKAGES += \
559    audio.primary.sdm710 \
560    audio.a2dp.default \
561    audio.usb.default \
562    audio.r_submix.default \
563    libaudio-resampler \
564    audio.hearing_aid.default \
565    audio.bluetooth.default
566
567PRODUCT_PACKAGES += \
568    android.hardware.audio@6.0-impl:32 \
569    android.hardware.audio.effect@6.0-impl:32 \
570    android.hardware.soundtrigger@2.2-impl \
571    android.hardware.bluetooth.audio@2.0-impl \
572    android.hardware.audio@2.0-service
573
574ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
575PRODUCT_PACKAGES += \
576    tinyplay \
577    tinycap \
578    tinymix \
579    tinypcminfo \
580    cplay
581endif
582
583PRODUCT_COPY_FILES += \
584    $(LOCAL_PATH)/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration.xml \
585    $(LOCAL_PATH)/audio_policy_configuration_a2dp_offload_disabled.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration_a2dp_offload_disabled.xml \
586    $(LOCAL_PATH)/audio_policy_configuration_bluetooth_legacy_hal.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration_bluetooth_legacy_hal.xml \
587    $(LOCAL_PATH)/bluetooth_hearing_aid_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_hearing_aid_audio_policy_configuration.xml \
588    $(LOCAL_PATH)/audio_policy_volumes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_volumes.xml \
589    frameworks/av/services/audiopolicy/config/a2dp_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/a2dp_audio_policy_configuration.xml \
590    frameworks/av/services/audiopolicy/config/a2dp_in_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/a2dp_in_audio_policy_configuration.xml \
591    frameworks/av/services/audiopolicy/config/bluetooth_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_audio_policy_configuration.xml \
592    frameworks/av/services/audiopolicy/config/hearing_aid_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/hearing_aid_audio_policy_configuration.xml \
593    frameworks/av/services/audiopolicy/config/usb_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/usb_audio_policy_configuration.xml \
594    frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/r_submix_audio_policy_configuration.xml \
595    frameworks/av/services/audiopolicy/config/default_volume_tables.xml:$(TARGET_COPY_OUT_VENDOR)/etc/default_volume_tables.xml
596
597# Audio XMLs
598PRODUCT_COPY_FILES += \
599    $(LOCAL_PATH)/mixer_paths_intcodec_b4.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_intcodec_b4.xml \
600    $(LOCAL_PATH)/mixer_paths_intcodec_b4.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_intcodec_b4dev.xml \
601    $(LOCAL_PATH)/audio_platform_info_intcodec_b4.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_intcodec_b4.xml \
602    $(LOCAL_PATH)/audio_platform_info_intcodec_b4dev.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_intcodec_b4dev.xml \
603    $(LOCAL_PATH)/mixer_paths_intcodec_s4.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_intcodec_s4.xml \
604    $(LOCAL_PATH)/mixer_paths_intcodec_s4.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_intcodec_s4dev.xml \
605    $(LOCAL_PATH)/audio_platform_info_intcodec_s4.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_intcodec_s4.xml \
606    $(LOCAL_PATH)/audio_platform_info_intcodec_s4dev.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_intcodec_s4dev.xml
607
608# audio hal tables
609PRODUCT_COPY_FILES += \
610    $(LOCAL_PATH)/sound_trigger_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_platform_info.xml \
611    $(LOCAL_PATH)/sound_trigger_mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths.xml \
612    $(LOCAL_PATH)/graphite_ipc_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/graphite_ipc_platform_info.xml \
613
614PRODUCT_COPY_FILES += \
615    $(LOCAL_PATH)/media_codecs.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs.xml \
616    $(LOCAL_PATH)/media_codecs_performance.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_performance.xml \
617    frameworks/av/media/libstagefright/data/media_codecs_google_telephony.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_telephony.xml \
618    frameworks/av/media/libstagefright/data/media_codecs_google_video.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_video.xml \
619    $(LOCAL_PATH)/media_profiles_V1_0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_V1_0.xml \
620    $(LOCAL_PATH)/media_codecs_omx.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_omx.xml
621
622PRODUCT_PROPERTY_OVERRIDES += \
623    audio.snd_card.open.retries=50
624
625PRODUCT_COPY_FILES += \
626    $(LOCAL_PATH)/lowi.conf:$(TARGET_COPY_OUT_VENDOR)/etc/lowi.conf
627
628# GPS configuration file
629PRODUCT_COPY_FILES += \
630    $(LOCAL_PATH)/gps.conf:$(TARGET_COPY_OUT_VENDOR)/etc/gps.conf
631
632# Vendor seccomp policy files for media components:
633PRODUCT_COPY_FILES += \
634    $(LOCAL_PATH)/seccomp_policy/mediacodec.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/mediacodec.policy
635
636ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
637# Subsystem ramdump
638PRODUCT_PROPERTY_OVERRIDES += \
639    persist.vendor.sys.ssr.enable_ramdumps=1
640endif
641
642# Subsystem silent restart
643PRODUCT_PROPERTY_OVERRIDES += \
644    persist.vendor.sys.ssr.restart_level=modem,slpi,adsp
645
646ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
647# Sensor debug flag
648PRODUCT_PROPERTY_OVERRIDES += \
649    persist.vendor.debug.ash.logger=0 \
650    persist.vendor.debug.ash.logger.time=0
651endif
652
653# setup dalvik vm configs
654$(call inherit-product, frameworks/native/build/phone-xhdpi-4096-dalvik-heap.mk)
655
656PRODUCT_COPY_FILES += \
657    device/google/bonito/fstab.hardware:$(TARGET_COPY_OUT_VENDOR)/etc/fstab.$(PRODUCT_PLATFORM) \
658    device/google/bonito/fstab.hardware:$(TARGET_COPY_OUT_RECOVERY)/root/first_stage_ramdisk/fstab.$(PRODUCT_PLATFORM) \
659
660# Use the default charger mode images
661PRODUCT_PACKAGES += \
662    charger_res_images
663
664ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
665# b/36703476: Set default log size to 1M
666PRODUCT_PROPERTY_OVERRIDES += \
667  ro.logd.size=1M
668# b/114766334: persist all logs by default rotating on 30 files of 1MiB
669PRODUCT_PROPERTY_OVERRIDES += \
670  logd.logpersistd=logcatd \
671  logd.logpersistd.size=30
672endif
673
674# Dumpstate HAL
675PRODUCT_PACKAGES += \
676    android.hardware.dumpstate@1.1-service.bonito
677
678# Citadel
679PRODUCT_PACKAGES += \
680    citadeld \
681    citadel_updater \
682    android.hardware.authsecret@1.0-service.citadel \
683    android.hardware.oemlock@1.0-service.citadel \
684    android.hardware.weaver@1.0-service.citadel \
685    android.hardware.keymaster@4.1-service.citadel \
686    android.hardware.identity@1.0-service.citadel \
687    wait_for_strongbox
688
689# Citadel debug stuff
690PRODUCT_PACKAGES_DEBUG += \
691    test_citadel
692
693# Storage: for factory reset protection feature
694PRODUCT_PROPERTY_OVERRIDES += \
695    ro.frp.pst=/dev/block/bootdevice/by-name/frp
696
697PRODUCT_PACKAGES += \
698    vndk-sp
699
700# Override heap growth limit due to high display density on device
701PRODUCT_PROPERTY_OVERRIDES += \
702    dalvik.vm.heapgrowthlimit=256m
703
704PRODUCT_COPY_FILES += \
705    device/google/bonito/hidl/android.hidl.base@1.0.so-32:system_ext/lib/android.hidl.base@1.0.so \
706    device/google/bonito/hidl/android.hidl.base@1.0.so-64:system_ext/lib64/android.hidl.base@1.0.so \
707    device/google/bonito/hidl/android.hidl.base@1.0.so-32:vendor/lib/android.hidl.base@1.0.so \
708    device/google/bonito/hidl/android.hidl.base@1.0.so-64:vendor/lib64/android.hidl.base@1.0.so \
709
710PRODUCT_PACKAGES += \
711    ipacm \
712    IPACM_cfg.xml
713
714#Set default CDMA subscription to RUIM
715PRODUCT_PROPERTY_OVERRIDES += \
716    ro.telephony.default_cdma_sub=0
717
718# Set network mode to Global by default and no DSDS/DSDA
719PRODUCT_PROPERTY_OVERRIDES += ro.telephony.default_network=10
720
721# Set display color mode to Automatic by default
722PRODUCT_PROPERTY_OVERRIDES += \
723    persist.sys.sf.color_saturation=1.0 \
724    persist.sys.sf.native_mode=2
725
726# Easel device feature
727PRODUCT_COPY_FILES += \
728    device/google/bonito/permissions/com.google.hardware.camera.easel_2018.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.google.hardware.camera.easel_2018.xml
729
730# Fingerprint
731PRODUCT_PACKAGES += \
732    android.hardware.biometrics.fingerprint@2.1-service.fpc
733PRODUCT_COPY_FILES += \
734    $(LOCAL_PATH)/init.fingerprint.sh:$(TARGET_COPY_OUT_VENDOR)/bin/init.fingerprint.sh \
735
736PRODUCT_COPY_FILES += \
737    frameworks/native/data/etc/android.hardware.fingerprint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.fingerprint.xml
738
739# CS40L20 Haptics Waveform & Firmware
740PRODUCT_COPY_FILES += \
741    device/google/bonito/vibrator/cs40l20/cs40l20.wmfw:$(TARGET_COPY_OUT_VENDOR)/firmware/cs40l20.wmfw \
742    device/google/bonito/vibrator/cs40l20/cs40l20.bin:$(TARGET_COPY_OUT_VENDOR)/firmware/cs40l20.bin
743
744PRODUCT_VENDOR_KERNEL_HEADERS := device/google/bonito/sdm710/kernel-headers
745
746# Audio ACDB data
747PRODUCT_COPY_FILES += \
748     device/google/bonito/acdbdata/OEM/sdm670-intcodec-b4-snd-card/Bluetooth_cal.acdb:$(TARGET_COPY_OUT_VENDOR)/etc/acdbdata/OEM/sdm670-intcodec-b4-snd-card/Bluetooth_cal.acdb \
749     device/google/bonito/acdbdata/OEM/sdm670-intcodec-b4-snd-card/General_cal.acdb:$(TARGET_COPY_OUT_VENDOR)/etc/acdbdata/OEM/sdm670-intcodec-b4-snd-card/General_cal.acdb \
750     device/google/bonito/acdbdata/OEM/sdm670-intcodec-b4-snd-card/Global_cal.acdb:$(TARGET_COPY_OUT_VENDOR)/etc/acdbdata/OEM/sdm670-intcodec-b4-snd-card/Global_cal.acdb \
751     device/google/bonito/acdbdata/OEM/sdm670-intcodec-b4-snd-card/Handset_cal.acdb:$(TARGET_COPY_OUT_VENDOR)/etc/acdbdata/OEM/sdm670-intcodec-b4-snd-card/Handset_cal.acdb \
752     device/google/bonito/acdbdata/OEM/sdm670-intcodec-b4-snd-card/Hdmi_cal.acdb:$(TARGET_COPY_OUT_VENDOR)/etc/acdbdata/OEM/sdm670-intcodec-b4-snd-card/Hdmi_cal.acdb \
753     device/google/bonito/acdbdata/OEM/sdm670-intcodec-b4-snd-card/Headset_cal.acdb:$(TARGET_COPY_OUT_VENDOR)/etc/acdbdata/OEM/sdm670-intcodec-b4-snd-card/Headset_cal.acdb \
754     device/google/bonito/acdbdata/OEM/sdm670-intcodec-b4-snd-card/Speaker_cal.acdb:$(TARGET_COPY_OUT_VENDOR)/etc/acdbdata/OEM/sdm670-intcodec-b4-snd-card/Speaker_cal.acdb \
755     device/google/bonito/acdbdata/OEM/sdm670-intcodec-s4-snd-card/Bluetooth_cal.acdb:$(TARGET_COPY_OUT_VENDOR)/etc/acdbdata/OEM/sdm670-intcodec-s4-snd-card/Bluetooth_cal.acdb \
756     device/google/bonito/acdbdata/OEM/sdm670-intcodec-s4-snd-card/General_cal.acdb:$(TARGET_COPY_OUT_VENDOR)/etc/acdbdata/OEM/sdm670-intcodec-s4-snd-card/General_cal.acdb \
757     device/google/bonito/acdbdata/OEM/sdm670-intcodec-s4-snd-card/Global_cal.acdb:$(TARGET_COPY_OUT_VENDOR)/etc/acdbdata/OEM/sdm670-intcodec-s4-snd-card/Global_cal.acdb \
758     device/google/bonito/acdbdata/OEM/sdm670-intcodec-s4-snd-card/Handset_cal.acdb:$(TARGET_COPY_OUT_VENDOR)/etc/acdbdata/OEM/sdm670-intcodec-s4-snd-card/Handset_cal.acdb \
759     device/google/bonito/acdbdata/OEM/sdm670-intcodec-s4-snd-card/Hdmi_cal.acdb:$(TARGET_COPY_OUT_VENDOR)/etc/acdbdata/OEM/sdm670-intcodec-s4-snd-card/Hdmi_cal.acdb \
760     device/google/bonito/acdbdata/OEM/sdm670-intcodec-s4-snd-card/Headset_cal.acdb:$(TARGET_COPY_OUT_VENDOR)/etc/acdbdata/OEM/sdm670-intcodec-s4-snd-card/Headset_cal.acdb \
761     device/google/bonito/acdbdata/OEM/sdm670-intcodec-s4-snd-card/Speaker_cal.acdb:$(TARGET_COPY_OUT_VENDOR)/etc/acdbdata/OEM/sdm670-intcodec-s4-snd-card/Speaker_cal.acdb \
762     device/google/bonito/acdbdata/OEM/sdm670-intcodec-b4-snd-card/Bluetooth_cal.acdb:$(TARGET_COPY_OUT_VENDOR)/etc/acdbdata/OEM/sdm670-intcodec-b4dev-snd-card/Bluetooth_cal.acdb \
763     device/google/bonito/acdbdata/OEM/sdm670-intcodec-b4-snd-card/General_cal.acdb:$(TARGET_COPY_OUT_VENDOR)/etc/acdbdata/OEM/sdm670-intcodec-b4dev-snd-card/General_cal.acdb \
764     device/google/bonito/acdbdata/OEM/sdm670-intcodec-b4-snd-card/Global_cal.acdb:$(TARGET_COPY_OUT_VENDOR)/etc/acdbdata/OEM/sdm670-intcodec-b4dev-snd-card/Global_cal.acdb \
765     device/google/bonito/acdbdata/OEM/sdm670-intcodec-b4-snd-card/Handset_cal.acdb:$(TARGET_COPY_OUT_VENDOR)/etc/acdbdata/OEM/sdm670-intcodec-b4dev-snd-card/Handset_cal.acdb \
766     device/google/bonito/acdbdata/OEM/sdm670-intcodec-b4-snd-card/Hdmi_cal.acdb:$(TARGET_COPY_OUT_VENDOR)/etc/acdbdata/OEM/sdm670-intcodec-b4dev-snd-card/Hdmi_cal.acdb \
767     device/google/bonito/acdbdata/OEM/sdm670-intcodec-b4-snd-card/Headset_cal.acdb:$(TARGET_COPY_OUT_VENDOR)/etc/acdbdata/OEM/sdm670-intcodec-b4dev-snd-card/Headset_cal.acdb \
768     device/google/bonito/acdbdata/OEM/sdm670-intcodec-b4-snd-card/Speaker_cal.acdb:$(TARGET_COPY_OUT_VENDOR)/etc/acdbdata/OEM/sdm670-intcodec-b4dev-snd-card/Speaker_cal.acdb \
769     device/google/bonito/acdbdata/OEM/sdm670-intcodec-s4-snd-card/Bluetooth_cal.acdb:$(TARGET_COPY_OUT_VENDOR)/etc/acdbdata/OEM/sdm670-intcodec-s4dev-snd-card/Bluetooth_cal.acdb \
770     device/google/bonito/acdbdata/OEM/sdm670-intcodec-s4-snd-card/General_cal.acdb:$(TARGET_COPY_OUT_VENDOR)/etc/acdbdata/OEM/sdm670-intcodec-s4dev-snd-card/General_cal.acdb \
771     device/google/bonito/acdbdata/OEM/sdm670-intcodec-s4-snd-card/Global_cal.acdb:$(TARGET_COPY_OUT_VENDOR)/etc/acdbdata/OEM/sdm670-intcodec-s4dev-snd-card/Global_cal.acdb \
772     device/google/bonito/acdbdata/OEM/sdm670-intcodec-s4-snd-card/Handset_cal.acdb:$(TARGET_COPY_OUT_VENDOR)/etc/acdbdata/OEM/sdm670-intcodec-s4dev-snd-card/Handset_cal.acdb \
773     device/google/bonito/acdbdata/OEM/sdm670-intcodec-s4-snd-card/Hdmi_cal.acdb:$(TARGET_COPY_OUT_VENDOR)/etc/acdbdata/OEM/sdm670-intcodec-s4dev-snd-card/Hdmi_cal.acdb \
774     device/google/bonito/acdbdata/OEM/sdm670-intcodec-s4-snd-card/Headset_cal.acdb:$(TARGET_COPY_OUT_VENDOR)/etc/acdbdata/OEM/sdm670-intcodec-s4dev-snd-card/Headset_cal.acdb \
775     device/google/bonito/acdbdata/OEM/sdm670-intcodec-s4-snd-card/Speaker_cal.acdb:$(TARGET_COPY_OUT_VENDOR)/etc/acdbdata/OEM/sdm670-intcodec-s4dev-snd-card/Speaker_cal.acdb \
776     device/google/bonito/acdbdata/adsp_avs_config.acdb:$(TARGET_COPY_OUT_VENDOR)/etc/acdbdata/adsp_avs_config.acdb
777
778# Audio ACDB workspace files for QACT
779ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
780PRODUCT_COPY_FILES += \
781     device/google/bonito/acdbdata/OEM/sdm670-intcodec-b4-snd-card/workspaceFile.qwsp:$(TARGET_COPY_OUT_VENDOR)/etc/acdbdata/OEM/sdm670-intcodec-b4-snd-card/workspaceFile.qwsp \
782     device/google/bonito/acdbdata/OEM/sdm670-intcodec-s4-snd-card/workspaceFile.qwsp:$(TARGET_COPY_OUT_VENDOR)/etc/acdbdata/OEM/sdm670-intcodec-s4-snd-card/workspaceFile.qwsp \
783     device/google/bonito/acdbdata/OEM/sdm670-intcodec-b4-snd-card/workspaceFile.qwsp:$(TARGET_COPY_OUT_VENDOR)/etc/acdbdata/OEM/sdm670-intcodec-b4dev-snd-card/workspaceFile.qwsp \
784     device/google/bonito/acdbdata/OEM/sdm670-intcodec-s4-snd-card/workspaceFile.qwsp:$(TARGET_COPY_OUT_VENDOR)/etc/acdbdata/OEM/sdm670-intcodec-s4dev-snd-card/workspaceFile.qwsp
785endif
786
787# CS35L36 Speaker Tuning
788PRODUCT_COPY_FILES += \
789    device/google/bonito/audio/crus_sp_config_b4_rx.bin:$(TARGET_COPY_OUT_VENDOR)/firmware/crus_sp_config_b4_rx.bin \
790    device/google/bonito/audio/crus_sp_config_b4_tx.bin:$(TARGET_COPY_OUT_VENDOR)/firmware/crus_sp_config_b4_tx.bin \
791    device/google/bonito/audio/crus_sp_config_s4_rx.bin:$(TARGET_COPY_OUT_VENDOR)/firmware/crus_sp_config_s4_rx.bin \
792    device/google/bonito/audio/crus_sp_config_s4_tx.bin:$(TARGET_COPY_OUT_VENDOR)/firmware/crus_sp_config_s4_tx.bin
793
794# RT5514 SoundTrigger
795PRODUCT_COPY_FILES += \
796    device/google/bonito/audio/rt5514_dsp_fw1.bin:$(TARGET_COPY_OUT_VENDOR)/firmware/rt5514_dsp_fw1.bin \
797    device/google/bonito/audio/rt5514_dsp_fw2.bin:$(TARGET_COPY_OUT_VENDOR)/firmware/rt5514_dsp_fw2.bin \
798    device/google/bonito/audio/rt5514_dsp_fw3.bin:$(TARGET_COPY_OUT_VENDOR)/firmware/rt5514_dsp_fw3.bin \
799    device/google/bonito/audio/rt5514_dsp_fw4.bin:$(TARGET_COPY_OUT_VENDOR)/firmware/rt5514_dsp_fw4.bin
800
801# Keymaster configuration
802PRODUCT_COPY_FILES += \
803    frameworks/native/data/etc/android.software.device_id_attestation.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.device_id_attestation.xml \
804    frameworks/native/data/etc/android.hardware.device_unique_attestation.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.device_unique_attestation.xml
805
806# Enable modem logging
807PRODUCT_PROPERTY_OVERRIDES += \
808    ro.radio.log_loc="/data/vendor/modem_dump" \
809    ro.radio.log_prefix="modem_log_"
810
811# Enable modem logging for debug
812ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
813PRODUCT_PROPERTY_OVERRIDES += \
814    persist.vendor.sys.modem.diag.mdlog=true
815else
816PRODUCT_PROPERTY_OVERRIDES += \
817    persist.vendor.sys.modem.diag.mdlog=false
818endif
819PRODUCT_PROPERTY_OVERRIDES += \
820    persist.vendor.sys.modem.diag.mdlog_br_num=5
821
822# Enable tcpdump_logger on userdebug and eng
823ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
824    PRODUCT_PROPERTY_OVERRIDES += \
825        persist.vendor.tcpdump.log.alwayson=false \
826        persist.vendor.tcpdump.log.br_num=5
827endif
828
829# Preopt SystemUI
830PRODUCT_DEXPREOPT_SPEED_APPS += \
831    SystemUIGoogle
832
833# Enable stats logging in LMKD
834TARGET_LMKD_STATS_LOG := true
835PRODUCT_PRODUCT_PROPERTIES += \
836    ro.lmk.log_stats=true
837
838# default usb oem functions
839ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
840  PRODUCT_PROPERTY_OVERRIDES += \
841      persist.vendor.usb.usbradio.config=diag
842endif
843
844#Enable QTI KEYMASTER and GATEKEEPER HIDLs
845KMGK_USE_QTI_SERVICE := true
846
847#Clear the variable
848TARGET_CHIPSET := ""
849
850# Early phase offset configuration for SurfaceFlinger
851PRODUCT_PROPERTY_OVERRIDES += \
852    debug.sf.early_phase_offset_ns=1500000
853PRODUCT_PROPERTY_OVERRIDES += \
854    debug.sf.early_app_phase_offset_ns=1500000
855PRODUCT_PROPERTY_OVERRIDES += \
856    debug.sf.early_gl_phase_offset_ns=3000000
857PRODUCT_PROPERTY_OVERRIDES += \
858    debug.sf.early_gl_app_phase_offset_ns=15000000
859
860# Enable backpressure for GL comp
861PRODUCT_PROPERTY_OVERRIDES += \
862    debug.sf.enable_gl_backpressure=1
863
864# Do not skip init trigger by default
865PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \
866    vendor.skip.init=0
867
868# pixel atrace HAL
869PRODUCT_PACKAGES += \
870    android.hardware.atrace@1.0-service.pixel
871
872# fastbootd
873PRODUCT_PACKAGES += \
874    android.hardware.fastboot@1.0-impl.pixel \
875    fastbootd
876
877# GTS ACSA(Agreement for Carrier Service Application) verification
878PRODUCT_PRODUCT_PROPERTIES += \
879    ro.com.google.acsa=true
880
881# Increment the SVN for any official public releases
882PRODUCT_PROPERTY_OVERRIDES += \
883	ro.vendor.build.svn=38
884
885# Vendor verbose logging default property
886ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
887PRODUCT_PROPERTY_OVERRIDES += \
888    persist.vendor.verbose_logging_enabled=true
889else
890PRODUCT_PROPERTY_OVERRIDES += \
891    persist.vendor.verbose_logging_enabled=false
892endif
893
894include hardware/google/pixel/vibrator/drv2624/device.mk
895include hardware/google/pixel/pixelstats/device.mk
896include hardware/google/pixel/mm/device_legacy.mk
897include hardware/google/pixel/thermal/device.mk
898
899# power HAL
900-include hardware/google/pixel/power-libperfmgr/aidl/device.mk
901