2014-05-19 05:33:07 +02:00
|
|
|
# Copyright (C) 2012 The CyanogenMod Project
|
2017-12-31 16:45:00 +01:00
|
|
|
# Copyright (C) 2017-2018 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
|
|
|
|
DEVICE_PACKAGE_OVERLAYS += device/samsung/msm8974-common/overlay
|
|
|
|
|
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
|
|
|
|
|
|
|
# System properties
|
|
|
|
PRODUCT_PROPERTY_OVERRIDES += \
|
|
|
|
audio.offload.buffer.size.kb=32 \
|
|
|
|
audio.offload.gapless.enabled=false \
|
2014-11-29 07:40:52 +01:00
|
|
|
av.offload.enable=true
|
2014-07-25 08:04:42 +02:00
|
|
|
|
|
|
|
PRODUCT_PROPERTY_OVERRIDES += \
|
|
|
|
ro.opengles.version=196608
|
|
|
|
|
|
|
|
PRODUCT_PROPERTY_OVERRIDES += \
|
|
|
|
persist.rild.nitz_plmn="" \
|
|
|
|
persist.rild.nitz_long_ons_0="" \
|
|
|
|
persist.rild.nitz_long_ons_1="" \
|
|
|
|
persist.rild.nitz_long_ons_2="" \
|
|
|
|
persist.rild.nitz_long_ons_3="" \
|
|
|
|
persist.rild.nitz_short_ons_0="" \
|
|
|
|
persist.rild.nitz_short_ons_1="" \
|
|
|
|
persist.rild.nitz_short_ons_2="" \
|
|
|
|
persist.rild.nitz_short_ons_3=""
|
|
|
|
|
|
|
|
PRODUCT_PROPERTY_OVERRIDES += \
|
|
|
|
persist.timed.enable=true
|
|
|
|
|
2018-02-21 21:53:05 +01:00
|
|
|
# Advanced Display
|
|
|
|
PRODUCT_PACKAGES += \
|
|
|
|
AdvancedDisplay
|
|
|
|
|
2014-05-19 05:33:07 +02:00
|
|
|
# Audio
|
|
|
|
PRODUCT_PACKAGES += \
|
2017-10-11 18:10:52 +02:00
|
|
|
android.hardware.audio@2.0-impl \
|
|
|
|
android.hardware.audio.effect@2.0-impl \
|
2014-05-19 05:33:07 +02:00
|
|
|
audio_policy.msm8974 \
|
|
|
|
audio.a2dp.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 \
|
2014-07-25 08:04:42 +02:00
|
|
|
libqcomvoiceprocessing \
|
|
|
|
tinymix
|
|
|
|
|
2017-12-29 19:55:55 +01:00
|
|
|
# Bluetooth
|
|
|
|
PRODUCT_PACKAGES += \
|
|
|
|
android.hardware.bluetooth@1.0-impl \
|
|
|
|
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 \
|
2018-08-08 20:34:25 +02:00
|
|
|
android.hardware.graphics.composer@2.1-impl \
|
2017-10-11 18:10:52 +02:00
|
|
|
android.hardware.graphics.mapper@2.0-impl \
|
|
|
|
android.hardware.memtrack@1.0-impl \
|
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 \
|
|
|
|
libxml2 \
|
|
|
|
Snap
|
|
|
|
|
2018-09-02 00:34:14 +02:00
|
|
|
PRODUCT_COPY_FILES += \
|
|
|
|
$(LOCAL_PATH)/configs/external_camera_config.xml:$(TARGET_COPY_OUT_VENDOR)/etc/external_camera_config.xml
|
|
|
|
|
2017-12-29 19:55:55 +01:00
|
|
|
# DRM
|
|
|
|
PRODUCT_PACKAGES += \
|
|
|
|
android.hardware.drm@1.0-impl \
|
|
|
|
android.hardware.drm@1.0-service
|
|
|
|
|
|
|
|
# GPS
|
|
|
|
PRODUCT_PACKAGES += \
|
2018-01-18 12:22:35 +01:00
|
|
|
android.hardware.gnss@1.0-impl \
|
|
|
|
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
|
|
|
|
|
|
|
# IR Blaster
|
|
|
|
PRODUCT_PACKAGES += \
|
|
|
|
android.hardware.ir@1.0-impl \
|
|
|
|
consumerir.msm8974
|
|
|
|
|
2014-07-25 08:04:42 +02:00
|
|
|
# Keylayouts
|
2014-05-19 05:33:07 +02:00
|
|
|
PRODUCT_COPY_FILES += \
|
|
|
|
device/samsung/msm8974-common/keylayout/cyttsp-i2c.kl:system/usr/keylayout/cyttsp-i2c.kl \
|
|
|
|
device/samsung/msm8974-common/keylayout/keypad_8960.kl:system/usr/keylayout/keypad_8960.kl \
|
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 += \
|
|
|
|
android.hardware.keymaster@3.0-impl
|
|
|
|
|
2014-07-25 08:04:42 +02:00
|
|
|
# Media
|
2014-05-19 05:33:07 +02:00
|
|
|
PRODUCT_COPY_FILES += \
|
2014-11-17 12:12:50 +01:00
|
|
|
frameworks/av/media/libstagefright/data/media_codecs_google_audio.xml:system/etc/media_codecs_google_audio.xml \
|
|
|
|
frameworks/av/media/libstagefright/data/media_codecs_google_telephony.xml:system/etc/media_codecs_google_telephony.xml \
|
|
|
|
frameworks/av/media/libstagefright/data/media_codecs_google_video.xml:system/etc/media_codecs_google_video.xml \
|
2014-07-25 08:04:42 +02:00
|
|
|
device/samsung/msm8974-common/configs/media_codecs.xml:system/etc/media_codecs.xml
|
|
|
|
|
|
|
|
# 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 += \
|
2018-09-17 21:43:53 +02:00
|
|
|
android.hardware.power@1.1-service-qti
|
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 += \
|
2018-08-20 14:30:23 +02:00
|
|
|
$(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/mediaextractor.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
|
|
|
|
|
|
|
# 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
|
|
|
|
|
|
|
# Wifi
|
|
|
|
PRODUCT_PACKAGES += \
|
|
|
|
android.hardware.wifi@1.0-service \
|
|
|
|
hostapd \
|
|
|
|
wificond \
|
|
|
|
wpa_supplicant \
|
|
|
|
wpa_supplicant.conf
|
|
|
|
|
2017-12-31 16:45:00 +01:00
|
|
|
# Get non-open-source specific aspects
|
|
|
|
$(call inherit-product-if-exists, vendor/samsung/msm8974-common/msm8974-common-vendor.mk)
|
|
|
|
|
2014-05-19 05:33:07 +02:00
|
|
|
# common msm8974
|
|
|
|
$(call inherit-product, device/samsung/qcom-common/qcom-common.mk)
|