• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#
2# Copyright (C) 2018 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
17LOCAL_PATH := device/google/coral
18
19PRODUCT_VENDOR_MOVE_ENABLED := true
20
21PRODUCT_SOONG_NAMESPACES += \
22    hardware/google/av \
23    hardware/google/camera \
24    hardware/google/interfaces \
25    hardware/google/pixel \
26    device/google/coral \
27    hardware/qcom/sm8150/display \
28    hardware/qcom/sm8150/data/ipacfg-mgr \
29    hardware/qcom/sm8150/gps \
30    hardware/qcom/wlan/legacy \
31    system/chre/host/hal_generic \
32    vendor/google/airbrush/floral \
33    vendor/google/biometrics/face/florence \
34    vendor/google/camera \
35    vendor/google/darwinn \
36    vendor/google_devices/common/proprietary/confirmatioui_hal \
37    vendor/google_nos/host/android \
38    vendor/qcom/sm8150 \
39    vendor/qcom/sm8150/proprietary/commonsys/telephony-apps/DataStatusNotification \
40    vendor/qcom/sm8150/proprietary/gps \
41    vendor/qcom/sm8150/proprietary/qmi \
42    vendor/qcom/sm8150/codeaurora/location \
43    vendor/google/interfaces \
44    vendor/google_nos/test/system-test-harness
45
46# Include sensors soong namespace
47PRODUCT_SOONG_NAMESPACES += \
48    vendor/qcom/sensors \
49    vendor/google/tools/sensors
50
51# Single vendor RIL/Telephony/data with SM7250
52DEVICE_USES_SM7250_QCRIL_TELEPHONY := true
53
54ifeq ($(DEVICE_USES_SM7250_QCRIL_TELEPHONY), true)
55  PRODUCT_SOONG_NAMESPACES += \
56      vendor/qcom/sm7250/codeaurora/commonsys/telephony/ims/ims-ext-common \
57      vendor/qcom/sm7250/codeaurora/dataservices/rmnetctl \
58      vendor/qcom/sm7250/proprietary/commonsys/qcrilOemHook \
59      vendor/qcom/sm7250/proprietary/commonsys/telephony-apps/ims \
60      vendor/qcom/sm7250/proprietary/commonsys/telephony-apps/QtiTelephonyService \
61      vendor/qcom/sm7250/proprietary/commonsys/telephony-apps/xdivert \
62      vendor/qcom/sm7250/proprietary/qcril-data-hal \
63      vendor/qcom/sm7250/proprietary/qcril-hal \
64      vendor/qcom/sm7250/proprietary/data
65else
66  $(warning DEVICE_USES_SM7250_QCRIL_TELEPHONY is disabled)
67
68  PRODUCT_SOONG_NAMESPACES += \
69      vendor/qcom/sm8150/codeaurora/telephony/ims \
70      vendor/qcom/sm8150/proprietary/qcril-data-hal \
71      vendor/qcom/sm8150/proprietary/qcril-hal
72endif
73
74PRODUCT_PROPERTY_OVERRIDES += \
75    keyguard.no_require_sim=true
76
77# enable cal by default on accel sensor
78PRODUCT_PRODUCT_PROPERTIES += \
79    persist.vendor.debug.sensors.accel_cal=1
80
81# The default value of this variable is false and should only be set to true when
82# the device allows users to retain eSIM profiles after factory reset of user data.
83PRODUCT_PRODUCT_PROPERTIES += \
84    masterclear.allow_retain_esim_profiles_after_fdr=true
85
86PRODUCT_COPY_FILES += \
87    device/google/coral/default-permissions.xml:$(TARGET_COPY_OUT_PRODUCT)/etc/default-permissions/default-permissions.xml \
88    device/google/coral/component-overrides.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sysconfig/component-overrides.xml \
89    frameworks/native/data/etc/handheld_core_hardware.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/handheld_core_hardware.xml \
90    frameworks/native/data/etc/android.software.verified_boot.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.verified_boot.xml
91
92# Enforce privapp-permissions whitelist
93PRODUCT_PROPERTY_OVERRIDES += \
94    ro.control_privapp_permissions=enforce
95
96PRODUCT_PACKAGES += \
97    messaging
98
99TARGET_PRODUCT_PROP := $(LOCAL_PATH)/product.prop
100
101$(call inherit-product, $(LOCAL_PATH)/utils.mk)
102
103# Installs gsi keys into ramdisk, to boot a developer GSI with verified boot.
104$(call inherit-product, $(SRC_TARGET_DIR)/product/developer_gsi_keys.mk)
105
106ifeq ($(wildcard vendor/google_devices/coral/proprietary/device-vendor-coral.mk),)
107    BUILD_WITHOUT_VENDOR := true
108endif
109
110ifeq ($(TARGET_PREBUILT_KERNEL),)
111    LOCAL_KERNEL := device/google/coral-kernel/Image.lz4
112else
113    LOCAL_KERNEL := $(TARGET_PREBUILT_KERNEL)
114endif
115PRODUCT_VENDOR_KERNEL_HEADERS := device/google/coral-kernel/sm8150/kernel-headers
116
117
118PRODUCT_CHARACTERISTICS := nosdcard
119PRODUCT_SHIPPING_API_LEVEL := 29
120
121# Enforce native interfaces of product partition as VNDK
122PRODUCT_PRODUCT_VNDK_VERSION := current
123
124DEVICE_PACKAGE_OVERLAYS += $(LOCAL_PATH)/overlay
125
126#
127PRODUCT_COPY_FILES += \
128    $(LOCAL_KERNEL):kernel \
129    $(LOCAL_PATH)/fstab.hardware:$(TARGET_COPY_OUT_RECOVERY)/root/first_stage_ramdisk/fstab.$(PRODUCT_PLATFORM) \
130    $(LOCAL_PATH)/fstab.hardware:$(TARGET_COPY_OUT_VENDOR)/etc/fstab.$(PRODUCT_PLATFORM) \
131    $(LOCAL_PATH)/fstab.persist:$(TARGET_COPY_OUT_VENDOR)/etc/fstab.persist \
132    $(LOCAL_PATH)/init.hardware.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.$(PRODUCT_PLATFORM).rc \
133    $(LOCAL_PATH)/init.power.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.$(PRODUCT_PLATFORM).power.rc \
134    $(LOCAL_PATH)/init.radio.sh:$(TARGET_COPY_OUT_VENDOR)/bin/init.radio.sh \
135    $(LOCAL_PATH)/init.hardware.usb.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.$(PRODUCT_PLATFORM).usb.rc \
136    $(LOCAL_PATH)/init.insmod.sh:$(TARGET_COPY_OUT_VENDOR)/bin/init.insmod.sh \
137    $(LOCAL_PATH)/init.sensors.sh:$(TARGET_COPY_OUT_VENDOR)/bin/init.sensors.sh \
138    $(LOCAL_PATH)/thermal-engine-$(PRODUCT_HARDWARE)-normal_mode.conf:$(TARGET_COPY_OUT_VENDOR)/etc/thermal-engine-$(PRODUCT_HARDWARE)-normal_mode.conf \
139    $(LOCAL_PATH)/thermal-engine-$(PRODUCT_HARDWARE)-retail_mode.conf:$(TARGET_COPY_OUT_VENDOR)/etc/thermal-engine-$(PRODUCT_HARDWARE)-retail_mode.conf \
140    $(LOCAL_PATH)/ueventd.rc:$(TARGET_COPY_OUT_VENDOR)/ueventd.rc \
141    $(LOCAL_PATH)/init.ramoops.sh:$(TARGET_COPY_OUT_VENDOR)/bin/init.ramoops.sh
142
143
144MSM_VIDC_TARGET_LIST := msmnile # Get the color format from kernel headers
145MASTER_SIDE_CP_TARGET_LIST := msmnile # ION specific settings
146
147ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
148  PRODUCT_COPY_FILES += \
149      $(LOCAL_PATH)/init.hardware.mpssrfs.rc.userdebug:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.$(PRODUCT_PLATFORM).mpssrfs.rc
150  PRODUCT_COPY_FILES += \
151      $(LOCAL_PATH)/init.hardware.diag.rc.userdebug:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.$(PRODUCT_PLATFORM).diag.rc
152  PRODUCT_COPY_FILES += \
153      $(LOCAL_PATH)/init.hardware.wlc.rc.userdebug:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.$(PRODUCT_PLATFORM).wlc.rc
154  PRODUCT_COPY_FILES += \
155      $(LOCAL_PATH)/init.hardware.userdebug.rc.userdebug:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.$(PRODUCT_PLATFORM).userdebug.rc
156else
157  PRODUCT_COPY_FILES += \
158      $(LOCAL_PATH)/init.hardware.mpssrfs.rc.user:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.$(PRODUCT_PLATFORM).mpssrfs.rc
159  PRODUCT_COPY_FILES += \
160      $(LOCAL_PATH)/init.hardware.diag.rc.user:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.$(PRODUCT_PLATFORM).diag.rc
161endif
162
163# Enable CAT by default
164ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
165  PRODUCT_COPY_FILES += \
166      $(LOCAL_PATH)/init.cat.rc.userdebug:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.cat.rc
167endif
168
169# A/B support
170PRODUCT_PACKAGES += \
171    otapreopt_script \
172    cppreopts.sh \
173    update_engine \
174    update_verifier
175
176# Use Sdcardfs
177PRODUCT_PRODUCT_PROPERTIES += \
178    ro.sys.sdcardfs=1
179
180PRODUCT_PACKAGES += \
181    bootctrl.msmnile \
182    bootctrl.msmnile.recovery
183
184PRODUCT_PROPERTY_OVERRIDES += \
185    ro.cp_system_other_odex=1
186
187AB_OTA_POSTINSTALL_CONFIG += \
188    RUN_POSTINSTALL_system=true \
189    POSTINSTALL_PATH_system=system/bin/otapreopt_script \
190    FILESYSTEM_TYPE_system=ext4 \
191    POSTINSTALL_OPTIONAL_system=true
192
193AB_OTA_POSTINSTALL_CONFIG += \
194    RUN_POSTINSTALL_vendor=true \
195    POSTINSTALL_PATH_vendor=bin/checkpoint_gc \
196    FILESYSTEM_TYPE_vendor=ext4 \
197    POSTINSTALL_OPTIONAL_vendor=true
198
199PRODUCT_PACKAGES += \
200    update_engine_sideload
201
202PRODUCT_PACKAGES_DEBUG += \
203    f2fs_io \
204    check_f2fs
205
206PRODUCT_PROPERTY_OVERRIDES += \
207    ro.crypto.volume.filenames_mode=aes-256-cts
208
209# Userdata Checkpointing OTA GC
210PRODUCT_PACKAGES += \
211    checkpoint_gc
212
213# The following modules are included in debuggable builds only.
214PRODUCT_PACKAGES_DEBUG += \
215    bootctl \
216    r.vendor \
217    update_engine_client
218
219PRODUCT_COPY_FILES += \
220    frameworks/native/data/etc/android.hardware.camera.flash-autofocus.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.flash-autofocus.xml \
221    frameworks/native/data/etc/android.hardware.camera.front.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.front.xml \
222    frameworks/native/data/etc/android.hardware.camera.full.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.full.xml\
223    frameworks/native/data/etc/android.hardware.camera.raw.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.raw.xml\
224    frameworks/native/data/etc/android.hardware.bluetooth.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth.xml \
225    frameworks/native/data/etc/android.hardware.bluetooth_le.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth_le.xml \
226    frameworks/native/data/etc/android.hardware.biometrics.face.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.biometrics.face.xml\
227    frameworks/native/data/etc/android.hardware.sensor.accelerometer.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.accelerometer.xml \
228    frameworks/native/data/etc/android.hardware.sensor.assist.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.assist.xml \
229    frameworks/native/data/etc/android.hardware.sensor.compass.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.compass.xml \
230    frameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.gyroscope.xml \
231    frameworks/native/data/etc/android.hardware.sensor.light.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.light.xml \
232    frameworks/native/data/etc/android.hardware.sensor.proximity.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.proximity.xml \
233    frameworks/native/data/etc/android.hardware.sensor.barometer.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.barometer.xml \
234    frameworks/native/data/etc/android.hardware.sensor.stepcounter.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.stepcounter.xml \
235    frameworks/native/data/etc/android.hardware.sensor.stepdetector.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.stepdetector.xml \
236    frameworks/native/data/etc/android.hardware.sensor.hifi_sensors.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.hifi_sensors.xml \
237    frameworks/native/data/etc/android.hardware.context_hub.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.context_hub.xml \
238    frameworks/native/data/etc/android.hardware.location.gps.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.location.gps.xml \
239    frameworks/native/data/etc/android.hardware.telephony.gsm.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.telephony.gsm.xml \
240    frameworks/native/data/etc/android.hardware.telephony.cdma.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.telephony.cdma.xml \
241    frameworks/native/data/etc/android.hardware.telephony.ims.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.telephony.ims.xml \
242    frameworks/native/data/etc/android.hardware.touchscreen.multitouch.jazzhand.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml \
243    frameworks/native/data/etc/android.hardware.wifi.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.xml \
244    frameworks/native/data/etc/android.hardware.wifi.direct.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.direct.xml \
245    frameworks/native/data/etc/android.hardware.wifi.aware.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.aware.xml \
246    frameworks/native/data/etc/android.hardware.wifi.passpoint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.passpoint.xml \
247    frameworks/native/data/etc/android.hardware.wifi.rtt.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.rtt.xml \
248    frameworks/native/data/etc/android.software.sip.voip.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.sip.voip.xml \
249    frameworks/native/data/etc/android.hardware.usb.accessory.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.usb.accessory.xml \
250    frameworks/native/data/etc/android.hardware.usb.host.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.usb.host.xml \
251    frameworks/native/data/etc/android.hardware.opengles.aep.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.opengles.aep.xml \
252    frameworks/native/data/etc/android.hardware.nfc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.xml \
253    frameworks/native/data/etc/android.hardware.nfc.hce.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hce.xml \
254    frameworks/native/data/etc/android.hardware.nfc.hcef.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hcef.xml \
255    frameworks/native/data/etc/android.hardware.reboot_escrow.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.reboot_escrow.xml \
256    frameworks/native/data/etc/com.nxp.mifare.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.nxp.mifare.xml \
257    frameworks/native/data/etc/android.hardware.vulkan.level-1.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.vulkan.level.xml \
258    frameworks/native/data/etc/android.hardware.vulkan.compute-0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.vulkan.compute.xml \
259    frameworks/native/data/etc/android.hardware.vulkan.version-1_1.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.vulkan.version.xml \
260    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 \
261    frameworks/native/data/etc/android.software.opengles.deqp.level-2020-03-01.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.opengles.deqp.level.xml \
262    frameworks/native/data/etc/android.hardware.telephony.carrierlock.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.telephony.carrierlock.xml \
263    frameworks/native/data/etc/android.hardware.strongbox_keystore.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.strongbox_keystore.xml \
264    frameworks/native/data/etc/android.hardware.nfc.uicc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.uicc.xml \
265    frameworks/native/data/etc/android.hardware.nfc.ese.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.ese.xml \
266    frameworks/native/data/etc/android.hardware.se.omapi.ese.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.se.omapi.ese.xml \
267    frameworks/native/data/etc/android.hardware.se.omapi.uicc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.se.omapi.uicc.xml \
268    frameworks/native/data/etc/android.software.ipsec_tunnels.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.ipsec_tunnels.xml \
269
270# Audio fluence, ns, aec property, voice and media volume steps
271PRODUCT_PROPERTY_OVERRIDES += \
272    ro.vendor.audio.sdk.fluencetype=fluencepro \
273    persist.vendor.audio.fluence.voicecall=true \
274    persist.vendor.audio.fluence.speaker=true \
275    persist.vendor.audio.fluence.voicecomm=true \
276    persist.vendor.audio.fluence.voicerec=false \
277    ro.config.vc_call_vol_steps=7 \
278    ro.config.media_vol_steps=25 \
279
280# Audio Features
281PRODUCT_PROPERTY_OVERRIDES += \
282    vendor.audio.feature.external_dsp.enable=true \
283    vendor.audio.feature.external_speaker.enable=true \
284    vendor.audio.feature.concurrent_capture.enable=false \
285    vendor.audio.feature.a2dp_offload.enable=true \
286    vendor.audio.feature.hfp.enable=true \
287    vendor.audio.feature.hwdep_cal.enable=true \
288    vendor.audio.feature.incall_music.enable=true \
289    vendor.audio.feature.maxx_audio.enable=true \
290    vendor.audio.feature.spkr_prot.enable=true \
291    vendor.audio.feature.usb_offload.enable=true \
292    vendor.audio.feature.audiozoom.enable=true \
293    vendor.audio.feature.snd_mon.enable=true \
294    vendor.audio.feature.multi_voice_session.enable=true \
295    vendor.audio.capture.enforce_legacy_copp_sr=true \
296    persist.vendor.audio_hal.dsp_bit_width_enforce_mode=24 \
297    vendor.audio.offload.gapless.enabled=true \
298
299# MaxxAudio effect and add rotation monitor
300PRODUCT_PROPERTY_OVERRIDES += \
301    ro.audio.monitorRotation=true
302
303# Iaxxx streming and factory binary
304PRODUCT_PACKAGES += \
305    libtunnel \
306    libodsp \
307    adnc_strm.primary.default
308# Add Oslo test for debug rom
309ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
310PRODUCT_PACKAGES += \
311    tunneling_hal_test \
312    sensor_param_test \
313    oslo_config_test \
314    oslo_data_injection_test \
315    oslo_get_stats \
316    odsp_api_test \
317    crash_event_logger \
318    dump_debug_info \
319    get_pwr_stats \
320    crash_trigger_test
321endif
322
323# graphics
324PRODUCT_PROPERTY_OVERRIDES += \
325    ro.opengles.version=196610
326
327PRODUCT_PROPERTY_OVERRIDES += \
328    ro.vendor.display.foss=1 \
329    ro.vendor.display.paneltype=2 \
330    ro.vendor.display.sensortype=2 \
331    vendor.display.foss.config=1 \
332    vendor.display.foss.config_path=/vendor/etc/FOSSConfig.xml \
333    vendor.display.qdcm.mode_combine=1
334
335PRODUCT_PROPERTY_OVERRIDES += \
336    vendor.display.defer_fps_frame_count=2 \
337    vendor.display.primary_vsyncs_rate_change=2
338
339# camera google face detection
340PRODUCT_PROPERTY_OVERRIDES += \
341    persist.camera.googfd.enable=1
342
343# camera hal buffer management
344PRODUCT_PROPERTY_OVERRIDES += \
345    persist.camera.managebuffer.enable=1
346
347# Lets the vendor library that Google Camera HWL is enabled
348PRODUCT_PROPERTY_OVERRIDES += \
349    persist.camera.google_hwl.enabled=true \
350    persist.camera.google_hwl.name=libgooglecamerahwl_impl.so
351
352# OEM Unlock reporting
353PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \
354    ro.oem_unlock_supported=1
355
356PRODUCT_PROPERTY_OVERRIDES += \
357    persist.vendor.cne.feature=1 \
358    persist.vendor.data.iwlan.enable=true \
359    persist.vendor.radio.RATE_ADAPT_ENABLE=1 \
360    persist.vendor.radio.ROTATION_ENABLE=1 \
361    persist.vendor.radio.VT_ENABLE=1 \
362    persist.vendor.radio.VT_HYBRID_ENABLE=1 \
363    persist.vendor.radio.apm_sim_not_pwdn=1 \
364    persist.vendor.radio.custom_ecc=1 \
365    persist.vendor.radio.data_ltd_sys_ind=1 \
366    persist.vendor.radio.videopause.mode=1 \
367    persist.vendor.radio.mt_sms_ack=30 \
368    persist.vendor.radio.multisim_switch_support=true \
369    persist.vendor.radio.sib16_support=1 \
370    persist.vendor.radio.data_con_rprt=true \
371    persist.vendor.radio.relay_oprt_change=1 \
372    persist.vendor.radio.no_wait_for_card=1 \
373    persist.vendor.radio.sap_silent_pin=1 \
374    persist.vendor.radio.manual_nw_rej_ct=1 \
375    persist.rcs.supported=1 \
376    vendor.rild.libpath=/vendor/lib64/libril-qc-hal-qmi.so \
377    ro.hardware.keystore_desede=true \
378    persist.vendor.radio.procedure_bytes=SKIP \
379
380# Enable reboot free DSDS
381PRODUCT_PRODUCT_PROPERTIES += \
382    persist.radio.reboot_on_modem_change=false
383
384PRODUCT_PROPERTY_OVERRIDES += \
385    telephony.active_modems.max_count=2
386
387# Disable snapshot timer
388PRODUCT_PROPERTY_OVERRIDES += \
389    persist.vendor.radio.snapshot_enabled=0 \
390    persist.vendor.radio.snapshot_timer=0
391
392PRODUCT_PACKAGES += \
393    hwcomposer.msmnile \
394    android.hardware.graphics.composer@2.4-service-sm8150 \
395    gralloc.msmnile \
396    android.hardware.graphics.mapper@3.0-impl-qti-display \
397    android.hardware.graphics.mapper@4.0-impl-qti-display \
398    vendor.qti.hardware.display.allocator-service
399
400# RenderScript HAL
401PRODUCT_PACKAGES += \
402    android.hardware.renderscript@1.0-impl
403
404# Light HAL
405PRODUCT_PACKAGES += \
406    lights.msmnile \
407    hardware.google.light@1.1-service
408
409# Memtrack HAL
410PRODUCT_PACKAGES += \
411    memtrack.msmnile \
412    android.hardware.memtrack@1.0-impl \
413    android.hardware.memtrack@1.0-service
414
415# Bluetooth HAL
416PRODUCT_PACKAGES += \
417    android.hardware.bluetooth@1.0-impl-qti \
418    android.hardware.bluetooth@1.0-service-qti
419
420#Bluetooth SAR HAL
421PRODUCT_PACKAGES += \
422    hardware.google.bluetooth.sar@1.0-impl
423PRODUCT_PACKAGES_DEBUG += \
424    bluetooth_sar_test
425
426# Bluetooth SoC
427PRODUCT_PROPERTY_OVERRIDES += \
428    vendor.qcom.bluetooth.soc=cherokee
429
430# Property for loading BDA from device tree
431PRODUCT_PROPERTY_OVERRIDES += \
432    ro.vendor.bt.bdaddr_path=/proc/device-tree/chosen/cdt/cdb2/bt_addr
433
434# Bluetooth WiPower
435PRODUCT_PROPERTY_OVERRIDES += \
436    ro.vendor.bluetooth.emb_wp_mode=false \
437    ro.vendor.bluetooth.wipower=false
438
439# Bluetooth ftmdaemon needs libbt-hidlclient.so
440PRODUCT_SOONG_NAMESPACES += vendor/qcom/proprietary/bluetooth/hidl_client
441
442# DRM HAL
443PRODUCT_PACKAGES += \
444    android.hardware.drm-service.clearkey \
445    android.hardware.drm-service.widevine
446
447# NFC and Secure Element packages
448PRODUCT_PACKAGES += \
449    NfcNci \
450    Tag \
451    SecureElement \
452    android.hardware.nfc-service.st \
453    android.hardware.secure_element@1.0-service.st
454
455PRODUCT_COPY_FILES += \
456    device/google/coral/nfc/com.google.hardware.pixel.japan.xml:$(TARGET_COPY_OUT_ODM)/etc/permissions/sku_G020N/com.google.hardware.pixel.japan.xml \
457    device/google/coral/nfc/com.google.hardware.pixel.japan.xml:$(TARGET_COPY_OUT_ODM)/etc/permissions/sku_G020Q/com.google.hardware.pixel.japan.xml
458
459PRODUCT_COPY_FILES += \
460    device/google/coral/nfc/libnfc-hal-st.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libnfc-hal-st.conf \
461    device/google/coral/nfc/libese-hal-st.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libese-hal-st.conf \
462    device/google/coral/nfc/libnfc-nci.conf:$(TARGET_COPY_OUT_PRODUCT)/etc/libnfc-nci.conf
463
464# USB HAL
465PRODUCT_PACKAGES += \
466    android.hardware.usb-service.coral
467PRODUCT_PACKAGES += \
468    android.hardware.usb.gadget-service.coral
469
470PRODUCT_PACKAGES += \
471    android.hardware.health@2.1-impl-coral \
472    android.hardware.health@2.1-service
473
474# Storage health HAL
475PRODUCT_PACKAGES += \
476    android.hardware.health.storage@1.0-service
477
478PRODUCT_PACKAGES += \
479    libmm-omxcore \
480    libOmxCore \
481    libstagefrighthw \
482    libOmxVdec \
483    libOmxVdecHevc \
484    libOmxVenc \
485    libc2dcolorconvert
486
487# Enable Codec 2.0
488PRODUCT_PROPERTY_OVERRIDES += \
489    debug.media.codec2=2 \
490    debug.stagefright.ccodec=4 \
491    debug.stagefright.omx_default_rank=512 \
492
493# Disable OMX
494PRODUCT_PROPERTY_OVERRIDES += \
495    vendor.media.omx=0 \
496
497# Create input surface on the framework side
498PRODUCT_PROPERTY_OVERRIDES += \
499    debug.stagefright.c2inputsurface=-1 \
500
501# Transcoding related property.
502PRODUCT_PROPERTY_OVERRIDES += \
503    debug.media.transcoding.codec_max_operating_rate_720P=480 \
504    debug.media.transcoding.codec_max_operating_rate_1080P=240 \
505    debug.media.transcoding.codec_max_operating_rate_4k=120 \
506
507# Enable ECO service
508QC2_HAVE_ECO_SERVICE := true
509
510PRODUCT_PACKAGES += \
511    libqcodec2 \
512    vendor.qti.media.c2@1.0-service \
513    media_codecs_c2.xml \
514    codec2.vendor.ext.policy \
515    codec2.vendor.base.policy
516
517PRODUCT_PROPERTY_OVERRIDES += \
518    vendor.qc2.venc.avgqp.enable=1
519
520# To reach target bitrate in CBR mode for IMS VT Call
521PRODUCT_PROPERTY_OVERRIDES += \
522    persist.vendor.ims.mm_minqp=1
523
524PRODUCT_PACKAGES += \
525    android.hardware.camera.provider@2.7-impl-google \
526    android.hardware.camera.provider@2.7-service-google \
527    camera.msmnile \
528    lib_multicam_dualfov_capture_session \
529    libgooglecamerahwl_impl \
530    libqomx_core \
531    libmmjpeg_interface \
532    libmmcamera_interface \
533    libcameradepthcalibrator
534
535# Google Camera HAL test libraries in debug builds
536PRODUCT_PACKAGES_DEBUG += \
537    libgoogle_camera_hal_proprietary_tests \
538    libgoogle_camera_hal_tests
539
540PRODUCT_PACKAGES += \
541    sensors.$(PRODUCT_HARDWARE) \
542    android.hardware.sensors@2.0-service.multihal \
543    hals.conf
544
545PRODUCT_PACKAGES += \
546    fs_config_dirs \
547    fs_config_files
548
549# Context hub HAL
550PRODUCT_PACKAGES += \
551    android.hardware.contexthub-service.generic
552
553# CHRE tools
554ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
555PRODUCT_PACKAGES += \
556    chre_power_test_client \
557    chre_test_client
558endif
559
560# Boot control HAL
561PRODUCT_PACKAGES += \
562    android.hardware.boot@1.2-impl-pixel-legacy \
563    android.hardware.boot@1.2-impl-pixel-legacy.recovery \
564    android.hardware.boot@1.2-service \
565
566# Thermal HAL config
567PRODUCT_COPY_FILES += \
568    $(LOCAL_PATH)/thermal_info_config_$(PRODUCT_HARDWARE).json:$(TARGET_COPY_OUT_VENDOR)/etc/thermal_info_config.json \
569    $(LOCAL_PATH)/thermal_info_config_$(PRODUCT_HARDWARE)_jaws.json:$(TARGET_COPY_OUT_VENDOR)/etc/thermal_info_config_jaws.json
570
571#GNSS HAL
572PRODUCT_PACKAGES += \
573    libgps.utils \
574    libgnss \
575    libloc_core \
576    liblocation_api \
577    libbatching \
578    libgeofencing \
579    android.hardware.gnss@2.1-impl-qti \
580    android.hardware.gnss@2.1-service-qti
581
582ENABLE_VENDOR_RIL_SERVICE := true
583
584USE_QCRIL_OEMHOOK := true
585
586HOSTAPD := hostapd
587ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
588HOSTAPD += hostapd_cli
589endif
590PRODUCT_PACKAGES += $(HOSTAPD)
591
592WPA := wpa_supplicant.conf
593WPA += wpa_supplicant_wcn.conf
594WPA += wpa_supplicant
595PRODUCT_PACKAGES += $(WPA)
596
597ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
598PRODUCT_PACKAGES += wpa_cli
599endif
600
601# Wifi
602PRODUCT_PACKAGES += \
603    android.hardware.wifi-service \
604    wificond \
605    libwpa_client \
606    WifiOverlay
607
608# Connectivity
609PRODUCT_PACKAGES += \
610    ConnectivityOverlay
611
612# WLAN driver configuration files
613PRODUCT_COPY_FILES += \
614    $(LOCAL_PATH)/wpa_supplicant_overlay.conf:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/wpa_supplicant_overlay.conf \
615    $(LOCAL_PATH)/p2p_supplicant_overlay.conf:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/p2p_supplicant_overlay.conf \
616    $(LOCAL_PATH)/wifi_concurrency_cfg.txt:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/wifi_concurrency_cfg.txt \
617    $(LOCAL_PATH)/WCNSS_qcom_cfg.ini:$(TARGET_COPY_OUT_VENDOR)/firmware/wlan/qca_cld/WCNSS_qcom_cfg.ini \
618
619LIB_NL := libnl_2
620PRODUCT_PACKAGES += $(LIB_NL)
621
622# Audio effects
623PRODUCT_PACKAGES += \
624    libvolumelistener \
625    libqcomvisualizer \
626    libqcomvoiceprocessing \
627    libqcomvoiceprocessingdescriptors \
628    libqcompostprocbundle
629
630PRODUCT_PACKAGES += \
631    audio.primary.msmnile \
632    audio.usb.default \
633    audio.r_submix.default \
634    libaudio-resampler \
635    audio.bluetooth.default
636
637PRODUCT_PACKAGES += \
638    android.hardware.audio@7.0-impl:32 \
639    android.hardware.audio.effect@7.0-impl:32 \
640    android.hardware.soundtrigger@2.3-impl \
641    android.hardware.bluetooth.audio@2.0-impl \
642    android.hardware.audio.service
643
644# Modules for Audio HAL
645PRODUCT_PACKAGES += \
646    libcirrusspkrprot \
647    libsndmonitor \
648    libmalistener \
649    liba2dpoffload \
650    btaudio_offload_if \
651    libmaxxaudio \
652    libaudiozoom
653
654ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
655PRODUCT_PACKAGES += \
656    tinyplay \
657    tinycap \
658    tinymix \
659    tinypcminfo \
660    cplay
661endif
662
663ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
664PRODUCT_PACKAGES += chre_test_client
665endif
666
667# Audio hal xmls
668PRODUCT_COPY_FILES += \
669    $(LOCAL_PATH)/audio/mixer_paths_iaxxx_jaws.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_iaxxx_jaws.xml \
670    $(LOCAL_PATH)/audio/mixer_paths_iaxxx_coral.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_iaxxx_coral.xml \
671    $(LOCAL_PATH)/audio/mixer_paths_iaxxx_c2proto.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_iaxxx_c2proto.xml \
672    $(LOCAL_PATH)/audio/mixer_paths_iaxxx_flame.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_iaxxx_flame.xml \
673    $(LOCAL_PATH)/audio/mixer_paths_iaxxx_f2proto.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_iaxxx_f2proto.xml \
674    $(LOCAL_PATH)/audio/audio_platform_info_iaxxx_jaws.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_iaxxx_jaws.xml \
675    $(LOCAL_PATH)/audio/audio_platform_info_iaxxx_coral.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_iaxxx_coral.xml \
676    $(LOCAL_PATH)/audio/audio_platform_info_iaxxx_c2proto.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_iaxxx_c2proto.xml \
677    $(LOCAL_PATH)/audio/audio_platform_info_iaxxx_flame.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_iaxxx_flame.xml \
678    $(LOCAL_PATH)/audio/audio_platform_info_iaxxx_f2proto.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_iaxxx_f2proto.xml \
679    $(LOCAL_PATH)/audio/sound_trigger_mixer_paths_default.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths_default.xml \
680    $(LOCAL_PATH)/audio/sound_trigger_mixer_paths_jaws.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths_jaws.xml \
681    $(LOCAL_PATH)/audio/sound_trigger_mixer_paths_coral.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths_coral.xml \
682    $(LOCAL_PATH)/audio/sound_trigger_mixer_paths_c2proto.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths_c2proto.xml \
683    $(LOCAL_PATH)/audio/sound_trigger_mixer_paths_flame.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths_flame.xml \
684    $(LOCAL_PATH)/audio/sound_trigger_mixer_paths_f2proto.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths_f2proto.xml
685
686# Audio Policy tables
687PRODUCT_COPY_FILES += \
688    $(LOCAL_PATH)/audio/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration.xml \
689    $(LOCAL_PATH)/audio/audio_policy_configuration_a2dp_offload_disabled.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration_a2dp_offload_disabled.xml \
690    $(LOCAL_PATH)/audio/audio_policy_configuration_bluetooth_legacy_hal.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration_bluetooth_legacy_hal.xml \
691    $(LOCAL_PATH)/audio/bluetooth_hearing_aid_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_hearing_aid_audio_policy_configuration.xml \
692    $(LOCAL_PATH)/audio/default_volume_tables.xml:$(TARGET_COPY_OUT_VENDOR)/etc/default_volume_tables.xml \
693    $(LOCAL_PATH)/audio/audio_io_policy.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_io_policy.conf \
694    frameworks/av/services/audiopolicy/config/a2dp_audio_policy_configuration_7_0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/a2dp_audio_policy_configuration_7_0.xml \
695    frameworks/av/services/audiopolicy/config/a2dp_in_audio_policy_configuration_7_0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/a2dp_in_audio_policy_configuration_7_0.xml \
696    frameworks/av/services/audiopolicy/config/bluetooth_audio_policy_configuration_7_0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_audio_policy_configuration_7_0.xml \
697    frameworks/av/services/audiopolicy/config/hearing_aid_audio_policy_configuration_7_0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/hearing_aid_audio_policy_configuration_7_0.xml \
698    frameworks/av/services/audiopolicy/config/usb_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/usb_audio_policy_configuration.xml \
699    frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/r_submix_audio_policy_configuration.xml
700
701# Audio ACDB data
702PRODUCT_COPY_FILES += \
703    device/google/coral/audio/acdbdata/OEM/sm8150-iaxxx-jaws-snd-card/Bluetooth_cal.acdb:$(TARGET_COPY_OUT_VENDOR)/etc/acdbdata/OEM/sm8150-iaxxx-jaws-snd-card/Bluetooth_cal.acdb \
704    device/google/coral/audio/acdbdata/OEM/sm8150-iaxxx-jaws-snd-card/General_cal.acdb:$(TARGET_COPY_OUT_VENDOR)/etc/acdbdata/OEM/sm8150-iaxxx-jaws-snd-card/General_cal.acdb \
705    device/google/coral/audio/acdbdata/OEM/sm8150-iaxxx-jaws-snd-card/Global_cal.acdb:$(TARGET_COPY_OUT_VENDOR)/etc/acdbdata/OEM/sm8150-iaxxx-jaws-snd-card/Global_cal.acdb \
706    device/google/coral/audio/acdbdata/OEM/sm8150-iaxxx-jaws-snd-card/Handset_cal.acdb:$(TARGET_COPY_OUT_VENDOR)/etc/acdbdata/OEM/sm8150-iaxxx-jaws-snd-card/Handset_cal.acdb \
707    device/google/coral/audio/acdbdata/OEM/sm8150-iaxxx-jaws-snd-card/Hdmi_cal.acdb:$(TARGET_COPY_OUT_VENDOR)/etc/acdbdata/OEM/sm8150-iaxxx-jaws-snd-card/Hdmi_cal.acdb \
708    device/google/coral/audio/acdbdata/OEM/sm8150-iaxxx-jaws-snd-card/Headset_cal.acdb:$(TARGET_COPY_OUT_VENDOR)/etc/acdbdata/OEM/sm8150-iaxxx-jaws-snd-card/Headset_cal.acdb \
709    device/google/coral/audio/acdbdata/OEM/sm8150-iaxxx-jaws-snd-card/Speaker_cal.acdb:$(TARGET_COPY_OUT_VENDOR)/etc/acdbdata/OEM/sm8150-iaxxx-jaws-snd-card/Speaker_cal.acdb \
710    device/google/coral/audio/acdbdata/OEM/sm8150-iaxxx-jaws-snd-card/Codec_cal.acdb:$(TARGET_COPY_OUT_VENDOR)/etc/acdbdata/OEM/sm8150-iaxxx-jaws-snd-card/Codec_cal.acdb \
711    device/google/coral/audio/acdbdata/OEM/sm8150-iaxxx-coral-snd-card/Bluetooth_cal.acdb:$(TARGET_COPY_OUT_VENDOR)/etc/acdbdata/OEM/sm8150-iaxxx-coral-snd-card/Bluetooth_cal.acdb \
712    device/google/coral/audio/acdbdata/OEM/sm8150-iaxxx-coral-snd-card/General_cal.acdb:$(TARGET_COPY_OUT_VENDOR)/etc/acdbdata/OEM/sm8150-iaxxx-coral-snd-card/General_cal.acdb \
713    device/google/coral/audio/acdbdata/OEM/sm8150-iaxxx-coral-snd-card/Global_cal.acdb:$(TARGET_COPY_OUT_VENDOR)/etc/acdbdata/OEM/sm8150-iaxxx-coral-snd-card/Global_cal.acdb \
714    device/google/coral/audio/acdbdata/OEM/sm8150-iaxxx-coral-snd-card/Handset_cal.acdb:$(TARGET_COPY_OUT_VENDOR)/etc/acdbdata/OEM/sm8150-iaxxx-coral-snd-card/Handset_cal.acdb \
715    device/google/coral/audio/acdbdata/OEM/sm8150-iaxxx-coral-snd-card/Hdmi_cal.acdb:$(TARGET_COPY_OUT_VENDOR)/etc/acdbdata/OEM/sm8150-iaxxx-coral-snd-card/Hdmi_cal.acdb \
716    device/google/coral/audio/acdbdata/OEM/sm8150-iaxxx-coral-snd-card/Headset_cal.acdb:$(TARGET_COPY_OUT_VENDOR)/etc/acdbdata/OEM/sm8150-iaxxx-coral-snd-card/Headset_cal.acdb \
717    device/google/coral/audio/acdbdata/OEM/sm8150-iaxxx-coral-snd-card/Speaker_cal.acdb:$(TARGET_COPY_OUT_VENDOR)/etc/acdbdata/OEM/sm8150-iaxxx-coral-snd-card/Speaker_cal.acdb \
718    device/google/coral/audio/acdbdata/OEM/sm8150-iaxxx-coral-snd-card/Codec_cal.acdb:$(TARGET_COPY_OUT_VENDOR)/etc/acdbdata/OEM/sm8150-iaxxx-coral-snd-card/Codec_cal.acdb \
719    device/google/coral/audio/acdbdata/OEM/sm8150-iaxxx-c2proto-snd-card/Bluetooth_cal.acdb:$(TARGET_COPY_OUT_VENDOR)/etc/acdbdata/OEM/sm8150-iaxxx-c2proto-snd-card/Bluetooth_cal.acdb \
720    device/google/coral/audio/acdbdata/OEM/sm8150-iaxxx-c2proto-snd-card/General_cal.acdb:$(TARGET_COPY_OUT_VENDOR)/etc/acdbdata/OEM/sm8150-iaxxx-c2proto-snd-card/General_cal.acdb \
721    device/google/coral/audio/acdbdata/OEM/sm8150-iaxxx-c2proto-snd-card/Global_cal.acdb:$(TARGET_COPY_OUT_VENDOR)/etc/acdbdata/OEM/sm8150-iaxxx-c2proto-snd-card/Global_cal.acdb \
722    device/google/coral/audio/acdbdata/OEM/sm8150-iaxxx-c2proto-snd-card/Handset_cal.acdb:$(TARGET_COPY_OUT_VENDOR)/etc/acdbdata/OEM/sm8150-iaxxx-c2proto-snd-card/Handset_cal.acdb \
723    device/google/coral/audio/acdbdata/OEM/sm8150-iaxxx-c2proto-snd-card/Hdmi_cal.acdb:$(TARGET_COPY_OUT_VENDOR)/etc/acdbdata/OEM/sm8150-iaxxx-c2proto-snd-card/Hdmi_cal.acdb \
724    device/google/coral/audio/acdbdata/OEM/sm8150-iaxxx-c2proto-snd-card/Headset_cal.acdb:$(TARGET_COPY_OUT_VENDOR)/etc/acdbdata/OEM/sm8150-iaxxx-c2proto-snd-card/Headset_cal.acdb \
725    device/google/coral/audio/acdbdata/OEM/sm8150-iaxxx-c2proto-snd-card/Speaker_cal.acdb:$(TARGET_COPY_OUT_VENDOR)/etc/acdbdata/OEM/sm8150-iaxxx-c2proto-snd-card/Speaker_cal.acdb \
726    device/google/coral/audio/acdbdata/OEM/sm8150-iaxxx-c2proto-snd-card/Codec_cal.acdb:$(TARGET_COPY_OUT_VENDOR)/etc/acdbdata/OEM/sm8150-iaxxx-c2proto-snd-card/Codec_cal.acdb \
727    device/google/coral/audio/acdbdata/OEM/sm8150-iaxxx-flame-snd-card/Bluetooth_cal.acdb:$(TARGET_COPY_OUT_VENDOR)/etc/acdbdata/OEM/sm8150-iaxxx-flame-snd-card/Bluetooth_cal.acdb \
728    device/google/coral/audio/acdbdata/OEM/sm8150-iaxxx-flame-snd-card/General_cal.acdb:$(TARGET_COPY_OUT_VENDOR)/etc/acdbdata/OEM/sm8150-iaxxx-flame-snd-card/General_cal.acdb \
729    device/google/coral/audio/acdbdata/OEM/sm8150-iaxxx-flame-snd-card/Global_cal.acdb:$(TARGET_COPY_OUT_VENDOR)/etc/acdbdata/OEM/sm8150-iaxxx-flame-snd-card/Global_cal.acdb \
730    device/google/coral/audio/acdbdata/OEM/sm8150-iaxxx-flame-snd-card/Handset_cal.acdb:$(TARGET_COPY_OUT_VENDOR)/etc/acdbdata/OEM/sm8150-iaxxx-flame-snd-card/Handset_cal.acdb \
731    device/google/coral/audio/acdbdata/OEM/sm8150-iaxxx-flame-snd-card/Hdmi_cal.acdb:$(TARGET_COPY_OUT_VENDOR)/etc/acdbdata/OEM/sm8150-iaxxx-flame-snd-card/Hdmi_cal.acdb \
732    device/google/coral/audio/acdbdata/OEM/sm8150-iaxxx-flame-snd-card/Headset_cal.acdb:$(TARGET_COPY_OUT_VENDOR)/etc/acdbdata/OEM/sm8150-iaxxx-flame-snd-card/Headset_cal.acdb \
733    device/google/coral/audio/acdbdata/OEM/sm8150-iaxxx-flame-snd-card/Speaker_cal.acdb:$(TARGET_COPY_OUT_VENDOR)/etc/acdbdata/OEM/sm8150-iaxxx-flame-snd-card/Speaker_cal.acdb \
734    device/google/coral/audio/acdbdata/OEM/sm8150-iaxxx-flame-snd-card/Codec_cal.acdb:$(TARGET_COPY_OUT_VENDOR)/etc/acdbdata/OEM/sm8150-iaxxx-flame-snd-card/Codec_cal.acdb \
735    device/google/coral/audio/acdbdata/OEM/sm8150-iaxxx-f2proto-snd-card/Bluetooth_cal.acdb:$(TARGET_COPY_OUT_VENDOR)/etc/acdbdata/OEM/sm8150-iaxxx-f2proto-snd-card/Bluetooth_cal.acdb \
736    device/google/coral/audio/acdbdata/OEM/sm8150-iaxxx-f2proto-snd-card/General_cal.acdb:$(TARGET_COPY_OUT_VENDOR)/etc/acdbdata/OEM/sm8150-iaxxx-f2proto-snd-card/General_cal.acdb \
737    device/google/coral/audio/acdbdata/OEM/sm8150-iaxxx-f2proto-snd-card/Global_cal.acdb:$(TARGET_COPY_OUT_VENDOR)/etc/acdbdata/OEM/sm8150-iaxxx-f2proto-snd-card/Global_cal.acdb \
738    device/google/coral/audio/acdbdata/OEM/sm8150-iaxxx-f2proto-snd-card/Handset_cal.acdb:$(TARGET_COPY_OUT_VENDOR)/etc/acdbdata/OEM/sm8150-iaxxx-f2proto-snd-card/Handset_cal.acdb \
739    device/google/coral/audio/acdbdata/OEM/sm8150-iaxxx-f2proto-snd-card/Hdmi_cal.acdb:$(TARGET_COPY_OUT_VENDOR)/etc/acdbdata/OEM/sm8150-iaxxx-f2proto-snd-card/Hdmi_cal.acdb \
740    device/google/coral/audio/acdbdata/OEM/sm8150-iaxxx-f2proto-snd-card/Headset_cal.acdb:$(TARGET_COPY_OUT_VENDOR)/etc/acdbdata/OEM/sm8150-iaxxx-f2proto-snd-card/Headset_cal.acdb \
741    device/google/coral/audio/acdbdata/OEM/sm8150-iaxxx-f2proto-snd-card/Speaker_cal.acdb:$(TARGET_COPY_OUT_VENDOR)/etc/acdbdata/OEM/sm8150-iaxxx-f2proto-snd-card/Speaker_cal.acdb \
742    device/google/coral/audio/acdbdata/OEM/sm8150-iaxxx-f2proto-snd-card/Codec_cal.acdb:$(TARGET_COPY_OUT_VENDOR)/etc/acdbdata/OEM/sm8150-iaxxx-f2proto-snd-card/Codec_cal.acdb \
743    device/google/coral/audio/acdbdata/adsp_avs_config.acdb:$(TARGET_COPY_OUT_VENDOR)/etc/acdbdata/adsp_avs_config.acdb
744
745
746# Audio ACDB workspace files for QACT
747ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
748PRODUCT_COPY_FILES += \
749    device/google/coral/audio/acdbdata/OEM/sm8150-iaxxx-jaws-snd-card/workspaceFile.qwsp:$(TARGET_COPY_OUT_VENDOR)/etc/acdbdata/OEM/sm8150-iaxxx-jaws-snd-card/workspaceFile.qwsp \
750    device/google/coral/audio/acdbdata/OEM/sm8150-iaxxx-coral-snd-card/workspaceFile.qwsp:$(TARGET_COPY_OUT_VENDOR)/etc/acdbdata/OEM/sm8150-iaxxx-coral-snd-card/workspaceFile.qwsp \
751    device/google/coral/audio/acdbdata/OEM/sm8150-iaxxx-c2proto-snd-card/workspaceFile.qwsp:$(TARGET_COPY_OUT_VENDOR)/etc/acdbdata/OEM/sm8150-iaxxx-c2proto-snd-card/workspaceFile.qwsp \
752    device/google/coral/audio/acdbdata/OEM/sm8150-iaxxx-flame-snd-card/workspaceFile.qwsp:$(TARGET_COPY_OUT_VENDOR)/etc/acdbdata/OEM/sm8150-iaxxx-flame-snd-card/workspaceFile.qwsp \
753    device/google/coral/audio/acdbdata/OEM/sm8150-iaxxx-f2proto-snd-card/workspaceFile.qwsp:$(TARGET_COPY_OUT_VENDOR)/etc/acdbdata/OEM/sm8150-iaxxx-f2proto-snd-card/workspaceFile.qwsp
754endif
755
756# Audio speaker tunning config data
757PRODUCT_COPY_FILES += \
758    device/google/coral/audio/data/crus_sp_config_coral_rx.bin:$(TARGET_COPY_OUT_VENDOR)/firmware/crus_sp_config_coral_rx.bin \
759    device/google/coral/audio/data/crus_sp_config_coral_tx.bin:$(TARGET_COPY_OUT_VENDOR)/firmware/crus_sp_config_coral_tx.bin \
760    device/google/coral/audio/data/crus_sp_config_flame_rx.bin:$(TARGET_COPY_OUT_VENDOR)/firmware/crus_sp_config_flame_rx.bin \
761    device/google/coral/audio/data/crus_sp_config_flame_tx.bin:$(TARGET_COPY_OUT_VENDOR)/firmware/crus_sp_config_flame_tx.bin
762
763# Audio audiozoom config data
764PRODUCT_COPY_FILES += \
765    $(LOCAL_PATH)/audio/audiozoom.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audiozoom.xml
766
767PRODUCT_COPY_FILES += \
768    $(LOCAL_PATH)/media_codecs.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs.xml \
769    $(LOCAL_PATH)/media_codecs_omx.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_omx.xml \
770    $(LOCAL_PATH)/media_codecs_performance.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_performance.xml \
771    frameworks/av/media/libstagefright/data/media_codecs_google_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_audio.xml \
772    frameworks/av/media/libstagefright/data/media_codecs_google_telephony.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_telephony.xml \
773    frameworks/av/media/libstagefright/data/media_codecs_google_video.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_video.xml \
774    $(LOCAL_PATH)/media_profiles_V1_0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_V1_0.xml
775
776
777# Vendor seccomp policy files for media components:
778PRODUCT_COPY_FILES += \
779    $(LOCAL_PATH)/seccomp_policy/mediacodec.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/mediacodec.policy
780
781PRODUCT_PROPERTY_OVERRIDES += \
782    vendor.audio.snd_card.open.retries=50
783
784
785ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
786# Subsystem ramdump
787PRODUCT_PROPERTY_OVERRIDES += \
788    persist.vendor.sys.ssr.enable_ramdumps=1
789endif
790
791# Subsystem silent restart
792PRODUCT_PROPERTY_OVERRIDES += \
793    persist.vendor.sys.ssr.restart_level=modem,slpi,adsp
794
795# setup dalvik vm configs
796$(call inherit-product, frameworks/native/build/phone-xhdpi-6144-dalvik-heap.mk)
797
798# Use the default charger mode images
799PRODUCT_PACKAGES += \
800    charger_res_images
801
802ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
803# b/36703476: Set default log size to 1M
804PRODUCT_PROPERTY_OVERRIDES += \
805  ro.logd.size=1M
806# b/114766334: persist all logs by default rotating on 30 files of 1MiB
807PRODUCT_PROPERTY_OVERRIDES += \
808  logd.logpersistd=logcatd \
809  logd.logpersistd.size=30
810endif
811
812# Dumpstate HAL
813PRODUCT_PACKAGES += \
814    android.hardware.dumpstate@1.1-service.coral
815
816# Storage: for factory reset protection feature
817PRODUCT_PROPERTY_OVERRIDES += \
818    ro.frp.pst=/dev/block/bootdevice/by-name/frp
819
820PRODUCT_PACKAGES += \
821    vndk-sp
822
823# Override heap growth limit due to high display density on device
824PRODUCT_PROPERTY_OVERRIDES += \
825    dalvik.vm.heapgrowthlimit=256m \
826
827# Use 64-bit dex2oat for better dexopt time.
828PRODUCT_PROPERTY_OVERRIDES += \
829    dalvik.vm.dex2oat64.enabled=true
830
831PRODUCT_PACKAGES += \
832    ipacm \
833    IPACM_cfg.xml
834
835#Set default CDMA subscription to RUIM
836PRODUCT_PROPERTY_OVERRIDES += \
837    ro.telephony.default_cdma_sub=0
838
839# Set network mode to Global by default and no DSDS/DSDA
840PRODUCT_PROPERTY_OVERRIDES += \
841    ro.telephony.default_network=10
842
843# Set display color mode to Adaptive by default
844PRODUCT_PROPERTY_OVERRIDES += \
845    persist.sys.sf.color_saturation=1.0 \
846    persist.sys.sf.native_mode=2 \
847    persist.sys.sf.color_mode=9
848
849# Keymaster configuration
850PRODUCT_COPY_FILES += \
851    frameworks/native/data/etc/android.software.device_id_attestation.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.device_id_attestation.xml \
852    frameworks/native/data/etc/android.hardware.device_unique_attestation.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.device_unique_attestation.xml
853
854# Enable modem logging
855PRODUCT_PROPERTY_OVERRIDES += \
856    ro.vendor.radio.log_loc="/data/vendor/modem_dump" \
857    ro.vendor.radio.log_prefix="modem_log_"
858
859# Enable modem logging for debug
860ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
861PRODUCT_PROPERTY_OVERRIDES += \
862    persist.vendor.sys.modem.diag.mdlog=true
863else
864PRODUCT_PROPERTY_OVERRIDES += \
865    persist.vendor.sys.modem.diag.mdlog=false
866endif
867PRODUCT_PROPERTY_OVERRIDES += \
868    persist.vendor.sys.modem.diag.mdlog_br_num=5
869
870# Enable tcpdump_logger on userdebug and eng
871ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
872    PRODUCT_PROPERTY_OVERRIDES += \
873        persist.vendor.tcpdump.log.alwayson=false \
874        persist.vendor.tcpdump.log.br_num=5
875endif
876
877# Preopt SystemUI
878PRODUCT_DEXPREOPT_SPEED_APPS += SystemUIGoogle  # For internal
879PRODUCT_DEXPREOPT_SPEED_APPS += SystemUI  # For AOSP
880
881# Compile SystemUI on device with `speed`.
882PRODUCT_PROPERTY_OVERRIDES += \
883    dalvik.vm.systemuicompilerfilter=speed
884
885# Enable stats logging in LMKD
886TARGET_LMKD_STATS_LOG := true
887
888# default usb oem functions
889ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
890  PRODUCT_PROPERTY_OVERRIDES += \
891      persist.vendor.usb.usbradio.config=diag
892endif
893
894# Enable app/sf phase offset as durations. The numbers below are translated from the existing
895# positive offsets by finding the duration app/sf will have with the offsets.
896# For SF the previous value was 6ms which under 16.6ms vsync time (60Hz) will leave SF with ~10.5ms
897# for each frame. For App the previous value was 2ms which under 16.6ms vsync time will leave the
898# App with ~20.5ms (16.6ms * 2 - 10.5ms - 2ms). The other values were calculated similarly.
899# Full comparison between the old vs. the new values are captured in
900# https://docs.google.com/spreadsheets/d/1a_5cVNY3LUAkeg-yL56rYQNwved6Hy-dvEcKSxp6f8k/edit
901
902PRODUCT_DEFAULT_PROPERTY_OVERRIDES += debug.sf.use_phase_offsets_as_durations=1
903PRODUCT_DEFAULT_PROPERTY_OVERRIDES += debug.sf.late.sf.duration=10500000
904PRODUCT_DEFAULT_PROPERTY_OVERRIDES += debug.sf.late.app.duration=20500000
905PRODUCT_DEFAULT_PROPERTY_OVERRIDES += debug.sf.early.sf.duration=16000000
906PRODUCT_DEFAULT_PROPERTY_OVERRIDES += debug.sf.early.app.duration=16500000
907PRODUCT_DEFAULT_PROPERTY_OVERRIDES += debug.sf.earlyGl.sf.duration=13500000
908PRODUCT_DEFAULT_PROPERTY_OVERRIDES += debug.sf.earlyGl.app.duration=21000000
909
910# Enable backpressure for GL comp
911PRODUCT_PROPERTY_OVERRIDES += \
912    debug.sf.enable_gl_backpressure=1
913
914# Enable EGL image tracking on SF for b/137514000
915PRODUCT_PROPERTY_OVERRIDES += debug.sf.enable_egl_image_tracker=1
916
917# Do not skip init trigger by default
918PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \
919    vendor.skip.init=0
920
921BOARD_USES_QCNE := true
922
923#per device
924PRODUCT_COPY_FILES += \
925    $(LOCAL_PATH)/coral/init.coral.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.coral.rc \
926    $(LOCAL_PATH)/flame/init.flame.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.flame.rc
927
928PRODUCT_COPY_FILES += \
929    $(LOCAL_PATH)/sec_config:$(TARGET_COPY_OUT_VENDOR)/etc/sec_config
930
931# GPS configuration file
932PRODUCT_COPY_FILES += \
933    $(LOCAL_PATH)/gps.conf:$(TARGET_COPY_OUT_VENDOR)/etc/gps.conf
934
935PRODUCT_USE_DYNAMIC_PARTITIONS := true
936
937# insmod files
938PRODUCT_COPY_FILES += \
939	$(LOCAL_PATH)/init.insmod.coral.cfg:$(TARGET_COPY_OUT_VENDOR)/etc/init.insmod.coral.cfg \
940	$(LOCAL_PATH)/init.insmod.flame.cfg:$(TARGET_COPY_OUT_VENDOR)/etc/init.insmod.flame.cfg
941
942# Use /product/etc/fstab.postinstall to mount system_other
943PRODUCT_PRODUCT_PROPERTIES += \
944    ro.postinstall.fstab.prefix=/product
945
946PRODUCT_COPY_FILES += \
947    $(LOCAL_PATH)/fstab.postinstall:$(TARGET_COPY_OUT_PRODUCT)/etc/fstab.postinstall
948
949# powerstats HAL
950PRODUCT_PACKAGES += \
951    android.hardware.power.stats@1.0-service.pixel
952
953PRODUCT_PACKAGES_DEBUG += \
954    pwrstats_util
955
956# Recovery
957PRODUCT_COPY_FILES += \
958    $(LOCAL_PATH)/init.recovery.device.rc:recovery/root/init.recovery.coral.rc \
959    $(LOCAL_PATH)/init.recovery.device.rc:recovery/root/init.recovery.flame.rc
960
961# Oslo feature flag
962PRODUCT_PRODUCT_PROPERTIES += \
963    ro.vendor.aware_available=true
964
965QTI_TELEPHONY_UTILS := qti-telephony-utils
966QTI_TELEPHONY_UTILS += qti_telephony_utils.xml
967PRODUCT_PACKAGES += $(QTI_TELEPHONY_UTILS)
968
969HIDL_WRAPPER := qti-telephony-hidl-wrapper
970HIDL_WRAPPER += qti_telephony_hidl_wrapper.xml
971HIDL_WRAPPER += qti-telephony-hidl-wrapper-prd
972HIDL_WRAPPER += qti_telephony_hidl_wrapper_prd.xml
973PRODUCT_PACKAGES += $(HIDL_WRAPPER)
974
975# Increment the SVN for any official public releases
976PRODUCT_PROPERTY_OVERRIDES += \
977	ro.vendor.build.svn=65
978
979PRODUCT_COPY_FILES += \
980    $(LOCAL_PATH)/powerhint.json:$(TARGET_COPY_OUT_VENDOR)/etc/powerhint.json
981
982
983# Disable SPU usage
984PRODUCT_PROPERTY_OVERRIDES += \
985    vendor.gatekeeper.disable_spu = true
986
987# Enable iwlan service logging for debug
988ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
989    PRODUCT_PROPERTY_OVERRIDES += persist.vendor.iwlan.logging.logcat=true
990endif
991
992# Vendor verbose logging default property
993ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
994PRODUCT_PROPERTY_OVERRIDES += \
995    persist.vendor.verbose_logging_enabled=true
996else
997PRODUCT_PROPERTY_OVERRIDES += \
998    persist.vendor.verbose_logging_enabled=false
999endif
1000
1001# Disable Rescue Party on userdebug & eng build
1002ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
1003PRODUCT_PRODUCT_PROPERTIES += \
1004    persist.sys.disable_rescue=true
1005endif
1006
1007# Set support one-handed mode
1008PRODUCT_PRODUCT_PROPERTIES += \
1009    ro.support_one_handed_mode=true
1010
1011# Set system properties identifying the chipset
1012PRODUCT_VENDOR_PROPERTIES += ro.soc.manufacturer=Qualcomm
1013PRODUCT_VENDOR_PROPERTIES += ro.soc.model=SM8150
1014
1015# Security
1016-include vendor/qcom/sm8150/proprietary/securemsm/config/keymaster_vendor_proprietary_board.mk
1017-include vendor/qcom/sm8150/proprietary/securemsm/config/keymaster_vendor_proprietary_product.mk
1018
1019include hardware/google/pixel/common/pixel-common-device.mk
1020include hardware/google/pixel/vibrator/cs40l25/device.mk
1021include hardware/google/pixel/pixelstats/device.mk
1022include hardware/google/pixel/mm/device_legacy.mk
1023include hardware/google/pixel/thermal/device.mk
1024
1025# gs-common
1026include device/google/gs-common/misc_writer/misc_writer.mk
1027
1028# Citadel
1029include hardware/google/pixel/citadel/citadel.mk
1030
1031# power HAL
1032-include hardware/google/pixel/power-libperfmgr/aidl/device.mk
1033
1034# Pixel Logger
1035include hardware/google/pixel/PixelLogger/PixelLogger.mk
1036
1037$(call inherit-product, $(SRC_TARGET_DIR)/product/virtual_ab_ota_retrofit.mk)
1038