2022-02-15 16:35:31 +01:00
|
|
|
#
|
|
|
|
|
# Copyright (C) 2022 The LineageOS 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.
|
2022-02-15 16:45:00 +01:00
|
|
|
#
|
|
|
|
|
|
2022-02-15 16:45:31 +01:00
|
|
|
# Boot animation
|
|
|
|
|
TARGET_SCREEN_HEIGHT := 2400
|
|
|
|
|
TARGET_SCREEN_WIDTH := 1080
|
|
|
|
|
|
2022-02-18 01:36:25 +01:00
|
|
|
# Screen
|
|
|
|
|
TARGET_SCREEN_DENSITY := 400
|
|
|
|
|
|
2022-02-18 21:23:41 +01:00
|
|
|
# AAPT
|
|
|
|
|
PRODUCT_AAPT_CONFIG := normal
|
|
|
|
|
PRODUCT_AAPT_PREF_CONFIG := 400dpi
|
|
|
|
|
PRODUCT_AAPT_PREBUILT_DPI := xxxhdpi xxhdpi xhdpi hdpi
|
|
|
|
|
|
2023-06-28 17:38:36 +02:00
|
|
|
BOARD_SHIPPING_API_LEVEL := 33
|
|
|
|
|
BOARD_API_LEVEL := 33
|
|
|
|
|
PRODUCT_SHIPPING_API_LEVEL := 33
|
2022-02-15 18:31:18 +01:00
|
|
|
|
2023-07-29 19:10:12 +02:00
|
|
|
# Characteristics
|
|
|
|
|
PRODUCT_CHARACTERISTICS := nosdcard
|
|
|
|
|
|
2023-06-28 17:38:36 +02:00
|
|
|
# Inherit from motorola sm8550-common
|
2023-04-17 22:00:04 -06:00
|
|
|
$(call inherit-product, device/motorola/sm8550-common/common.mk)
|
2022-02-15 18:31:18 +01:00
|
|
|
|
2022-02-19 00:54:07 +01:00
|
|
|
# Overlay
|
|
|
|
|
PRODUCT_PACKAGES += \
|
2022-10-31 21:59:52 +01:00
|
|
|
ApertureResRtwo \
|
2023-06-28 17:38:36 +02:00
|
|
|
FrameworksResRtwo \
|
|
|
|
|
LineageSystemUIRtwo \
|
2020-05-12 23:50:50 -05:00
|
|
|
ProductFrameworksResRtwo \
|
2023-06-28 17:38:36 +02:00
|
|
|
SettingsProviderResRtwo \
|
2023-10-30 00:23:27 +09:00
|
|
|
SettingsResRtwo \
|
2023-06-28 17:38:36 +02:00
|
|
|
SystemUIResRtwo
|
2022-02-19 00:54:07 +01:00
|
|
|
|
2022-02-15 19:08:49 +01:00
|
|
|
# Audio
|
|
|
|
|
PRODUCT_COPY_FILES += \
|
2023-06-28 17:38:36 +02:00
|
|
|
$(LOCAL_PATH)/audio/sku_kalama/audio_effects.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_kalama/audio_effects.xml \
|
|
|
|
|
$(LOCAL_PATH)/audio/sku_kalama/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_kalama/audio_policy_configuration.xml \
|
|
|
|
|
$(LOCAL_PATH)/audio/sku_kalama/mixer_paths_kalama_mtp_wsa883x.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_kalama/mixer_paths_kalama_mtp_wsa883x.xml \
|
|
|
|
|
$(LOCAL_PATH)/audio/sku_kalama/mixer_paths_kalama_mtp_wsa883x_nohdr.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_kalama/mixer_paths_kalama_mtp_wsa883x_nohdr.xml \
|
|
|
|
|
$(LOCAL_PATH)/audio/sku_kalama/resourcemanager_kalama_mtp.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_kalama/resourcemanager_kalama_mtp.xml \
|
|
|
|
|
$(LOCAL_PATH)/audio/sku_kalama_qssi/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_kalama_qssi/audio_policy_configuration.xml \
|
2022-08-03 21:26:21 -06:00
|
|
|
$(LOCAL_PATH)/audio/audio_policy_volumes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_volumes.xml \
|
|
|
|
|
$(LOCAL_PATH)/audio/audio_effects.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.xml \
|
|
|
|
|
$(LOCAL_PATH)/audio/audio_ext_spkr.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_ext_spkr.conf \
|
2022-10-24 16:53:41 +02:00
|
|
|
$(LOCAL_PATH)/audio/card-defs.xml:$(TARGET_COPY_OUT_VENDOR)/etc/card-defs.xml \
|
|
|
|
|
$(LOCAL_PATH)/audio/default_volume_tables.xml:$(TARGET_COPY_OUT_VENDOR)/etc/default_volume_tables.xml \
|
|
|
|
|
$(LOCAL_PATH)/audio/microphone_characteristics.xml:$(TARGET_COPY_OUT_VENDOR)/etc/microphone_characteristics.xml \
|
2023-06-29 14:57:23 +02:00
|
|
|
$(LOCAL_PATH)/audio/usecaseKvManager.xml:$(TARGET_COPY_OUT_VENDOR)/etc/usecaseKvManager.xml \
|
|
|
|
|
$(LOCAL_PATH)/audio/usecaseKvManager_prc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/usecaseKvManager_prc.xml \
|
|
|
|
|
$(LOCAL_PATH)/audio/usecaseKvManager_tmo.xml:$(TARGET_COPY_OUT_VENDOR)/etc/usecaseKvManager_tmo.xml
|
2022-02-15 18:31:18 +01:00
|
|
|
|
2023-07-05 23:18:48 +02:00
|
|
|
# Fingerprint
|
|
|
|
|
PRODUCT_PACKAGES += \
|
|
|
|
|
android.hardware.biometrics.fingerprint@2.3-service.rtwo
|
|
|
|
|
|
2022-02-17 10:22:49 +01:00
|
|
|
# Init
|
2022-02-20 11:54:19 +01:00
|
|
|
$(foreach f,$(wildcard $(LOCAL_PATH)/rootdir/etc/init/hw/*.rc),\
|
2022-02-17 10:22:49 +01:00
|
|
|
$(eval PRODUCT_COPY_FILES += $(f):$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/$(notdir $f)))
|
2022-02-20 11:54:19 +01:00
|
|
|
$(foreach f,$(wildcard $(LOCAL_PATH)/rootdir/etc/init/*.rc),\
|
2022-02-17 10:22:49 +01:00
|
|
|
$(eval PRODUCT_COPY_FILES += $(f):$(TARGET_COPY_OUT_VENDOR)/etc/init/$(notdir $f)))
|
2022-02-20 11:54:19 +01:00
|
|
|
$(foreach f,$(wildcard $(LOCAL_PATH)/rootdir/bin/*.sh),\
|
2022-02-17 10:22:49 +01:00
|
|
|
$(eval PRODUCT_COPY_FILES += $(f):$(TARGET_COPY_OUT_VENDOR)/bin/$(notdir $f)))
|
|
|
|
|
|
2023-06-29 14:57:23 +02:00
|
|
|
# Keylayout
|
|
|
|
|
PRODUCT_COPY_FILES += \
|
2023-06-29 22:28:55 +02:00
|
|
|
$(LOCAL_PATH)/keylayout/goodix_ts.kl:$(TARGET_COPY_OUT_VENDOR)/usr/keylayout/goodix_ts.kl
|
2023-06-29 14:57:23 +02:00
|
|
|
|
2022-02-15 19:19:00 +01:00
|
|
|
# Media
|
|
|
|
|
PRODUCT_COPY_FILES += \
|
2023-06-28 17:38:36 +02:00
|
|
|
$(LOCAL_PATH)/media/media_profiles_kalama.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_kalama.xml
|
2022-02-15 19:19:00 +01:00
|
|
|
|
2022-02-16 21:05:41 +01:00
|
|
|
# NFC
|
|
|
|
|
PRODUCT_PACKAGES += \
|
2022-02-17 23:34:57 +01:00
|
|
|
android.hardware.nfc@1.2.vendor \
|
|
|
|
|
android.hardware.secure_element@1.2.vendor \
|
2022-03-26 17:31:45 +01:00
|
|
|
com.android.nfc_extras \
|
|
|
|
|
libchrome.vendor \
|
2023-07-05 00:25:39 +02:00
|
|
|
nqnfcinfo \
|
2023-02-03 18:57:29 +02:00
|
|
|
Tag
|
2022-02-16 21:05:41 +01:00
|
|
|
|
2022-02-15 19:46:51 +01:00
|
|
|
# Permissions
|
2023-02-03 20:50:27 +02:00
|
|
|
PRODUCT_COPY_FILES += \
|
|
|
|
|
frameworks/native/data/etc/android.hardware.nfc.ese.xml:$(TARGET_COPY_OUT_ODM)/etc/permissions/sku_dne/android.hardware.nfc.ese.xml \
|
2018-12-01 13:53:00 -08:00
|
|
|
frameworks/native/data/etc/android.hardware.se.omapi.ese.xml:$(TARGET_COPY_OUT_ODM)/etc/permissions/sku_dne/android.hardware.se.omapi.ese.xml \
|
2023-07-05 00:25:39 +02:00
|
|
|
frameworks/native/data/etc/android.hardware.telephony.euicc.xml:$(TARGET_COPY_OUT_PRODUCT)/etc/permissions/android.hardware.telephony.euicc.xml \
|
|
|
|
|
frameworks/native/data/etc/com.nxp.mifare.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.nxp.mifare.xml
|
2022-02-15 19:46:51 +01:00
|
|
|
|
2021-09-16 13:55:07 +02:00
|
|
|
# PowerShare
|
|
|
|
|
PRODUCT_PACKAGES += \
|
2023-06-28 17:38:36 +02:00
|
|
|
vendor.lineage.powershare@1.0-service.rtwo
|
2021-09-16 13:55:07 +02:00
|
|
|
|
2022-02-19 21:21:49 +02:00
|
|
|
# Sensors
|
2022-09-21 10:06:15 +05:30
|
|
|
PRODUCT_PACKAGES += \
|
2023-06-28 17:38:36 +02:00
|
|
|
sensors.rtwo
|
2022-09-21 10:06:15 +05:30
|
|
|
|
2022-02-19 21:21:49 +02:00
|
|
|
PRODUCT_COPY_FILES += \
|
|
|
|
|
$(LOCAL_PATH)/sensors/hals.conf:$(TARGET_COPY_OUT_VENDOR)/etc/sensors/hals.conf
|
|
|
|
|
|
2023-10-02 14:26:27 -06:00
|
|
|
# Thermal
|
|
|
|
|
PRODUCT_COPY_FILES += \
|
2023-10-02 14:28:58 -06:00
|
|
|
$(LOCAL_PATH)/configs/thermal-engine-rtwo-game-perf.conf:$(TARGET_COPY_OUT_VENDOR)/etc/thermal-engine-rtwo.conf
|
2023-10-02 14:26:27 -06:00
|
|
|
|
2020-08-24 17:11:05 +02:00
|
|
|
# Touch
|
|
|
|
|
PRODUCT_PACKAGES += \
|
2023-06-28 17:38:36 +02:00
|
|
|
vendor.lineage.touch@1.0-service.rtwo
|
2020-08-24 17:11:05 +02:00
|
|
|
|
2018-10-02 13:51:03 +02:00
|
|
|
# Soong namespaces
|
|
|
|
|
PRODUCT_SOONG_NAMESPACES += $(LOCAL_PATH)
|
|
|
|
|
|
2022-02-15 18:31:18 +01:00
|
|
|
# Inherit from vendor blobs
|
2023-06-28 17:38:36 +02:00
|
|
|
$(call inherit-product, vendor/motorola/rtwo/rtwo-vendor.mk)
|