mirror of
https://github.com/AetherDroid/android_device_samsung_universal7570-common.git
synced 2025-09-03 06:57:46 -04:00
265 lines
10 KiB
Makefile
265 lines
10 KiB
Makefile
#
|
|
# Copyright (C) 2021 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.
|
|
#
|
|
|
|
LOCAL_PATH := device/samsung/universal7570-common
|
|
|
|
# Boot animation
|
|
TARGET_BOOTANIMATION_PRELOAD := true
|
|
TARGET_BOOTANIMATION_TEXTURE_CACHE := true
|
|
|
|
PRODUCT_ENFORCE_RRO_TARGETS := \
|
|
framework-res
|
|
|
|
# Permissions
|
|
PRODUCT_COPY_FILES += \
|
|
$(LOCAL_PATH)/configs/permissions/android.hardware.bluetooth.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth.xml \
|
|
$(LOCAL_PATH)/configs/permissions/android.hardware.bluetooth_le.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth_le.xml \
|
|
$(LOCAL_PATH)/configs/permissions/android.hardware.camera.flash-autofocus.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.flash \
|
|
$(LOCAL_PATH)/configs/permissions/android.hardware.camera.front.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.front.xml \
|
|
$(LOCAL_PATH)/configs/permissions/android.hardware.camera.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.xml \
|
|
$(LOCAL_PATH)/configs/permissions/android.hardware.location.gps.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.location.gps.xml \
|
|
$(LOCAL_PATH)/configs/permissions/android.hardware.sensor.accelerometer.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.accelerometer.xml \
|
|
$(LOCAL_PATH)/configs/permissions/android.hardware.sensor.proximity.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.proximity.xml \
|
|
$(LOCAL_PATH)/configs/permissions/android.hardware.telephony.gsm.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.telephony.gsm.xml \
|
|
$(LOCAL_PATH)/configs/permissions/android.hardware.telephony.ims.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.telephony.ims.xml \
|
|
$(LOCAL_PATH)/configs/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml \
|
|
$(LOCAL_PATH)/configs/permissions/android.hardware.usb.accessory.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.usb.accessory.xml \
|
|
$(LOCAL_PATH)/configs/permissions/android.hardware.usb.host.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.usb.host.xml \
|
|
$(LOCAL_PATH)/configs/permissions/android.hardware.wifi.direct.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.direct.xml \
|
|
$(LOCAL_PATH)/configs/permissions/android.hardware.wifi.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.xml \
|
|
$(LOCAL_PATH)/configs/permissions/android.software.ipsec_tunnels.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.ipsec_tunnels.xml \
|
|
$(LOCAL_PATH)/configs/permissions/android.software.midi.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.midi.xml \
|
|
$(LOCAL_PATH)/configs/permissions/handheld_core_hardware.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/handheld_core_hardware.xml \
|
|
$(LOCAL_PATH)/configs/permissions/com.samsung.permission.SSENSOR.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.samsung.permission.SSENSOR.xml
|
|
|
|
# Audio
|
|
PRODUCT_PACKAGES += \
|
|
android.hardware.audio@2.0-service \
|
|
android.hardware.audio@5.0-impl \
|
|
android.hardware.audio.effect@5.0-impl \
|
|
android.hardware.soundtrigger@2.2-impl \
|
|
audio.a2dp.default \
|
|
audio.usb.default \
|
|
audio.r_submix.default \
|
|
libtinycompress
|
|
|
|
# Audio configuration
|
|
PRODUCT_COPY_FILES += \
|
|
$(LOCAL_PATH)/configs/audio/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration.xml \
|
|
$(LOCAL_PATH)/configs/audio/audio_effects.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.xml \
|
|
$(LOCAL_PATH)/configs/audio/a2dp_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/a2dp_audio_policy_configuration.xml \
|
|
frameworks/av/services/audiopolicy/config/audio_policy_volumes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_volumes.xml \
|
|
$(LOCAL_PATH)/configs/audio/default_volume_tables.xml:$(TARGET_COPY_OUT_VENDOR)/etc/default_volume_tables.xml \
|
|
frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/r_submix_audio_policy_configuration.xml \
|
|
$(LOCAL_PATH)/configs/audio/usb_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/usb_audio_policy_configuration.xml
|
|
|
|
# Camera
|
|
PRODUCT_PACKAGES += \
|
|
android.hardware.camera.common@1.0-helper \
|
|
android.hardware.camera.provider@2.5-impl \
|
|
android.hardware.camera.provider@2.5-service \
|
|
libion_exynos \
|
|
Snap
|
|
|
|
# Camera configurations
|
|
PRODUCT_COPY_FILES += \
|
|
$(LOCAL_PATH)/configs/camera/external_camera_config.xml:$(TARGET_COPY_OUT_VENDOR)/etc/external_camera_config.xml
|
|
|
|
# Cas
|
|
PRODUCT_PACKAGES += \
|
|
android.hardware.cas@1.1-service
|
|
|
|
# Display
|
|
PRODUCT_PACKAGES += \
|
|
android.hardware.graphics.allocator@2.0-impl \
|
|
android.hardware.graphics.allocator@2.0-service \
|
|
android.hardware.graphics.composer@2.1-impl \
|
|
android.hardware.graphics.composer@2.2-service \
|
|
android.hardware.graphics.mapper@2.0-impl \
|
|
android.hardware.memtrack@1.0-impl \
|
|
android.hardware.memtrack@1.0-service \
|
|
android.hardware.renderscript@1.0-impl \
|
|
gralloc.default \
|
|
libhwc2on1adapter \
|
|
libhwc2onfbadapter \
|
|
libtinyxml
|
|
|
|
# DRM
|
|
PRODUCT_PACKAGES += \
|
|
android.hardware.drm@1.0-impl \
|
|
android.hardware.drm@1.0-service \
|
|
android.hardware.drm@1.2-service.clearkey
|
|
|
|
# Flat device tree for boot image
|
|
PRODUCT_HOST_PACKAGES += \
|
|
dtbhtoolExynos
|
|
|
|
# FlipFlap
|
|
PRODUCT_PACKAGES += \
|
|
FlipFlap
|
|
|
|
# Gatekeeper
|
|
PRODUCT_PACKAGES += \
|
|
android.hardware.gatekeeper@1.0-impl
|
|
|
|
# Healthd
|
|
PRODUCT_PACKAGES += \
|
|
android.hardware.health@2.0-impl \
|
|
android.hardware.health@2.0-service \
|
|
chargeonlymode
|
|
|
|
# HIDL
|
|
PRODUCT_PACKAGES += \
|
|
android.hidl.base@1.0 \
|
|
android.hidl.base@1.0.vendor
|
|
|
|
# Keymaster
|
|
PRODUCT_PACKAGES += \
|
|
android.hardware.keymaster@4.0-impl \
|
|
android.hardware.keymaster@4.0-service
|
|
|
|
# Lights
|
|
PRODUCT_PACKAGES += \
|
|
android.hardware.light@2.0-service.samsung
|
|
|
|
# LiveDisplay
|
|
PRODUCT_PACKAGES += \
|
|
vendor.lineage.livedisplay@2.0-service.samsung-exynos
|
|
|
|
# IPv6
|
|
PRODUCT_PACKAGES += \
|
|
ebtables \
|
|
ethertypes \
|
|
libebtc
|
|
|
|
# Media
|
|
PRODUCT_COPY_FILES += \
|
|
$(LOCAL_PATH)/configs/media/media_codecs.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs.xml \
|
|
$(LOCAL_PATH)/configs/media/media_codecs_performance.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_performance.xml \
|
|
$(LOCAL_PATH)/configs/media/media_profiles_V1_0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_V1_0.xml \
|
|
$(LOCAL_PATH)/configs/media/media_codecs_google_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_audio.xml \
|
|
$(LOCAL_PATH)/configs/media/media_codecs_google_telephony.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_telephony.xml \
|
|
$(LOCAL_PATH)/configs/media/media_codecs_google_video.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_video.xml \
|
|
frameworks/av/media/libstagefright/data/media_codecs_google_video_le.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_video_le.xml
|
|
|
|
# Net
|
|
PRODUCT_PACKAGES += \
|
|
android.system.net.netd@1.0 \
|
|
libandroid_net \
|
|
netutils-wrapper-1.0
|
|
|
|
# Offmode charger
|
|
PRODUCT_PACKAGES += \
|
|
charger_res_images \
|
|
lineage_charger_res_image
|
|
|
|
# Overlays
|
|
DEVICE_PACKAGE_OVERLAYS += \
|
|
$(LOCAL_PATH)/overlay
|
|
|
|
# Power
|
|
PRODUCT_PACKAGES += \
|
|
android.hardware.power@1.0-service.exynos
|
|
|
|
# Radio
|
|
PRODUCT_PACKAGES += \
|
|
android.hardware.radio@1.4 \
|
|
android.hardware.radio.config@1.2 \
|
|
libxml2
|
|
|
|
# Ramdisk
|
|
PRODUCT_PACKAGES += \
|
|
fstab.samsungexynos7570 \
|
|
init.baseband.rc \
|
|
init.samsungexynos7570.rc \
|
|
init.samsungexynos7570.usb.rc \
|
|
init.vendor.rilchip.rc \
|
|
init.vendor.rilcommon.rc \
|
|
init.vendor.onebinary.rc \
|
|
wifi.rc \
|
|
ueventd.rc
|
|
|
|
# Recorder
|
|
PRODUCT_PACKAGES += \
|
|
Recorder
|
|
|
|
# Samsung Doze
|
|
PRODUCT_PACKAGES += \
|
|
SamsungDoze
|
|
|
|
# Seccomp_policy
|
|
PRODUCT_COPY_FILES += \
|
|
$(LOCAL_PATH)/seccomp/crash_dump.arm.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/crash_dump.arm.policy \
|
|
$(LOCAL_PATH)/seccomp/mediacodec.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/mediacodec.policy \
|
|
$(LOCAL_PATH)/seccomp/mediaextractor.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/mediacodec.policy \
|
|
$(LOCAL_PATH)/seccomp/mediaextractor_sec.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/mediaextractor_sec.policy \
|
|
$(LOCAL_PATH)/seccomp/mediaswcodec.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/mediaswcodec.policy
|
|
|
|
|
|
# Sensors
|
|
PRODUCT_PACKAGES += \
|
|
android.hardware.sensors@1.0-impl.samsung \
|
|
android.hardware.sensors@1.0-service
|
|
|
|
# Thermal
|
|
PRODUCT_PACKAGES += \
|
|
android.hardware.thermal@2.0-service.samsung
|
|
|
|
# Touchscreen
|
|
PRODUCT_COPY_FILES += \
|
|
$(LOCAL_PATH)/configs/idc/AVRCP.idc:$(TARGET_COPY_OUT_VENDOR)/usr/idc/AVRCP.idc \
|
|
$(LOCAL_PATH)/configs/idc/qwerty.idc:$(TARGET_COPY_OUT_VENDOR)/usr/idc/qwerty.idc \
|
|
$(LOCAL_PATH)/configs/idc/qwerty2.idc:$(TARGET_COPY_OUT_VENDOR)/usr/idc/qwerty2.idc
|
|
|
|
# Touch features
|
|
PRODUCT_PACKAGES += \
|
|
vendor.lineage.touch@1.0-service.samsung
|
|
|
|
# Trust HAL
|
|
PRODUCT_PACKAGES += \
|
|
vendor.lineage.trust@1.0-service
|
|
|
|
# Shims
|
|
PRODUCT_PACKAGES += \
|
|
libexynoscamera_shim \
|
|
libstagefright_shim
|
|
|
|
# USB
|
|
PRODUCT_PACKAGES += \
|
|
android.hardware.usb@1.0-service.basic
|
|
|
|
# Vibrator
|
|
PRODUCT_PACKAGES += \
|
|
android.hardware.vibrator@1.0-impl \
|
|
android.hardware.vibrator@1.0-service
|
|
|
|
# VNDK
|
|
PRODUCT_PACKAGES += \
|
|
libgui_vendor
|
|
|
|
# Wifi
|
|
PRODUCT_PACKAGES += \
|
|
macloader
|
|
|
|
# WiFi Display
|
|
PRODUCT_PACKAGES += \
|
|
libnl
|
|
|
|
# Properties
|
|
-include $(LOCAL_PATH)/vendor_prop.mk
|
|
|
|
# call the proprietary setup
|
|
$(call inherit-product, vendor/samsung/universal7570-common/universal7570-common-vendor.mk)
|