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