1# 2# Copyright 2017 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 17PRODUCT_AAPT_CONFIG := normal 18PRODUCT_AAPT_PREF_CONFIG := 560dpi 19PRODUCT_AAPT_PREBUILT_DPI := xxxhdpi xxhdpi xhdpi hdpi 20 21PRODUCT_HARDWARE := taimen 22 23# DEVICE_PACKAGE_OVERLAYS for the device should be before 24# including common overlays since the one listed first 25# takes precedence. 26ifdef DEVICE_PACKAGE_OVERLAYS 27$(warning Overlays defined in '$(DEVICE_PACKAGE_OVERLAYS)' will override '$(PRODUCT_HARDWARE)' overlays) 28endif 29DEVICE_PACKAGE_OVERLAYS += device/google/taimen/overlay 30 31# Audio 32PRODUCT_COPY_FILES += \ 33 device/google/taimen/default_volume_tables.xml:$(TARGET_COPY_OUT_VENDOR)/etc/default_volume_tables.xml \ 34 device/google/taimen/audio_policy_volumes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_volumes.xml 35 36include device/google/wahoo/device.mk 37 38PRODUCT_COPY_FILES += \ 39 device/google/taimen/init-taimen.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/init-$(PRODUCT_HARDWARE).rc \ 40 device/google/taimen/init.taimen.usb.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.$(PRODUCT_HARDWARE).usb.rc 41 42PRODUCT_PROPERTY_OVERRIDES += \ 43 ro.sf.lcd_density=560 \ 44 45# Kernel Modules Config 46PRODUCT_COPY_FILES += \ 47 device/google/taimen/init.insmod.cfg:$(TARGET_COPY_OUT_VENDOR)/etc/init.insmod.cfg \ 48 device/google/taimen/init.insmod_charger.cfg:$(TARGET_COPY_OUT_VENDOR)/etc/init.insmod_charger.cfg 49 50# Logging 51PRODUCT_COPY_FILES += \ 52 device/google/taimen/init.logging.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.$(PRODUCT_HARDWARE).logging.rc 53 54 55PRODUCT_COPY_FILES += \ 56 device/google/taimen/nfc/libnfc-nxp.taimen.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libnfc-nxp.conf 57 58PRODUCT_COPY_FILES += \ 59 device/google/taimen/thermal-engine.conf:$(TARGET_COPY_OUT_VENDOR)/etc/thermal-engine.conf \ 60 device/google/taimen/thermal-engine-vr.conf:$(TARGET_COPY_OUT_VENDOR)/etc/thermal-engine-vr.conf 61 62# Audio 63PRODUCT_COPY_FILES += \ 64 device/google/taimen/mixer_paths_tavil.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_tavil_taimen.xml \ 65 device/google/taimen/audio_platform_info_tavil.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_tavil_taimen.xml 66 67# Bug 62375603 68PRODUCT_PROPERTY_OVERRIDES += audio.adm.buffering.ms=3 69PRODUCT_PROPERTY_OVERRIDES += vendor.audio.adm.buffering.ms=3 70PRODUCT_PROPERTY_OVERRIDES += audio_hal.period_multiplier=2 71PRODUCT_PROPERTY_OVERRIDES += af.fast_track_multiplier=1 72 73# Whether by default, the eSIM system UI, including that in SUW and Settings, will be shown. 74PRODUCT_SYSTEM_DEFAULT_PROPERTIES += esim.enable_esim_system_ui_by_default=false 75 76# Pro audio feature 77PRODUCT_COPY_FILES += \ 78 frameworks/native/data/etc/android.hardware.audio.pro.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.audio.pro.xml 79 80# Enable AAudio MMAP/NOIRQ data path. 81# 1 is AAUDIO_POLICY_NEVER means only use Legacy path. 82# 2 is AAUDIO_POLICY_AUTO means try MMAP then fallback to Legacy path. 83# 3 is AAUDIO_POLICY_ALWAYS means only use MMAP path. 84PRODUCT_PROPERTY_OVERRIDES += aaudio.mmap_policy=2 85# 1 is AAUDIO_POLICY_NEVER means only use SHARED mode 86# 2 is AAUDIO_POLICY_AUTO means try EXCLUSIVE then fallback to SHARED mode. 87# 3 is AAUDIO_POLICY_ALWAYS means only use EXCLUSIVE mode. 88PRODUCT_PROPERTY_OVERRIDES += aaudio.mmap_exclusive_policy=2 89 90# Increase the apparent size of a hardware burst from 1 msec to 2 msec. 91# A "burst" is the number of frames processed at one time. 92# That is an increase from 48 to 96 frames at 48000 Hz. 93# The DSP will still be bursting at 48 frames but AAudio will think the burst is 96 frames. 94# A low number, like 48, might increase power consumption or stress the system. 95PRODUCT_PROPERTY_OVERRIDES += aaudio.hw_burst_min_usec=2000 96 97# Wifi configuration file 98PRODUCT_COPY_FILES += \ 99 device/google/taimen/WCNSS_qcom_cfg.ini:$(TARGET_COPY_OUT_VENDOR)/firmware/wlan/qca_cld/WCNSS_qcom_cfg.ini 100 101# touchscreen configuration 102PRODUCT_COPY_FILES += \ 103 device/google/taimen/touchscreen.idc:$(TARGET_COPY_OUT_VENDOR)/usr/idc/touchscreen.idc 104 105# Keymaster configuration 106PRODUCT_COPY_FILES += \ 107 frameworks/native/data/etc/android.software.device_id_attestation.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.device_id_attestation.xml 108 109# Enable modem logging 110ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT))) 111PRODUCT_PROPERTY_OVERRIDES += \ 112 persist.sys.modem.diag.qdb=0\ 113 persist.sys.modem.diag.mdlog=true \ 114 persist.sys.modem.diag.mdlog_br_num=5 \ 115 ro.radio.log_loc="/data/vendor/modem_dump" \ 116 ro.radio.log_prefix="modem_log_" 117endif 118 119#IMU calibration 120PRODUCT_PROPERTY_OVERRIDES += \ 121 persist.config.calibration_fac=/persist/sensors/calibration/calibration.xml 122 123# Vibrator HAL 124PRODUCT_PROPERTY_OVERRIDES += \ 125 ro.vibrator.hal.click.duration=10 \ 126 ro.vibrator.hal.tick.duration=4 \ 127 ro.vibrator.hal.heavyclick.duration=12 128 129# Enable Perfetto traced 130PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \ 131 persist.traced.enable=1 132 133# Early phase offset for SurfaceFlinger (b/75985430) 134PRODUCT_PROPERTY_OVERRIDES += \ 135 debug.sf.early_phase_offset_ns=5000000 136 137