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# Pro audio feature 74PRODUCT_COPY_FILES += \ 75 frameworks/native/data/etc/android.hardware.audio.pro.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.audio.pro.xml 76 77# Enable AAudio MMAP/NOIRQ data path. 78# 1 is AAUDIO_POLICY_NEVER means only use Legacy path. 79# 2 is AAUDIO_POLICY_AUTO means try MMAP then fallback to Legacy path. 80# 3 is AAUDIO_POLICY_ALWAYS means only use MMAP path. 81PRODUCT_PROPERTY_OVERRIDES += aaudio.mmap_policy=2 82# 1 is AAUDIO_POLICY_NEVER means only use SHARED mode 83# 2 is AAUDIO_POLICY_AUTO means try EXCLUSIVE then fallback to SHARED mode. 84# 3 is AAUDIO_POLICY_ALWAYS means only use EXCLUSIVE mode. 85PRODUCT_PROPERTY_OVERRIDES += aaudio.mmap_exclusive_policy=2 86 87# Increase the apparent size of a hardware burst from 1 msec to 2 msec. 88# A "burst" is the number of frames processed at one time. 89# That is an increase from 48 to 96 frames at 48000 Hz. 90# The DSP will still be bursting at 48 frames but AAudio will think the burst is 96 frames. 91# A low number, like 48, might increase power consumption or stress the system. 92PRODUCT_PROPERTY_OVERRIDES += aaudio.hw_burst_min_usec=2000 93 94# Wifi configuration file 95PRODUCT_COPY_FILES += \ 96 device/google/taimen/WCNSS_qcom_cfg.ini:$(TARGET_COPY_OUT_VENDOR)/firmware/wlan/qca_cld/WCNSS_qcom_cfg.ini 97 98# touchscreen configuration 99PRODUCT_COPY_FILES += \ 100 device/google/taimen/touchscreen.idc:$(TARGET_COPY_OUT_VENDOR)/usr/idc/touchscreen.idc 101 102# Enable modem logging 103ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT))) 104PRODUCT_PROPERTY_OVERRIDES += \ 105 persist.sys.modem.diag.qdb=0\ 106 persist.sys.modem.diag.mdlog=true \ 107 ro.radio.log_loc="/data/vendor/modem_dump" \ 108 ro.radio.log_prefix="modem_log_" 109endif 110 111#IMU calibration 112PRODUCT_PROPERTY_OVERRIDES += \ 113 persist.config.calibration_fac=/persist/sensors/calibration/calibration.xml 114 115# Vibrator HAL 116PRODUCT_PROPERTY_OVERRIDES += \ 117 ro.vibrator.hal.click.duration=10 \ 118 ro.vibrator.hal.tick.duration=4 119 120# HWUI common settings 121PRODUCT_PROPERTY_OVERRIDES += \ 122 ro.hwui.gradient_cache_size=1 \ 123 ro.hwui.drop_shadow_cache_size=6 \ 124 ro.hwui.r_buffer_cache_size=8 \ 125 ro.hwui.texture_cache_flushrate=0.4 \ 126 ro.hwui.text_small_cache_width=1024 \ 127 ro.hwui.text_small_cache_height=1024 \ 128 ro.hwui.text_large_cache_width=2048 \ 129 ro.hwui.text_large_cache_height=1024 \ 130 ro.hwui.texture_cache_size=84 \ 131 ro.hwui.layer_cache_size=64 \ 132 ro.hwui.path_cache_size=32 133