2014-05-19 05:33:07 +02:00
|
|
|
# Copyright (C) 2012 The CyanogenMod Project
|
2021-04-09 16:18:37 +02:00
|
|
|
# Copyright (C) 2017-2021 The LineageOS Project
|
2014-05-19 05:33:07 +02:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2014-07-25 08:04:42 +02:00
|
|
|
# Overlays
|
2018-12-30 01:13:46 +01:00
|
|
|
DEVICE_PACKAGE_OVERLAYS += \
|
|
|
|
device/samsung/msm8974-common/overlay \
|
|
|
|
device/samsung/msm8974-common/overlay-lineage
|
2014-07-25 08:04:42 +02:00
|
|
|
|
2014-05-19 05:33:07 +02:00
|
|
|
# Permissions
|
|
|
|
PRODUCT_COPY_FILES += \
|
2018-08-20 14:30:23 +02:00
|
|
|
frameworks/native/data/etc/android.hardware.bluetooth_le.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth_le.xml \
|
|
|
|
frameworks/native/data/etc/android.hardware.consumerir.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.consumerir.xml \
|
|
|
|
frameworks/native/data/etc/android.hardware.camera.flash-autofocus.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.flash-autofocus.xml \
|
|
|
|
frameworks/native/data/etc/android.hardware.camera.front.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.front.xml \
|
|
|
|
frameworks/native/data/etc/android.hardware.ethernet.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.ethernet.xml \
|
|
|
|
frameworks/native/data/etc/android.hardware.location.gps.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.location.gps.xml \
|
|
|
|
frameworks/native/data/etc/android.hardware.sensor.barometer.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.barometer.xml \
|
|
|
|
frameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.gyroscope.xml \
|
|
|
|
frameworks/native/data/etc/android.hardware.sensor.light.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.light.xml \
|
|
|
|
frameworks/native/data/etc/android.hardware.sensor.proximity.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.proximity.xml \
|
|
|
|
frameworks/native/data/etc/android.hardware.touchscreen.multitouch.jazzhand.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml \
|
|
|
|
frameworks/native/data/etc/android.hardware.usb.accessory.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.usb.accessory.xml \
|
|
|
|
frameworks/native/data/etc/android.hardware.usb.host.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.usb.host.xml \
|
|
|
|
frameworks/native/data/etc/android.hardware.wifi.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.xml \
|
|
|
|
frameworks/native/data/etc/android.hardware.wifi.direct.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.direct.xml \
|
|
|
|
frameworks/native/data/etc/android.software.sip.voip.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.sip.voip.xml
|
2014-07-25 08:04:42 +02:00
|
|
|
|
2018-02-21 21:53:05 +01:00
|
|
|
# Advanced Display
|
|
|
|
PRODUCT_PACKAGES += \
|
|
|
|
AdvancedDisplay
|
|
|
|
|
2019-09-16 17:56:33 +02:00
|
|
|
# APEX
|
|
|
|
PRODUCT_COPY_FILES += \
|
|
|
|
$(LOCAL_PATH)/configs/ld.config.txt:$(TARGET_COPY_OUT_SYSTEM)/etc/swcodec/ld.config.txt
|
|
|
|
|
2014-05-19 05:33:07 +02:00
|
|
|
# Audio
|
|
|
|
PRODUCT_PACKAGES += \
|
2022-11-26 19:30:59 +01:00
|
|
|
android.hardware.audio.service.samsung8974 \
|
2022-11-26 19:45:43 +01:00
|
|
|
android.hardware.audio@7.1-impl:32 \
|
2022-10-01 23:44:16 +02:00
|
|
|
android.hardware.audio.effect@7.0-impl:32 \
|
|
|
|
audio.bluetooth.default \
|
2014-07-25 08:04:42 +02:00
|
|
|
audio.primary.msm8974 \
|
2014-05-19 05:33:07 +02:00
|
|
|
audio.r_submix.default \
|
2014-07-25 08:04:42 +02:00
|
|
|
audio.usb.default \
|
|
|
|
libaudio-resampler \
|
|
|
|
libqcomvisualizer \
|
2014-10-05 12:44:03 +02:00
|
|
|
libqcompostprocbundle \
|
2018-05-14 21:15:24 +02:00
|
|
|
libqcomvoiceprocessing
|
2014-07-25 08:04:42 +02:00
|
|
|
|
2017-12-29 19:55:55 +01:00
|
|
|
# Bluetooth
|
|
|
|
PRODUCT_PACKAGES += \
|
2022-11-26 19:30:59 +01:00
|
|
|
audio.bluetooth.default \
|
|
|
|
android.hardware.bluetooth.audio@2.0-impl \
|
2017-12-29 19:55:55 +01:00
|
|
|
android.hardware.bluetooth@1.0-impl \
|
2018-01-26 12:27:35 +01:00
|
|
|
android.hardware.bluetooth@1.0-service \
|
2017-12-29 19:55:55 +01:00
|
|
|
libbt-vendor
|
|
|
|
|
2016-11-12 23:48:17 +01:00
|
|
|
# Boot animation
|
|
|
|
TARGET_BOOTANIMATION_HALF_RES := true
|
|
|
|
|
2014-07-25 08:04:42 +02:00
|
|
|
# Display
|
2014-05-19 05:33:07 +02:00
|
|
|
PRODUCT_PACKAGES += \
|
2017-10-11 18:10:52 +02:00
|
|
|
android.hardware.graphics.allocator@2.0-impl \
|
2017-11-11 23:59:27 +01:00
|
|
|
android.hardware.graphics.allocator@2.0-service \
|
2020-12-10 12:32:08 +01:00
|
|
|
android.hardware.graphics.composer@2.1-service \
|
2019-02-20 21:45:08 +01:00
|
|
|
android.hardware.graphics.mapper@2.0-impl-2.1 \
|
2017-10-11 18:10:52 +02:00
|
|
|
android.hardware.memtrack@1.0-impl \
|
2018-01-26 12:27:35 +01:00
|
|
|
android.hardware.memtrack@1.0-service \
|
2014-05-19 05:33:07 +02:00
|
|
|
copybit.msm8974 \
|
|
|
|
gralloc.msm8974 \
|
|
|
|
hwcomposer.msm8974 \
|
|
|
|
memtrack.msm8974
|
|
|
|
|
2018-09-15 18:26:23 +02:00
|
|
|
# Camera
|
|
|
|
PRODUCT_PACKAGES += \
|
|
|
|
android.hardware.camera.provider@2.4-impl \
|
|
|
|
camera.device@1.0-impl \
|
|
|
|
camera.msm8974 \
|
2022-10-09 12:19:36 +02:00
|
|
|
libxml2
|
2018-09-15 18:26:23 +02:00
|
|
|
|
2022-10-02 10:41:54 +02:00
|
|
|
# Charger
|
|
|
|
PRODUCT_PACKAGES += \
|
|
|
|
charger_res_images_vendor
|
|
|
|
|
2017-12-29 19:55:55 +01:00
|
|
|
# DRM
|
|
|
|
PRODUCT_PACKAGES += \
|
|
|
|
android.hardware.drm@1.0-impl \
|
|
|
|
android.hardware.drm@1.0-service
|
|
|
|
|
2021-01-06 05:21:20 +01:00
|
|
|
# fastbootd
|
|
|
|
PRODUCT_PACKAGES += \
|
|
|
|
fastbootd
|
|
|
|
|
2019-07-08 18:47:09 +02:00
|
|
|
# Gatekeeper
|
|
|
|
PRODUCT_PACKAGES += \
|
|
|
|
android.hardware.gatekeeper@1.0-service.software
|
|
|
|
|
2017-12-29 19:55:55 +01:00
|
|
|
# GPS
|
|
|
|
PRODUCT_PACKAGES += \
|
2020-05-18 06:29:20 +02:00
|
|
|
android.hardware.gnss@1.0-impl.legacy \
|
|
|
|
android.hardware.gnss@1.0-service.legacy \
|
2018-01-18 12:22:35 +01:00
|
|
|
gps.msm8974
|
|
|
|
|
|
|
|
PRODUCT_COPY_FILES += \
|
|
|
|
$(LOCAL_PATH)/gps/etc/flp.conf:system/etc/flp.conf \
|
|
|
|
$(LOCAL_PATH)/gps/etc/gps.conf:system/etc/gps.conf \
|
|
|
|
$(LOCAL_PATH)/gps/etc/izat.conf:system/etc/izat.conf \
|
|
|
|
$(LOCAL_PATH)/gps/etc/sap.conf:system/etc/sap.conf
|
2017-12-29 19:55:55 +01:00
|
|
|
|
2020-09-29 11:45:23 +02:00
|
|
|
# Health
|
|
|
|
PRODUCT_PACKAGES += \
|
2022-10-02 10:41:54 +02:00
|
|
|
android.hardware.health-service.samsung \
|
|
|
|
android.hardware.health-service.samsung-recovery
|
2020-09-29 11:45:23 +02:00
|
|
|
|
2020-09-22 10:15:09 +02:00
|
|
|
# HIDL
|
|
|
|
PRODUCT_ENFORCE_VINTF_MANIFEST_OVERRIDE := true
|
|
|
|
|
2017-12-29 19:55:55 +01:00
|
|
|
# IR Blaster
|
|
|
|
PRODUCT_PACKAGES += \
|
2020-01-28 15:13:36 +01:00
|
|
|
android.hardware.ir@1.0-service.samsung
|
2017-12-29 19:55:55 +01:00
|
|
|
|
2014-07-25 08:04:42 +02:00
|
|
|
# Keylayouts
|
2014-05-19 05:33:07 +02:00
|
|
|
PRODUCT_COPY_FILES += \
|
2014-07-25 08:04:42 +02:00
|
|
|
device/samsung/msm8974-common/keylayout/Vendor_04e8_Product_7021.kl:system/usr/keylayout/Vendor_04e8_Product_7021.kl
|
2014-05-19 05:33:07 +02:00
|
|
|
|
2017-12-29 19:55:55 +01:00
|
|
|
# Keymaster
|
|
|
|
PRODUCT_PACKAGES += \
|
2022-08-12 04:01:12 +02:00
|
|
|
android.hardware.keymaster@4.1-service
|
2017-12-29 19:55:55 +01:00
|
|
|
|
2022-12-10 20:21:52 +01:00
|
|
|
# libprocessgroup
|
|
|
|
PRODUCT_COPY_FILES += \
|
|
|
|
system/core/libprocessgroup/profiles/cgroups_28.json:$(TARGET_COPY_OUT_VENDOR)/etc/cgroups.json \
|
|
|
|
system/core/libprocessgroup/profiles/task_profiles_28.json:$(TARGET_COPY_OUT_VENDOR)/etc/task_profiles.json
|
|
|
|
|
2020-04-11 00:54:03 +02:00
|
|
|
# Lights
|
|
|
|
PRODUCT_PACKAGES += \
|
2022-08-10 20:23:36 +02:00
|
|
|
android.hardware.light-service.samsung
|
2020-04-11 00:54:03 +02:00
|
|
|
|
2019-02-19 15:40:21 +01:00
|
|
|
# LiveDisplay
|
|
|
|
PRODUCT_PACKAGES += \
|
|
|
|
vendor.lineage.livedisplay@2.0-service.samsung-qcom
|
|
|
|
|
2014-07-25 08:04:42 +02:00
|
|
|
# Media
|
2014-05-19 05:33:07 +02:00
|
|
|
PRODUCT_COPY_FILES += \
|
2018-01-17 18:07:28 +01:00
|
|
|
frameworks/av/media/libstagefright/data/media_codecs_google_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_audio.xml \
|
|
|
|
frameworks/av/media/libstagefright/data/media_codecs_google_telephony.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_telephony.xml \
|
|
|
|
frameworks/av/media/libstagefright/data/media_codecs_google_video.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_video.xml \
|
|
|
|
device/samsung/msm8974-common/configs/media_codecs.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs.xml
|
2014-07-25 08:04:42 +02:00
|
|
|
|
|
|
|
# OMX
|
|
|
|
PRODUCT_PACKAGES += \
|
2015-01-18 02:15:41 +01:00
|
|
|
libc2dcolorconvert \
|
2014-07-25 08:04:42 +02:00
|
|
|
libOmxAacEnc \
|
|
|
|
libOmxAmrEnc \
|
2015-01-18 02:15:41 +01:00
|
|
|
libOmxCore \
|
2014-07-25 08:04:42 +02:00
|
|
|
libOmxEvrcEnc \
|
|
|
|
libOmxQcelp13Enc \
|
2015-01-18 02:15:41 +01:00
|
|
|
libOmxVdec \
|
|
|
|
libOmxVenc \
|
2015-11-30 03:57:13 +01:00
|
|
|
libstagefrighthw
|
2014-07-25 08:04:42 +02:00
|
|
|
|
|
|
|
# Power HAL
|
|
|
|
PRODUCT_PACKAGES += \
|
2022-12-02 21:24:38 +01:00
|
|
|
android.hardware.power-service-qti \
|
|
|
|
android.hardware.power.stats@1.0-service.mock
|
2014-07-25 08:04:42 +02:00
|
|
|
|
2017-12-29 23:58:39 +01:00
|
|
|
# RenderScript HAL
|
|
|
|
PRODUCT_PACKAGES += \
|
|
|
|
android.hardware.renderscript@1.0-impl
|
|
|
|
|
2017-09-14 10:01:28 +02:00
|
|
|
# Seccomp
|
|
|
|
PRODUCT_COPY_FILES += \
|
2019-09-30 14:32:04 +02:00
|
|
|
$(LOCAL_PATH)/seccomp/mediacodec.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/mediacodec.policy
|
2017-09-14 10:01:28 +02:00
|
|
|
|
2017-12-29 19:55:55 +01:00
|
|
|
# Sensors
|
|
|
|
PRODUCT_PACKAGES += \
|
2018-09-21 05:54:42 +02:00
|
|
|
android.hardware.sensors@1.0-impl.samsung8974 \
|
|
|
|
android.hardware.sensors@1.0-service.samsung8974
|
2017-12-29 19:55:55 +01:00
|
|
|
|
2022-11-27 16:28:14 +01:00
|
|
|
# Speed profile services and wifi-service to reduce RAM and storage
|
|
|
|
PRODUCT_SYSTEM_SERVER_COMPILER_FILTER := speed-profile
|
2022-11-27 16:29:24 +01:00
|
|
|
PRODUCT_USE_PROFILE_FOR_BOOT_IMAGE := true
|
|
|
|
PRODUCT_DEX_PREOPT_BOOT_IMAGE_PROFILE_LOCATION := frameworks/base/config/boot-image-profile.txt
|
2022-11-27 16:28:14 +01:00
|
|
|
|
2020-05-26 14:58:17 +02:00
|
|
|
# TimeKeep
|
|
|
|
PRODUCT_PACKAGES += \
|
|
|
|
timekeep \
|
|
|
|
TimeKeep
|
|
|
|
|
2019-01-09 00:47:48 +01:00
|
|
|
# Touch features
|
|
|
|
PRODUCT_PACKAGES += \
|
|
|
|
vendor.lineage.touch@1.0-service.samsung
|
|
|
|
|
2019-01-09 19:02:45 +01:00
|
|
|
# Trust HAL
|
|
|
|
PRODUCT_PACKAGES += \
|
|
|
|
vendor.lineage.trust@1.0-service
|
|
|
|
|
2017-12-29 19:55:55 +01:00
|
|
|
# USB
|
|
|
|
PRODUCT_PACKAGES += \
|
2018-08-16 16:19:28 +02:00
|
|
|
android.hardware.usb@1.0-service.basic
|
2017-12-29 19:55:55 +01:00
|
|
|
|
2020-11-28 15:17:09 +01:00
|
|
|
# VNDK
|
|
|
|
PRODUCT_COPY_FILES += \
|
2020-11-28 23:35:49 +01:00
|
|
|
prebuilts/vndk/v29/arm/arch-arm-armv7-a-neon/shared/vndk-core/libprotobuf-cpp-lite.so:$(TARGET_COPY_OUT_VENDOR)/lib/libprotobuf-cpp-lite-v29.so \
|
|
|
|
prebuilts/vndk/v29/arm/arch-arm-armv7-a-neon/shared/vndk-sp/libcutils.so:$(TARGET_COPY_OUT_VENDOR)/lib/libcutils-v29.so
|
2020-11-28 15:17:09 +01:00
|
|
|
|
2017-12-29 19:55:55 +01:00
|
|
|
# Wifi
|
|
|
|
PRODUCT_PACKAGES += \
|
2019-10-05 00:20:42 +02:00
|
|
|
android.hardware.wifi@1.0-service.legacy \
|
2017-12-29 19:55:55 +01:00
|
|
|
hostapd \
|
|
|
|
wificond \
|
|
|
|
wpa_supplicant \
|
|
|
|
wpa_supplicant.conf
|
|
|
|
|
2017-12-31 16:45:00 +01:00
|
|
|
# Get non-open-source specific aspects
|
2021-04-09 16:18:37 +02:00
|
|
|
$(call inherit-product, vendor/samsung/msm8974-common/msm8974-common-vendor.mk)
|
2017-12-31 16:45:00 +01:00
|
|
|
|
2014-05-19 05:33:07 +02:00
|
|
|
# common msm8974
|
|
|
|
$(call inherit-product, device/samsung/qcom-common/qcom-common.mk)
|