2017-02-06 16:06:08 -08:00
|
|
|
#
|
|
|
|
|
# Copyright 2017 The Android Open Source Project
|
|
|
|
|
#
|
|
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
|
# you may not use this file except in compliance with the License.
|
|
|
|
|
# You may obtain a copy of the License at
|
|
|
|
|
#
|
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
#
|
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
|
# limitations under the License.
|
|
|
|
|
#
|
|
|
|
|
|
2019-04-08 18:27:02 +08:00
|
|
|
# Installs gsi keys into ramdisk, to boot a GSI with verified boot.
|
|
|
|
|
$(call inherit-product, $(SRC_TARGET_DIR)/product/gsi_keys.mk)
|
|
|
|
|
|
2017-02-06 16:06:08 -08:00
|
|
|
PRODUCT_AAPT_CONFIG := normal
|
|
|
|
|
PRODUCT_AAPT_PREF_CONFIG := 560dpi
|
|
|
|
|
PRODUCT_AAPT_PREBUILT_DPI := xxxhdpi xxhdpi xhdpi hdpi
|
|
|
|
|
|
|
|
|
|
PRODUCT_HARDWARE := taimen
|
|
|
|
|
|
2017-04-24 23:04:36 -07:00
|
|
|
# DEVICE_PACKAGE_OVERLAYS for the device should be before
|
|
|
|
|
# including common overlays since the one listed first
|
|
|
|
|
# takes precedence.
|
|
|
|
|
ifdef DEVICE_PACKAGE_OVERLAYS
|
|
|
|
|
$(warning Overlays defined in '$(DEVICE_PACKAGE_OVERLAYS)' will override '$(PRODUCT_HARDWARE)' overlays)
|
|
|
|
|
endif
|
|
|
|
|
DEVICE_PACKAGE_OVERLAYS += device/google/taimen/overlay
|
|
|
|
|
|
2017-05-25 19:44:03 +09:00
|
|
|
# Audio
|
|
|
|
|
PRODUCT_COPY_FILES += \
|
|
|
|
|
device/google/taimen/default_volume_tables.xml:$(TARGET_COPY_OUT_VENDOR)/etc/default_volume_tables.xml \
|
|
|
|
|
device/google/taimen/audio_policy_volumes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_volumes.xml
|
|
|
|
|
|
2017-03-04 13:02:35 -08:00
|
|
|
include device/google/wahoo/device.mk
|
|
|
|
|
|
2017-03-08 17:59:32 -08:00
|
|
|
PRODUCT_COPY_FILES += \
|
2017-05-10 19:03:01 +08:00
|
|
|
device/google/taimen/init-taimen.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/init-$(PRODUCT_HARDWARE).rc \
|
2017-05-18 14:11:22 -07:00
|
|
|
device/google/taimen/init.taimen.usb.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.$(PRODUCT_HARDWARE).usb.rc
|
2017-03-08 17:59:32 -08:00
|
|
|
|
2017-02-06 16:06:08 -08:00
|
|
|
PRODUCT_PROPERTY_OVERRIDES += \
|
|
|
|
|
ro.sf.lcd_density=560 \
|
|
|
|
|
|
2017-05-03 07:20:10 +09:00
|
|
|
# Kernel Modules Config
|
|
|
|
|
PRODUCT_COPY_FILES += \
|
2017-10-04 10:07:22 -07:00
|
|
|
device/google/taimen/init.insmod.cfg:$(TARGET_COPY_OUT_VENDOR)/etc/init.insmod.cfg \
|
|
|
|
|
device/google/taimen/init.insmod_charger.cfg:$(TARGET_COPY_OUT_VENDOR)/etc/init.insmod_charger.cfg
|
2017-05-03 07:20:10 +09:00
|
|
|
|
2017-03-14 15:44:18 -07:00
|
|
|
# Logging
|
|
|
|
|
PRODUCT_COPY_FILES += \
|
2017-05-10 19:03:01 +08:00
|
|
|
device/google/taimen/init.logging.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.$(PRODUCT_HARDWARE).logging.rc
|
2017-03-14 15:44:18 -07:00
|
|
|
|
|
|
|
|
|
2017-03-27 14:13:50 -07:00
|
|
|
PRODUCT_COPY_FILES += \
|
|
|
|
|
device/google/taimen/nfc/libnfc-nxp.taimen.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libnfc-nxp.conf
|
|
|
|
|
|
2019-05-04 21:43:56 +08:00
|
|
|
PRODUCT_COPY_FILES += \
|
|
|
|
|
device/google/taimen/powerhint.json:$(TARGET_COPY_OUT_VENDOR)/etc/powerhint.json
|
|
|
|
|
|
2017-04-06 13:43:54 -07:00
|
|
|
PRODUCT_COPY_FILES += \
|
2017-04-21 11:08:23 -07:00
|
|
|
device/google/taimen/thermal-engine.conf:$(TARGET_COPY_OUT_VENDOR)/etc/thermal-engine.conf \
|
2017-07-25 10:26:50 -07:00
|
|
|
device/google/taimen/thermal-engine-vr.conf:$(TARGET_COPY_OUT_VENDOR)/etc/thermal-engine-vr.conf
|
2017-04-28 11:29:17 -07:00
|
|
|
|
2018-11-28 14:57:52 -08:00
|
|
|
# Thermal HAL
|
|
|
|
|
PRODUCT_COPY_FILES += \
|
|
|
|
|
device/google/taimen/thermal_info_config.json:$(TARGET_COPY_OUT_VENDOR)/etc/thermal_info_config.json \
|
|
|
|
|
device/google/taimen/thermal_info_config_evt.json:$(TARGET_COPY_OUT_VENDOR)/etc/thermal_info_config_evt.json
|
|
|
|
|
|
2017-04-26 23:14:14 +09:00
|
|
|
# Audio
|
|
|
|
|
PRODUCT_COPY_FILES += \
|
2017-05-24 09:33:25 -07:00
|
|
|
device/google/taimen/mixer_paths_tavil.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_tavil_taimen.xml \
|
|
|
|
|
device/google/taimen/audio_platform_info_tavil.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_tavil_taimen.xml
|
2017-04-26 23:14:14 +09:00
|
|
|
|
2017-06-20 15:45:15 -07:00
|
|
|
# Bug 62375603
|
2017-07-13 12:36:44 -07:00
|
|
|
PRODUCT_PROPERTY_OVERRIDES += audio.adm.buffering.ms=3
|
2017-07-20 02:45:30 -07:00
|
|
|
PRODUCT_PROPERTY_OVERRIDES += vendor.audio.adm.buffering.ms=3
|
2017-07-13 12:36:44 -07:00
|
|
|
PRODUCT_PROPERTY_OVERRIDES += audio_hal.period_multiplier=2
|
|
|
|
|
PRODUCT_PROPERTY_OVERRIDES += af.fast_track_multiplier=1
|
2017-06-20 15:45:15 -07:00
|
|
|
|
2018-04-11 11:07:07 -07:00
|
|
|
# Whether by default, the eSIM system UI, including that in SUW and Settings, will be shown.
|
|
|
|
|
PRODUCT_SYSTEM_DEFAULT_PROPERTIES += esim.enable_esim_system_ui_by_default=false
|
|
|
|
|
|
2017-07-17 14:57:55 -07:00
|
|
|
# Pro audio feature
|
|
|
|
|
PRODUCT_COPY_FILES += \
|
|
|
|
|
frameworks/native/data/etc/android.hardware.audio.pro.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.audio.pro.xml
|
|
|
|
|
|
2017-07-07 14:14:19 -07:00
|
|
|
# Enable AAudio MMAP/NOIRQ data path.
|
2017-08-09 14:13:36 -07:00
|
|
|
# 1 is AAUDIO_POLICY_NEVER means only use Legacy path.
|
|
|
|
|
# 2 is AAUDIO_POLICY_AUTO means try MMAP then fallback to Legacy path.
|
|
|
|
|
# 3 is AAUDIO_POLICY_ALWAYS means only use MMAP path.
|
2017-08-23 12:22:42 -07:00
|
|
|
PRODUCT_PROPERTY_OVERRIDES += aaudio.mmap_policy=2
|
2017-08-09 14:13:36 -07:00
|
|
|
# 1 is AAUDIO_POLICY_NEVER means only use SHARED mode
|
|
|
|
|
# 2 is AAUDIO_POLICY_AUTO means try EXCLUSIVE then fallback to SHARED mode.
|
|
|
|
|
# 3 is AAUDIO_POLICY_ALWAYS means only use EXCLUSIVE mode.
|
2017-08-23 12:22:42 -07:00
|
|
|
PRODUCT_PROPERTY_OVERRIDES += aaudio.mmap_exclusive_policy=2
|
2017-07-07 14:14:19 -07:00
|
|
|
|
2017-07-24 12:22:03 -07:00
|
|
|
# Increase the apparent size of a hardware burst from 1 msec to 2 msec.
|
|
|
|
|
# A "burst" is the number of frames processed at one time.
|
|
|
|
|
# That is an increase from 48 to 96 frames at 48000 Hz.
|
|
|
|
|
# The DSP will still be bursting at 48 frames but AAudio will think the burst is 96 frames.
|
|
|
|
|
# A low number, like 48, might increase power consumption or stress the system.
|
|
|
|
|
PRODUCT_PROPERTY_OVERRIDES += aaudio.hw_burst_min_usec=2000
|
|
|
|
|
|
2017-05-11 14:01:38 -07:00
|
|
|
# Wifi configuration file
|
|
|
|
|
PRODUCT_COPY_FILES += \
|
2017-05-22 10:09:59 -07:00
|
|
|
device/google/taimen/WCNSS_qcom_cfg.ini:$(TARGET_COPY_OUT_VENDOR)/firmware/wlan/qca_cld/WCNSS_qcom_cfg.ini
|
2017-05-11 14:01:38 -07:00
|
|
|
|
2017-07-11 14:43:12 +01:00
|
|
|
# touchscreen configuration
|
|
|
|
|
PRODUCT_COPY_FILES += \
|
|
|
|
|
device/google/taimen/touchscreen.idc:$(TARGET_COPY_OUT_VENDOR)/usr/idc/touchscreen.idc
|
|
|
|
|
|
2018-03-27 19:36:19 +01:00
|
|
|
# Keymaster configuration
|
|
|
|
|
PRODUCT_COPY_FILES += \
|
|
|
|
|
frameworks/native/data/etc/android.software.device_id_attestation.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.device_id_attestation.xml
|
|
|
|
|
|
2017-05-10 10:10:06 -07:00
|
|
|
# Enable modem logging
|
|
|
|
|
ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
|
|
|
|
|
PRODUCT_PROPERTY_OVERRIDES += \
|
2017-07-26 19:17:52 -07:00
|
|
|
persist.sys.modem.diag.qdb=0\
|
2017-05-10 10:10:06 -07:00
|
|
|
persist.sys.modem.diag.mdlog=true \
|
2017-08-16 11:56:14 -07:00
|
|
|
persist.sys.modem.diag.mdlog_br_num=5 \
|
2017-05-10 10:10:06 -07:00
|
|
|
ro.radio.log_loc="/data/vendor/modem_dump" \
|
|
|
|
|
ro.radio.log_prefix="modem_log_"
|
|
|
|
|
endif
|
|
|
|
|
|
2017-05-11 17:27:01 -07:00
|
|
|
#IMU calibration
|
|
|
|
|
PRODUCT_PROPERTY_OVERRIDES += \
|
|
|
|
|
persist.config.calibration_fac=/persist/sensors/calibration/calibration.xml
|
2017-05-31 13:18:36 -07:00
|
|
|
|
|
|
|
|
# Vibrator HAL
|
|
|
|
|
PRODUCT_PROPERTY_OVERRIDES += \
|
2017-05-31 20:20:19 -07:00
|
|
|
ro.vibrator.hal.click.duration=10 \
|
2018-04-17 10:27:26 -07:00
|
|
|
ro.vibrator.hal.tick.duration=4 \
|
|
|
|
|
ro.vibrator.hal.heavyclick.duration=12
|
2017-06-19 17:23:00 -07:00
|
|
|
|
2019-04-03 13:30:55 +00:00
|
|
|
# Enable Perfetto traced
|
2018-02-27 14:59:43 +09:00
|
|
|
PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \
|
2019-04-03 13:30:55 +00:00
|
|
|
persist.traced.enable=1
|
2018-01-26 17:56:06 +00:00
|
|
|
|
2018-04-04 17:27:54 +02:00
|
|
|
# Early phase offset for SurfaceFlinger (b/75985430)
|
|
|
|
|
PRODUCT_PROPERTY_OVERRIDES += \
|
2019-03-14 17:16:52 -07:00
|
|
|
debug.sf.early_phase_offset_ns=1500000
|
2018-06-21 00:23:51 +02:00
|
|
|
PRODUCT_PROPERTY_OVERRIDES += \
|
2019-03-14 17:16:52 -07:00
|
|
|
debug.sf.early_app_phase_offset_ns=500000
|
|
|
|
|
PRODUCT_PROPERTY_OVERRIDES += \
|
|
|
|
|
debug.sf.early_gl_phase_offset_ns=1500000
|
|
|
|
|
PRODUCT_PROPERTY_OVERRIDES += \
|
2019-05-04 21:43:56 +08:00
|
|
|
debug.sf.early_gl_app_phase_offset_ns=15000000
|