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