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