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 17 PRODUCT_AAPT_CONFIG := normal 18 PRODUCT_AAPT_PREF_CONFIG := 560dpi 19 PRODUCT_AAPT_PREBUILT_DPI := xxxhdpi xxhdpi xhdpi hdpi 20 21 PRODUCT_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. 26 ifdef DEVICE_PACKAGE_OVERLAYS 27 $(warning Overlays defined in '$(DEVICE_PACKAGE_OVERLAYS)' will override '$(PRODUCT_HARDWARE)' overlays) 28 endif 29 DEVICE_PACKAGE_OVERLAYS += device/google/taimen/overlay 30 31 # Audio 32 PRODUCT_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 36 include device/google/wahoo/device.mk 37 38 PRODUCT_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 42 PRODUCT_PROPERTY_OVERRIDES += \ 43 ro.sf.lcd_density=560 \ 44 45 # Kernel Modules Config 46 PRODUCT_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 51 PRODUCT_COPY_FILES += \ 52 device/google/taimen/init.logging.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.$(PRODUCT_HARDWARE).logging.rc 53 54 55 PRODUCT_COPY_FILES += \ 56 device/google/taimen/nfc/libnfc-nxp.taimen.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libnfc-nxp.conf 57 58 PRODUCT_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 63 PRODUCT_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 68 PRODUCT_PROPERTY_OVERRIDES += audio.adm.buffering.ms=3 69 PRODUCT_PROPERTY_OVERRIDES += vendor.audio.adm.buffering.ms=3 70 PRODUCT_PROPERTY_OVERRIDES += audio_hal.period_multiplier=2 71 PRODUCT_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. 74 PRODUCT_SYSTEM_DEFAULT_PROPERTIES += esim.enable_esim_system_ui_by_default=false 75 76 # Pro audio feature 77 PRODUCT_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. 84 PRODUCT_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. 88 PRODUCT_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. 95 PRODUCT_PROPERTY_OVERRIDES += aaudio.hw_burst_min_usec=2000 96 97 # Wifi configuration file 98 PRODUCT_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 102 PRODUCT_COPY_FILES += \ 103 device/google/taimen/touchscreen.idc:$(TARGET_COPY_OUT_VENDOR)/usr/idc/touchscreen.idc 104 105 # Keymaster configuration 106 PRODUCT_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 110 ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT))) 111 PRODUCT_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_" 117 endif 118 119 #IMU calibration 120 PRODUCT_PROPERTY_OVERRIDES += \ 121 persist.config.calibration_fac=/persist/sensors/calibration/calibration.xml 122 123 # Vibrator HAL 124 PRODUCT_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 130 PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \ 131 persist.traced.enable=1 132 133 # Early phase offset for SurfaceFlinger (b/75985430) 134 PRODUCT_PROPERTY_OVERRIDES += \ 135 debug.sf.early_phase_offset_ns=5000000 136 137