• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#
2# Copyright (C) 2016 The Android Open-Source Project
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8#      http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15#
16
17ifneq (,$(filter 27, $(PRODUCT_EXTRA_VNDK_VERSIONS)))
18    _vndk_test := true
19endif
20
21ifeq (,$(_vndk_test))
22PRODUCT_COMPATIBLE_PROPERTY_OVERRIDE := true
23endif
24PRODUCT_ACTIONABLE_COMPATIBLE_PROPERTY_DISABLE := true
25
26PRODUCT_PROPERTY_OVERRIDES += \
27    keyguard.no_require_sim=true
28
29PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \
30    ro.adb.secure=1
31
32PRODUCT_COPY_FILES += \
33    device/google/wahoo/default-permissions.xml:$(TARGET_COPY_OUT_VENDOR)/etc/default-permissions/default-permissions.xml \
34    frameworks/native/data/etc/handheld_core_hardware.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/handheld_core_hardware.xml \
35    frameworks/native/data/etc/android.software.verified_boot.xml:system/etc/permissions/android.software.verified_boot.xml
36
37# Set the SVN for the targeted MR release
38PRODUCT_PROPERTY_OVERRIDES += \
39    ro.vendor.build.svn=17
40
41# Enforce privapp-permissions whitelist
42PRODUCT_PROPERTY_OVERRIDES += \
43    ro.control_privapp_permissions=enforce
44
45PRODUCT_PACKAGES += \
46    messaging
47
48LOCAL_PATH := device/google/wahoo
49
50SRC_MEDIA_HAL_DIR := hardware/qcom/media/msm8998
51SRC_DISPLAY_HAL_DIR := hardware/qcom/display/msm8998
52SRC_CAMERA_HAL_DIR := hardware/qcom/camera/msm8998
53
54TARGET_SYSTEM_PROP := $(LOCAL_PATH)/system.prop
55
56# Get kernel-headers
57$(call inherit-product, hardware/qcom/msm8998/msm8998.mk)
58
59$(call inherit-product, device/google/wahoo/utils.mk)
60
61ifeq ($(TARGET_PREBUILT_KERNEL),)
62    LOCAL_KERNEL := device/google/wahoo-kernel/Image.lz4-dtb
63else
64    LOCAL_KERNEL := $(TARGET_PREBUILT_KERNEL)
65endif
66
67PRODUCT_CHARACTERISTICS := nosdcard
68PRODUCT_SHIPPING_API_LEVEL := 26
69
70DEVICE_PACKAGE_OVERLAYS += $(LOCAL_PATH)/overlay
71
72PRODUCT_COPY_FILES += \
73    $(LOCAL_KERNEL):kernel \
74    $(LOCAL_PATH)/init.recovery.hardware.rc:recovery/root/init.recovery.$(PRODUCT_HARDWARE).rc \
75    $(LOCAL_PATH)/init.hardware.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.$(PRODUCT_HARDWARE).rc \
76    $(LOCAL_PATH)/init.hardware.usb.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.wahoo.usb.rc \
77    $(LOCAL_PATH)/ueventd.hardware.rc:$(TARGET_COPY_OUT_VENDOR)/ueventd.rc \
78    $(LOCAL_PATH)/init.elabel.sh:$(TARGET_COPY_OUT_SYSTEM)/bin/init.elabel.sh \
79    $(LOCAL_PATH)/init.power.sh:$(TARGET_COPY_OUT_VENDOR)/bin/init.power.sh \
80    $(LOCAL_PATH)/init.radio.sh:$(TARGET_COPY_OUT_VENDOR)/bin/init.radio.sh \
81    $(LOCAL_PATH)/uinput-fpc.kl:system/usr/keylayout/uinput-fpc.kl \
82    $(LOCAL_PATH)/uinput-fpc.idc:system/usr/idc/uinput-fpc.idc \
83    $(LOCAL_PATH)/init.qcom.devstart.sh:$(TARGET_COPY_OUT_VENDOR)/bin/init.qcom.devstart.sh \
84    $(LOCAL_PATH)/init.qcom.ipastart.sh:$(TARGET_COPY_OUT_VENDOR)/bin/init.qcom.ipastart.sh \
85    $(LOCAL_PATH)/init.qcom.wlan.sh:$(TARGET_COPY_OUT_VENDOR)/bin/init.qcom.wlan.sh \
86    $(LOCAL_PATH)/init.insmod.sh:$(TARGET_COPY_OUT_VENDOR)/bin/init.insmod.sh \
87    $(LOCAL_PATH)/init.ramoops.sh:$(TARGET_COPY_OUT_SYSTEM)/bin/init.ramoops.sh \
88    frameworks/native/services/vr/virtual_touchpad/idc/vr-virtual-touchpad-0.idc:$(TARGET_COPY_OUT_VENDOR)/usr/idc/vr-virtual-touchpad-0.idc \
89    frameworks/native/services/vr/virtual_touchpad/idc/vr-virtual-touchpad-1.idc:$(TARGET_COPY_OUT_VENDOR)/usr/idc/vr-virtual-touchpad-1.idc
90
91ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
92  PRODUCT_COPY_FILES += \
93      $(LOCAL_PATH)/init.hardware.diag.rc.userdebug:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.$(PRODUCT_HARDWARE).diag.rc
94else
95  PRODUCT_COPY_FILES += \
96      $(LOCAL_PATH)/init.hardware.diag.rc.user:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.$(PRODUCT_HARDWARE).diag.rc
97endif
98
99MSM_VIDC_TARGET_LIST := msm8998 # Get the color format from kernel headers
100MASTER_SIDE_CP_TARGET_LIST := msm8998 # ION specific settings
101
102# A/B support
103PRODUCT_PACKAGES += \
104    otapreopt_script \
105    cppreopts.sh \
106    update_engine \
107    update_verifier
108
109PRODUCT_PACKAGES += \
110    bootctrl.msm8998
111
112PRODUCT_PROPERTY_OVERRIDES += \
113    ro.cp_system_other_odex=1
114
115AB_OTA_UPDATER := true
116
117AB_OTA_PARTITIONS += \
118    boot \
119    system \
120    vbmeta \
121    dtbo
122
123AB_OTA_POSTINSTALL_CONFIG += \
124    RUN_POSTINSTALL_system=true \
125    POSTINSTALL_PATH_system=system/bin/otapreopt_script \
126    FILESYSTEM_TYPE_system=ext4 \
127    POSTINSTALL_OPTIONAL_system=true
128
129# Enable update engine sideloading by including the static version of the
130# boot_control HAL and its dependencies.
131PRODUCT_STATIC_BOOT_CONTROL_HAL := \
132    bootctrl.msm8998 \
133    libgptutils \
134    libz \
135    libcutils
136
137PRODUCT_PACKAGES += \
138    update_engine_sideload
139
140# The following modules are included in debuggable builds only.
141PRODUCT_PACKAGES_DEBUG += \
142    bootctl \
143    update_engine_client
144
145PRODUCT_COPY_FILES += \
146    frameworks/native/data/etc/android.hardware.camera.flash-autofocus.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.flash-autofocus.xml \
147    frameworks/native/data/etc/android.hardware.camera.front.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.front.xml \
148    frameworks/native/data/etc/android.hardware.camera.full.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.full.xml\
149    frameworks/native/data/etc/android.hardware.camera.raw.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.raw.xml\
150    frameworks/native/data/etc/android.hardware.camera.ar.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.ar.xml\
151    frameworks/native/data/etc/android.hardware.bluetooth.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth.xml \
152    frameworks/native/data/etc/android.hardware.bluetooth_le.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth_le.xml \
153    frameworks/native/data/etc/android.hardware.sensor.accelerometer.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.accelerometer.xml \
154    frameworks/native/data/etc/android.hardware.sensor.assist.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.assist.xml \
155    frameworks/native/data/etc/android.hardware.sensor.compass.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.compass.xml \
156    frameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.gyroscope.xml \
157    frameworks/native/data/etc/android.hardware.sensor.light.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.light.xml \
158    frameworks/native/data/etc/android.hardware.sensor.proximity.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.proximity.xml \
159    frameworks/native/data/etc/android.hardware.sensor.barometer.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.barometer.xml \
160    frameworks/native/data/etc/android.hardware.sensor.stepcounter.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.stepcounter.xml \
161    frameworks/native/data/etc/android.hardware.sensor.stepdetector.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.stepdetector.xml \
162    frameworks/native/data/etc/android.hardware.sensor.hifi_sensors.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.hifi_sensors.xml \
163    frameworks/native/data/etc/android.hardware.location.gps.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.location.gps.xml \
164    frameworks/native/data/etc/android.hardware.telephony.gsm.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.telephony.gsm.xml \
165    frameworks/native/data/etc/android.hardware.telephony.cdma.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.telephony.cdma.xml \
166    frameworks/native/data/etc/android.hardware.touchscreen.multitouch.jazzhand.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml \
167    frameworks/native/data/etc/android.hardware.wifi.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.xml \
168    frameworks/native/data/etc/android.hardware.wifi.direct.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.direct.xml \
169    frameworks/native/data/etc/android.hardware.wifi.aware.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.aware.xml \
170    frameworks/native/data/etc/android.hardware.wifi.passpoint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.passpoint.xml \
171    frameworks/native/data/etc/android.hardware.wifi.rtt.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.rtt.xml \
172    frameworks/native/data/etc/android.software.sip.voip.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.sip.voip.xml \
173    frameworks/native/data/etc/android.hardware.usb.accessory.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.usb.accessory.xml \
174    frameworks/native/data/etc/android.hardware.usb.host.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.usb.host.xml \
175    frameworks/native/data/etc/android.hardware.opengles.aep.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.opengles.aep.xml \
176    frameworks/native/data/etc/android.hardware.nfc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.xml \
177    frameworks/native/data/etc/android.hardware.nfc.hce.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hce.xml \
178    frameworks/native/data/etc/android.hardware.nfc.hcef.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hcef.xml \
179    frameworks/native/data/etc/android.hardware.vr.headtracking-0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.vr.headtracking.xml \
180    frameworks/native/data/etc/android.hardware.vr.high_performance.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.vr.high_performance.xml \
181    frameworks/native/data/etc/android.hardware.vulkan.compute-0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.vulkan.compute.xml \
182    frameworks/native/data/etc/android.hardware.vulkan.level-0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.vulkan.level.xml \
183    frameworks/native/data/etc/android.hardware.vulkan.version-1_1.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.vulkan.version.xml \
184    frameworks/native/data/etc/android.hardware.telephony.carrierlock.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.telephony.carrierlock.xml \
185
186# power HAL
187PRODUCT_PACKAGES += \
188    android.hardware.power@1.2-service.wahoo-libperfmgr
189
190PRODUCT_COPY_FILES += \
191    $(LOCAL_PATH)/powerhint.json:$(TARGET_COPY_OUT_VENDOR)/etc/powerhint.json
192
193# health HAL
194PRODUCT_PACKAGES += \
195    android.hardware.health@2.0-service.wahoo
196
197# Audio fluence, ns, aec property, voice and media volume steps
198PRODUCT_PROPERTY_OVERRIDES += \
199    ro.qc.sdk.audio.fluencetype=fluencepro \
200    persist.audio.fluence.voicecall=true \
201    persist.audio.fluence.speaker=true \
202    persist.audio.fluence.voicecomm=true \
203    persist.audio.fluence.voicerec=false \
204    ro.config.vc_call_vol_steps=7 \
205    ro.config.media_vol_steps=25
206
207# graphics
208PRODUCT_PROPERTY_OVERRIDES += \
209    ro.opengles.version=196610
210
211# b/73640835
212PRODUCT_PROPERTY_OVERRIDES += \
213    sdm.debug.rotator_downscale=1
214
215# Disable buffer age (b/74534157)
216PRODUCT_PROPERTY_OVERRIDES += \
217    debug.hwui.use_buffer_age=false
218
219# Enable camera EIS3.0
220PRODUCT_PROPERTY_OVERRIDES += \
221    persist.camera.is_type=5 \
222    persist.camera.gzoom.at=0 \
223    persist.camera.llv.fuse=2
224
225# Enable camera ae saturation stats
226PRODUCT_PROPERTY_OVERRIDES += \
227    persist.camera.saturationext=1
228
229# OEM Unlock reporting
230PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \
231    ro.oem_unlock_supported=1
232
233PRODUCT_PROPERTY_OVERRIDES += \
234    persist.cne.feature=1 \
235    persist.data.iwlan.enable=true \
236    persist.radio.RATE_ADAPT_ENABLE=1 \
237    persist.radio.ROTATION_ENABLE=1 \
238    persist.radio.VT_ENABLE=1 \
239    persist.radio.VT_HYBRID_ENABLE=1 \
240    persist.radio.apm_sim_not_pwdn=1 \
241    persist.radio.custom_ecc=1 \
242    persist.radio.data_ltd_sys_ind=1 \
243    persist.radio.is_wps_enabled=true \
244    persist.radio.videopause.mode=1 \
245    persist.radio.sap_silent_pin=1 \
246    persist.radio.sib16_support=1 \
247    persist.radio.data_con_rprt=true \
248    persist.radio.always_send_plmn=false\
249    persist.rcs.supported=1
250
251ifeq (,$(_vndk_test))
252PRODUCT_PROPERTY_OVERRIDES += \
253    vendor.rild.libpath=/vendor/lib64/libril-qc-qmi-1.so
254else
255PRODUCT_PROPERTY_OVERRIDES += \
256    rild.libpath=/vendor/lib64/libril-qc-qmi-1.so
257endif
258
259# Disable snapshot timer
260PRODUCT_PROPERTY_OVERRIDES += \
261    persist.radio.snapshot_enabled=0 \
262    persist.radio.snapshot_timer=0
263
264# By default, enable zram; experiment can toggle the flag,
265# which takes effect on boot
266PRODUCT_PROPERTY_OVERRIDES += \
267    persist.sys.zram_enabled=1
268
269PRODUCT_PROPERTY_OVERRIDES += \
270  ro.vendor.extension_library=libqti-perfd-client.so
271
272# settings to enable Device Orientation Sensors
273PRODUCT_PROPERTY_OVERRIDES += \
274    ro.qti.sensors.dev_ori=true
275
276# settings to disable unused secondary wakeup
277PRODUCT_PROPERTY_OVERRIDES += \
278    ro.qti.sensors.wu=false
279
280# settings to disable unused algorithms
281PRODUCT_PROPERTY_OVERRIDES += \
282    ro.qti.sdk.sensors.gestures=false \
283    ro.qti.sensors.amd=false \
284    ro.qti.sensors.cmc=false \
285    ro.qti.sensors.facing=false \
286    ro.qti.sensors.pedometer=false \
287    ro.qti.sensors.rmd=false \
288    ro.qti.sensors.scrn_ortn=false
289
290# use SMGR supplied version of step detector and counter
291PRODUCT_PROPERTY_OVERRIDES += \
292    ro.qti.sensors.step_counter=false \
293    ro.qti.sensors.step_detector=false
294
295# camera gyro and laser sensor
296PRODUCT_PROPERTY_OVERRIDES += \
297  persist.camera.gyro.android=20 \
298  persist.camera.tof.direct=1 \
299  persist.camera.max.previewfps=60 \
300  persist.camera.sensor.hdr=2
301
302# camera TNR controls
303PRODUCT_PROPERTY_OVERRIDES += \
304  persist.camera.tnr.video=1 \
305
306# WLAN driver configuration files
307PRODUCT_COPY_FILES += \
308    $(LOCAL_PATH)/wpa_supplicant_overlay.conf:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/wpa_supplicant_overlay.conf \
309    $(LOCAL_PATH)/p2p_supplicant_overlay.conf:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/p2p_supplicant_overlay.conf \
310    $(LOCAL_PATH)/wifi_concurrency_cfg.txt:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/wifi_concurrency_cfg.txt
311
312#ipacm configuration files
313PRODUCT_COPY_FILES += \
314    hardware/qcom/data/ipacfg-mgr/msm8998/ipacm/src/IPACM_cfg.xml:$(TARGET_COPY_OUT_VENDOR)/etc/IPACM_cfg.xml
315
316PRODUCT_PACKAGES += \
317    hwcomposer.msm8998 \
318    android.hardware.graphics.composer@2.1-impl:64 \
319    android.hardware.graphics.composer@2.1-service \
320    gralloc.msm8998 \
321    android.hardware.graphics.allocator@2.0-impl:64 \
322    android.hardware.graphics.allocator@2.0-service \
323    android.hardware.graphics.mapper@2.0-impl \
324    libbt-vendor
325
326# RenderScript HAL
327PRODUCT_PACKAGES += \
328    android.hardware.renderscript@1.0-impl
329
330# Light HAL
331PRODUCT_PACKAGES += \
332    lights.$(PRODUCT_HARDWARE) \
333    android.hardware.light@2.0-impl:64 \
334    android.hardware.light@2.0-service
335
336# eSE applet HALs
337PRODUCT_PACKAGES += \
338    esed
339
340# Memtrack HAL
341PRODUCT_PACKAGES += \
342    memtrack.msm8998 \
343    android.hardware.memtrack@1.0-impl \
344    android.hardware.memtrack@1.0-service
345
346# Bluetooth HAL
347PRODUCT_PACKAGES += \
348    android.hardware.bluetooth@1.0-impl-qti:64 \
349    android.hardware.bluetooth@1.0-service-qti \
350    android.hardware.bluetooth@1.0-service-qti.rc
351
352# Bluetooth SoC
353PRODUCT_PROPERTY_OVERRIDES += \
354    vendor.qcom.bluetooth.soc=cherokee
355
356# Property for loading BDA from bdaddress module in kernel
357PRODUCT_PROPERTY_OVERRIDES += \
358    ro.vendor.bt.bdaddr_path=/sys/module/bdaddress/parameters/bdaddress
359
360# Bluetooth WiPower
361PRODUCT_PROPERTY_OVERRIDES += \
362    ro.vendor.bluetooth.emb_wp_mode=false \
363    ro.vendor.bluetooth.wipower=false
364
365# DRM HAL
366PRODUCT_PACKAGES += \
367    android.hardware.drm@1.0-impl:32 \
368    android.hardware.drm@1.0-service \
369    android.hardware.drm@1.1-service.widevine \
370    android.hardware.drm@1.1-service.clearkey \
371    move_widevine_data.sh
372
373# NFC packages
374PRODUCT_PACKAGES += \
375    NfcNci \
376    Tag \
377    android.hardware.nfc@1.1-service \
378
379PRODUCT_PACKAGES += \
380    SecureElement
381
382PRODUCT_COPY_FILES += \
383    device/google/wahoo/nfc/libnfc-nci.conf:$(TARGET_COPY_OUT_SYSTEM)/etc/libnfc-nci.conf \
384
385PRODUCT_PACKAGES += \
386    android.hardware.usb@1.1-service.wahoo
387
388PRODUCT_PACKAGES += \
389    libmm-omxcore \
390    libOmxCore \
391    libstagefrighthw \
392    libOmxVdec \
393    libOmxVdecHevc \
394    libOmxVenc \
395    libc2dcolorconvert
396
397PRODUCT_PACKAGES += \
398    android.hardware.camera.provider@2.4-impl:32 \
399    android.hardware.camera.provider@2.4-service \
400    camera.device@3.2-impl \
401    camera.msm8998 \
402    libqomx_core \
403    libmmjpeg_interface \
404    libmmcamera_interface
405
406PRODUCT_PACKAGES += \
407    sensors.$(PRODUCT_HARDWARE) \
408    android.hardware.sensors@1.0-impl:64 \
409    android.hardware.sensors@1.0-service
410
411PRODUCT_COPY_FILES += \
412    $(LOCAL_PATH)/sensors/hals.conf:vendor/etc/sensors/hals.conf
413
414# Default permission grant exceptions
415PRODUCT_COPY_FILES += \
416    device/google/wahoo/default-permissions.xml:$(TARGET_COPY_OUT_VENDOR)/etc/default-permissions/default-permissions.xml
417
418PRODUCT_PACKAGES += \
419    fs_config_dirs \
420    fs_config_files
421
422# Context hub HAL
423PRODUCT_PACKAGES += \
424    android.hardware.contexthub@1.0-impl.generic:64 \
425    android.hardware.contexthub@1.0-service
426
427# Boot control HAL
428PRODUCT_PACKAGES += \
429    android.hardware.boot@1.0-impl:64 \
430    android.hardware.boot@1.0-service \
431
432# Vibrator HAL
433PRODUCT_PACKAGES += \
434    android.hardware.vibrator@1.2-service.wahoo
435
436# Thermal packages
437PRODUCT_PACKAGES += \
438    android.hardware.thermal@1.1-impl-wahoo
439
440#GNSS HAL
441PRODUCT_PACKAGES += \
442    gps.conf \
443    libgps.utils \
444    libgnss \
445    liblocation_api \
446    android.hardware.gnss@1.0-impl-qti \
447    android.hardware.gnss@1.0-service-qti
448
449# VR HAL
450PRODUCT_PACKAGES += \
451    android.hardware.vr@1.0-service.wahoo \
452
453PRODUCT_COPY_FILES += \
454    $(LOCAL_PATH)/sec_config:$(TARGET_COPY_OUT_VENDOR)/etc/sec_config
455
456
457HOSTAPD := hostapd
458HOSTAPD += hostapd_cli
459PRODUCT_PACKAGES += $(HOSTAPD)
460
461WPA := wpa_supplicant.conf
462WPA += wpa_supplicant_wcn.conf
463WPA += wpa_supplicant
464PRODUCT_PACKAGES += $(WPA)
465
466# Wifi
467PRODUCT_PACKAGES += \
468    android.hardware.wifi@1.0-service \
469    wificond \
470    wifilogd \
471    libwpa_client
472
473LIB_NL := libnl_2
474PRODUCT_PACKAGES += $(LIB_NL)
475
476# Audio effects
477PRODUCT_PACKAGES += \
478    libvolumelistener \
479    libqcomvisualizer \
480    libqcomvoiceprocessing \
481    libqcomvoiceprocessingdescriptors \
482    libqcompostprocbundle
483
484PRODUCT_PACKAGES += \
485    audio.primary.msm8998 \
486    audio.a2dp.default \
487    audio.usb.default \
488    audio.r_submix.default \
489    libaudio-resampler \
490    audio.hearing_aid.default
491
492PRODUCT_PACKAGES += \
493    android.hardware.audio@4.0-impl:32 \
494    android.hardware.audio.effect@4.0-impl:32 \
495    android.hardware.soundtrigger@2.1-impl:32 \
496    android.hardware.audio@2.0-service
497
498# stereo speakers: orientation changes swap L/R channels
499PRODUCT_PROPERTY_OVERRIDES += \
500    ro.audio.monitorRotation=true
501
502# Bug 62375603
503# PRODUCT_PROPERTY_OVERRIDES += audio.adm.buffering.ms=4
504
505# MIDI feature
506PRODUCT_COPY_FILES += \
507    frameworks/native/data/etc/android.software.midi.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.midi.xml
508
509# Audio low latency feature
510PRODUCT_COPY_FILES += \
511    frameworks/native/data/etc/android.hardware.audio.low_latency.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.audio.low_latency.xml
512
513# Pro audio feature
514# PRODUCT_COPY_FILES += \
515#   frameworks/native/data/etc/android.hardware.audio.pro.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.audio.pro.xml
516
517ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
518PRODUCT_PACKAGES += \
519    tinyplay \
520    tinycap \
521    tinymix \
522    tinypcminfo \
523    cplay
524endif
525
526PRODUCT_COPY_FILES += \
527    $(LOCAL_PATH)/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration.xml \
528    frameworks/av/services/audiopolicy/config/a2dp_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/a2dp_audio_policy_configuration.xml \
529    frameworks/av/services/audiopolicy/config/usb_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/usb_audio_policy_configuration.xml \
530    frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/r_submix_audio_policy_configuration.xml \
531    frameworks/av/services/audiopolicy/config/audio_policy_volumes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_volumes.xml \
532    frameworks/av/services/audiopolicy/config/default_volume_tables.xml:$(TARGET_COPY_OUT_VENDOR)/etc/default_volume_tables.xml \
533    frameworks/av/services/audiopolicy/config/hearing_aid_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/hearing_aid_audio_policy_configuration.xml \
534
535# audio hal tables
536PRODUCT_COPY_FILES += \
537    $(LOCAL_PATH)/sound_trigger_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_platform_info.xml \
538    $(LOCAL_PATH)/sound_trigger_mixer_paths_wcd9340.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths_wcd9340.xml \
539    $(LOCAL_PATH)/graphite_ipc_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/graphite_ipc_platform_info.xml \
540
541PRODUCT_COPY_FILES += \
542    $(LOCAL_PATH)/media_codecs.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs.xml \
543    $(LOCAL_PATH)/media_codecs_performance.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_performance.xml \
544    frameworks/av/media/libstagefright/data/media_codecs_google_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_audio.xml \
545    frameworks/av/media/libstagefright/data/media_codecs_google_telephony.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_telephony.xml \
546    frameworks/av/media/libstagefright/data/media_codecs_google_video.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_video.xml \
547    $(LOCAL_PATH)/media_profiles_V1_0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_V1_0.xml \
548
549PRODUCT_PROPERTY_OVERRIDES += \
550    audio.snd_card.open.retries=50
551
552PRODUCT_COPY_FILES += \
553    $(LOCAL_PATH)/lowi.conf:$(TARGET_COPY_OUT_VENDOR)/etc/lowi.conf
554
555# Fingerprint HIDL implementation
556PRODUCT_PACKAGES += \
557    android.hardware.biometrics.fingerprint@2.1-service.fpc
558
559PRODUCT_COPY_FILES += \
560    frameworks/native/data/etc/android.hardware.fingerprint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.fingerprint.xml
561
562# GPS configuration file
563PRODUCT_COPY_FILES += \
564    $(LOCAL_PATH)/gps.conf:$(TARGET_COPY_OUT_VENDOR)/etc/gps.conf
565
566# GPS debug file
567PRODUCT_COPY_FILES += \
568    $(LOCAL_PATH)/gps_debug.conf:system/etc/gps_debug.conf
569
570# Vendor seccomp policy files for media components:
571PRODUCT_COPY_FILES += \
572    $(LOCAL_PATH)/seccomp_policy/mediacodec.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/mediacodec.policy
573
574# Keymaster configuration
575PRODUCT_COPY_FILES += \
576    frameworks/native/data/etc/android.software.device_id_attestation.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.device_id_attestation.xml
577
578ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
579# Subsystem ramdump
580PRODUCT_PROPERTY_OVERRIDES += \
581    persist.sys.ssr.enable_ramdumps=1
582endif
583
584# Subsystem silent restart
585PRODUCT_PROPERTY_OVERRIDES += \
586    persist.sys.ssr.restart_level=modem,slpi,adsp
587
588# setup dalvik vm configs
589$(call inherit-product, frameworks/native/build/phone-xhdpi-2048-dalvik-heap.mk)
590
591PRODUCT_COPY_FILES += \
592    device/google/wahoo/fstab.hardware:$(TARGET_COPY_OUT_VENDOR)/etc/fstab.$(PRODUCT_HARDWARE)
593
594# Use the default charger mode images
595PRODUCT_PACKAGES += \
596    charger_res_images
597
598# b/36703476
599# Set default log size on userdebug/eng build to 1M
600ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
601PRODUCT_PROPERTY_OVERRIDES += ro.logd.size=1M
602endif
603
604# Dumpstate HAL
605PRODUCT_PACKAGES += \
606    android.hardware.dumpstate@1.0-service.wahoo
607
608# Use daemon to detect folio open/close
609PRODUCT_PACKAGES += \
610    folio_daemon
611
612# Storage: for factory reset protection feature
613PRODUCT_PROPERTY_OVERRIDES += \
614    ro.frp.pst=/dev/block/platform/soc/1da4000.ufshc/by-name/frp
615
616# Include vndk/vndk-sp/ll-ndk modules
617PRODUCT_PACKAGES += vndk_package
618
619PRODUCT_ENFORCE_RRO_TARGETS := framework-res
620
621# Override heap growth limit due to high display density on device
622PRODUCT_PROPERTY_OVERRIDES += \
623    dalvik.vm.heapgrowthlimit=256m
624
625# Privileged permissions whitelist
626PRODUCT_COPY_FILES += \
627    device/google/wahoo/permissions/privapp-permissions-aosp_wahoo.xml:system/etc/permissions/privapp-permissions-aosp_wahoo.xml
628
629PRODUCT_PACKAGES += \
630    ipacm
631
632#Set default CDMA subscription to RUIM
633PRODUCT_PROPERTY_OVERRIDES += \
634    ro.telephony.default_cdma_sub=0
635
636# Add an extra 10% saturation to display colors
637PRODUCT_PROPERTY_OVERRIDES += \
638    persist.sys.sf.color_saturation=1.1
639
640# Easel device feature
641PRODUCT_COPY_FILES += \
642    device/google/wahoo/permissions/com.google.hardware.camera.easel.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.google.hardware.camera.easel.xml
643
644# QC time-daemon to use persist
645PRODUCT_PROPERTY_OVERRIDES += \
646    persist.delta_time.enable=true
647
648# Do not drop packets based upon enqueue sequence
649# to avoid freeze
650PRODUCT_PROPERTY_OVERRIDES += \
651    persist.vendor.ims.dropset_feature=0
652
653# Enable CameraHAL perfd usage
654PRODUCT_PROPERTY_OVERRIDES += \
655    persist.camera.perfd.enable=false
656
657# Enable Gcam FD Ensemble
658PRODUCT_PROPERTY_OVERRIDES += \
659    persist.camera.gcam.fd.ensemble=1
660
661# Preopt SystemUI
662PRODUCT_DEXPREOPT_SPEED_APPS += \
663    SystemUIGoogle
664
665# audio effects config
666PRODUCT_PROPERTY_OVERRIDES += \
667    fmas.hdph_sgain=0
668
669# NFC/camera interaction workaround - DO NOT COPY TO NEW DEVICES
670PRODUCT_PROPERTY_OVERRIDES += \
671    ro.camera.notify_nfc=1
672
673# default usb oem functions
674ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
675  PRODUCT_PROPERTY_OVERRIDES += \
676      persist.vendor.usb.usbradio.config=diag
677endif
678