2017-01-15 13:29:11 +05:30
|
|
|
#
|
|
|
|
# Copyright (C) 2016 The CyanogenMod Project
|
2017-11-21 21:51:43 +01:00
|
|
|
# Copyright (C) 2017 The LineageOS Project
|
2017-01-15 13:29:11 +05:30
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
#
|
|
|
|
|
2018-01-27 01:06:58 +01:00
|
|
|
# Get non-open-source common files
|
|
|
|
$(call inherit-product, vendor/sony/kitakami-common/kitakami-common-vendor.mk)
|
|
|
|
|
2017-11-21 21:51:43 +01:00
|
|
|
# Overlays
|
|
|
|
DEVICE_PACKAGE_OVERLAYS += $(LOCAL_PATH)/overlay
|
|
|
|
|
|
|
|
# Radio config
|
|
|
|
ifneq ($(BOARD_HAVE_RADIO),false)
|
|
|
|
DEVICE_PACKAGE_OVERLAYS += $(LOCAL_PATH)/overlay-radio
|
|
|
|
$(call inherit-product, $(LOCAL_PATH)/radio.mk)
|
|
|
|
endif
|
|
|
|
|
|
|
|
# Permissions
|
|
|
|
PRODUCT_COPY_FILES += \
|
|
|
|
frameworks/native/data/etc/android.hardware.bluetooth_le.xml:system/etc/permissions/android.hardware.bluetooth_le.xml \
|
|
|
|
frameworks/native/data/etc/android.hardware.camera.flash-autofocus.xml:system/etc/permissions/android.hardware.camera.flash-autofocus.xml \
|
|
|
|
frameworks/native/data/etc/android.hardware.camera.front.xml:system/etc/permissions/android.hardware.camera.front.xml \
|
|
|
|
frameworks/native/data/etc/android.hardware.ethernet.xml:system/etc/permissions/android.hardware.ethernet.xml \
|
|
|
|
frameworks/native/data/etc/android.hardware.location.gps.xml:system/etc/permissions/android.hardware.location.gps.xml \
|
|
|
|
frameworks/native/data/etc/android.hardware.nfc.xml:system/etc/permissions/android.hardware.nfc.xml \
|
|
|
|
frameworks/native/data/etc/android.hardware.nfc.hce.xml:system/etc/permissions/android.hardware.nfc.hce.xml \
|
|
|
|
frameworks/native/data/etc/android.hardware.opengles.aep.xml:system/etc/permissions/android.hardware.opengles.aep.xml \
|
|
|
|
frameworks/native/data/etc/android.hardware.sensor.accelerometer.xml:system/etc/permissions/android.hardware.sensor.accelerometer.xml \
|
|
|
|
frameworks/native/data/etc/android.hardware.sensor.barometer.xml:system/etc/permissions/android.hardware.sensor.barometer.xml \
|
|
|
|
frameworks/native/data/etc/android.hardware.sensor.compass.xml:system/etc/permissions/android.hardware.sensor.compass.xml \
|
|
|
|
frameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:system/etc/permissions/android.hardware.sensor.gyroscope.xml \
|
|
|
|
frameworks/native/data/etc/android.hardware.sensor.light.xml:system/etc/permissions/android.hardware.sensor.light.xml \
|
|
|
|
frameworks/native/data/etc/android.hardware.sensor.proximity.xml:system/etc/permissions/android.hardware.sensor.proximity.xml \
|
|
|
|
frameworks/native/data/etc/android.hardware.sensor.stepcounter.xml:system/etc/permissions/android.hardware.sensor.stepcounter.xml \
|
|
|
|
frameworks/native/data/etc/android.hardware.sensor.stepdetector.xml:system/etc/permissions/android.hardware.sensor.stepdetector.xml \
|
|
|
|
frameworks/native/data/etc/android.hardware.touchscreen.multitouch.jazzhand.xml:system/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml \
|
|
|
|
frameworks/native/data/etc/android.hardware.usb.accessory.xml:system/etc/permissions/android.hardware.usb.accessory.xml \
|
|
|
|
frameworks/native/data/etc/android.hardware.usb.host.xml:system/etc/permissions/android.hardware.usb.host.xml \
|
|
|
|
frameworks/native/data/etc/android.hardware.wifi.direct.xml:system/etc/permissions/android.hardware.wifi.direct.xml \
|
|
|
|
frameworks/native/data/etc/android.hardware.wifi.xml:system/etc/permissions/android.hardware.wifi.xml \
|
|
|
|
frameworks/native/data/etc/android.software.midi.xml:system/etc/permissions/android.software.midi.xml \
|
|
|
|
frameworks/native/data/etc/android.software.sip.voip.xml:system/etc/permissions/android.software.sip.voip.xml \
|
|
|
|
frameworks/native/data/etc/handheld_core_hardware.xml:system/etc/permissions/handheld_core_hardware.xml \
|
|
|
|
frameworks/native/data/etc/android.hardware.vulkan.level-0.xml:system/etc/permissions/android.hardware.vulkan.level.xml \
|
|
|
|
frameworks/native/data/etc/android.hardware.vulkan.version-1_0_3.xml:system/etc/permissions/android.hardware.vulkan.version.xml
|
2017-01-15 13:29:11 +05:30
|
|
|
|
|
|
|
# ANT+
|
|
|
|
PRODUCT_PACKAGES += \
|
|
|
|
AntHalService \
|
|
|
|
com.dsi.ant.antradio_library \
|
|
|
|
libantradio
|
|
|
|
|
|
|
|
# Audio
|
|
|
|
PRODUCT_PACKAGES += \
|
|
|
|
audiod \
|
|
|
|
audio.a2dp.default \
|
2017-09-11 19:26:31 -07:00
|
|
|
android.hardware.audio@2.0-impl \
|
|
|
|
android.hardware.audio.effect@2.0-impl \
|
2017-01-15 13:29:11 +05:30
|
|
|
audio.primary.msm8994 \
|
|
|
|
audio.r_submix.default \
|
|
|
|
audio.usb.default \
|
|
|
|
libqcompostprocbundle \
|
|
|
|
libqcomvisualizer \
|
|
|
|
libqcomvoiceprocessing \
|
|
|
|
tinymix
|
|
|
|
|
2017-11-21 21:51:43 +01:00
|
|
|
# Audio configuration
|
2017-01-15 13:29:11 +05:30
|
|
|
PRODUCT_COPY_FILES += \
|
2017-11-21 21:51:43 +01:00
|
|
|
$(LOCAL_PATH)/audio/audio_effects.conf:system/vendor/etc/audio_effects.conf \
|
|
|
|
$(LOCAL_PATH)/audio/audio_output_policy.conf:system/vendor/etc/audio_output_policy.conf \
|
|
|
|
$(LOCAL_PATH)/audio/audio_platform_info.xml:system/etc/audio_platform_info.xml \
|
|
|
|
$(LOCAL_PATH)/audio/audio_policy.conf:system/etc/audio_policy.conf
|
|
|
|
|
|
|
|
# Bluetooth
|
|
|
|
PRODUCT_COPY_FILES += \
|
|
|
|
$(LOCAL_PATH)/bluetooth/bt_vendor.conf:system/etc/bluetooth/bt_vendor.conf
|
2017-01-15 13:29:11 +05:30
|
|
|
|
2017-09-11 19:26:31 -07:00
|
|
|
PRODUCT_PACKAGES += \
|
|
|
|
android.hardware.bluetooth@1.0-impl \
|
|
|
|
android.hardware.bluetooth@1.0-service \
|
|
|
|
libbt-vendor
|
|
|
|
|
2017-01-15 13:29:11 +05:30
|
|
|
# Camera
|
|
|
|
PRODUCT_PACKAGES += \
|
2017-09-11 19:26:31 -07:00
|
|
|
android.hardware.camera.provider@2.4-impl \
|
2017-01-15 13:29:11 +05:30
|
|
|
Snap
|
|
|
|
|
|
|
|
# Charger
|
|
|
|
PRODUCT_PACKAGES += charger_res_images
|
|
|
|
|
|
|
|
# Data services
|
|
|
|
PRODUCT_PACKAGES += \
|
|
|
|
librmnetctl
|
|
|
|
|
|
|
|
# Display
|
|
|
|
PRODUCT_PACKAGES += \
|
2017-09-11 19:26:31 -07:00
|
|
|
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.1-service \
|
|
|
|
android.hardware.graphics.mapper@2.0-impl \
|
|
|
|
android.hardware.memtrack@1.0-impl \
|
|
|
|
android.hardware.memtrack@1.0-service \
|
2017-01-15 13:29:11 +05:30
|
|
|
copybit.msm8994 \
|
|
|
|
gralloc.msm8994 \
|
|
|
|
hwcomposer.msm8994 \
|
|
|
|
libtinyxml \
|
|
|
|
memtrack.msm8994
|
|
|
|
|
2017-09-11 19:26:31 -07:00
|
|
|
# Gatekeeper
|
|
|
|
PRODUCT_PACKAGES += \
|
|
|
|
android.hardware.gatekeeper@1.0-impl \
|
|
|
|
android.hardware.gatekeeper@1.0-service
|
|
|
|
|
2017-11-21 21:51:43 +01:00
|
|
|
# GPS
|
|
|
|
PRODUCT_COPY_FILES += \
|
|
|
|
$(LOCAL_PATH)/gps/flp.conf:system/etc/flp.conf \
|
|
|
|
$(LOCAL_PATH)/gps/gps.conf:system/etc/gps.conf \
|
|
|
|
$(LOCAL_PATH)/gps/izat.conf:system/etc/izat.conf \
|
|
|
|
$(LOCAL_PATH)/gps/sap.conf:system/etc/sap.conf
|
|
|
|
|
2017-09-11 19:26:31 -07:00
|
|
|
PRODUCT_PACKAGES += \
|
|
|
|
android.hardware.gnss@1.0-impl
|
|
|
|
|
2017-11-21 21:51:43 +01:00
|
|
|
# Flash LED config
|
|
|
|
PRODUCT_COPY_FILES += \
|
|
|
|
$(LOCAL_PATH)/configs/flashled_calc_parameters.cfg:system/etc/flashled_calc_parameters.cfg
|
|
|
|
|
|
|
|
# FM
|
|
|
|
PRODUCT_PACKAGES += \
|
|
|
|
FMRadio \
|
|
|
|
brcm-uim-sysfs \
|
|
|
|
libfmjni
|
|
|
|
|
2017-09-11 19:26:31 -07:00
|
|
|
# Health
|
|
|
|
PRODUCT_PACKAGES += \
|
|
|
|
android.hardware.health@1.0-impl \
|
|
|
|
android.hardware.health@1.0-service
|
|
|
|
|
2017-11-21 21:51:43 +01:00
|
|
|
# Init
|
|
|
|
PRODUCT_COPY_FILES += \
|
|
|
|
$(LOCAL_PATH)/rootdir/fstab.qcom:root/fstab.qcom \
|
|
|
|
$(LOCAL_PATH)/rootdir/init.qcom.usb.rc:root/init.qcom.usb.rc \
|
|
|
|
$(LOCAL_PATH)/rootdir/init.qcom.rc:root/init.qcom.rc \
|
|
|
|
$(LOCAL_PATH)/rootdir/ueventd.qcom.rc:root/ueventd.qcom.rc
|
|
|
|
|
|
|
|
# Input
|
|
|
|
PRODUCT_COPY_FILES += \
|
|
|
|
$(LOCAL_PATH)/keylayout/clearpad.kl:system/usr/keylayout/clearpad.kl \
|
|
|
|
$(LOCAL_PATH)/keylayout/gpio-keys.kl:system/usr/keylayout/gpio-keys.kl \
|
|
|
|
$(LOCAL_PATH)/keylayout/mhl-rcp.kl:system/usr/keylayout/mhl-rcp.kl \
|
|
|
|
$(LOCAL_PATH)/keylayout/msm8994-tomtom-snd-card_Button_Jack.kl:system/usr/keylayout/msm8994-tomtom-snd-card_Button_Jack.kl \
|
|
|
|
$(LOCAL_PATH)/keylayout/synaptics_dsx.kl:system/usr/keylayout/synaptics_dsx.kl
|
|
|
|
|
|
|
|
# IRQ
|
|
|
|
PRODUCT_COPY_FILES += \
|
|
|
|
$(LOCAL_PATH)/configs/msm_irqbalance.conf:system/vendor/etc/msm_irqbalance.conf
|
|
|
|
|
2017-09-11 19:26:31 -07:00
|
|
|
# Keymaster
|
|
|
|
PRODUCT_PACKAGES += \
|
|
|
|
android.hardware.keymaster@3.0-impl \
|
|
|
|
android.hardware.keymaster@3.0-service
|
|
|
|
|
2017-11-21 21:51:43 +01:00
|
|
|
# Lights
|
|
|
|
PRODUCT_PACKAGES += \
|
2017-09-11 19:26:31 -07:00
|
|
|
android.hardware.light@2.0-impl \
|
|
|
|
android.hardware.light@2.0-service \
|
2017-11-21 21:51:43 +01:00
|
|
|
lights.msm8994
|
|
|
|
|
2017-01-15 13:29:11 +05:30
|
|
|
# Media
|
|
|
|
PRODUCT_PACKAGES += \
|
|
|
|
libc2dcolorconvert \
|
|
|
|
libdashplayer \
|
|
|
|
libdivxdrmdecrypt \
|
|
|
|
libextmedia_jni \
|
|
|
|
libOmxAacEnc \
|
|
|
|
libOmxAmrEnc \
|
|
|
|
libOmxCore \
|
|
|
|
libOmxEvrcEnc \
|
|
|
|
libOmxQcelp13Enc \
|
|
|
|
libOmxSwVencMpeg4 \
|
|
|
|
libOmxSwVencHevc \
|
|
|
|
libOmxVdec \
|
|
|
|
libOmxVdecHevc \
|
|
|
|
libOmxVenc \
|
|
|
|
libOmxVidcCommon \
|
|
|
|
libstagefrighthw \
|
|
|
|
libstagefright_soft_flacdec
|
|
|
|
|
2017-11-21 21:51:43 +01:00
|
|
|
PRODUCT_COPY_FILES += \
|
|
|
|
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 \
|
|
|
|
$(LOCAL_PATH)/configs/media_codecs.xml:system/etc/media_codecs.xml \
|
|
|
|
$(LOCAL_PATH)/configs/media_codecs_performance.xml:system/etc/media_codecs_performance.xml \
|
2017-05-03 19:54:12 -07:00
|
|
|
$(LOCAL_PATH)/configs/media_profiles_V1_0.xml:system/etc/media_profiles_V1_0.xml
|
2017-11-21 21:51:43 +01:00
|
|
|
|
|
|
|
# Multihal
|
|
|
|
PRODUCT_PACKAGES += \
|
|
|
|
sensors.msm8994
|
|
|
|
|
2017-01-15 13:29:11 +05:30
|
|
|
# NFC
|
|
|
|
PRODUCT_PACKAGES += \
|
2017-09-11 19:26:31 -07:00
|
|
|
android.hardware.nfc@1.0-impl \
|
|
|
|
android.hardware.nfc@1.0-service \
|
2017-01-15 13:29:11 +05:30
|
|
|
com.android.nfc_extras \
|
|
|
|
NfcNci \
|
|
|
|
nfc_nci.pn54x.default \
|
|
|
|
Tag
|
|
|
|
|
2017-11-21 21:51:43 +01:00
|
|
|
# OTG
|
|
|
|
PRODUCT_PACKAGES += \
|
|
|
|
SonyOtgSwitch
|
|
|
|
|
2017-09-11 19:26:31 -07:00
|
|
|
# Power
|
2017-01-15 13:29:11 +05:30
|
|
|
PRODUCT_PACKAGES += \
|
2017-09-11 19:26:31 -07:00
|
|
|
android.hardware.power@1.0-impl \
|
|
|
|
android.hardware.power@1.0-service \
|
2017-01-15 13:29:11 +05:30
|
|
|
power.msm8994
|
|
|
|
|
2016-12-02 02:48:41 -05:00
|
|
|
# Recovery
|
|
|
|
PRODUCT_PACKAGES += \
|
|
|
|
librecovery_updater_kitakami
|
|
|
|
|
2017-09-11 19:26:31 -07:00
|
|
|
# Renderscript
|
|
|
|
PRODUCT_PACKAGES += \
|
|
|
|
android.hardware.renderscript@1.0-impl
|
|
|
|
|
2017-01-15 13:29:11 +05:30
|
|
|
# RIL
|
|
|
|
PRODUCT_PACKAGES += \
|
|
|
|
libxml2
|
|
|
|
|
2017-09-14 01:01:28 -07:00
|
|
|
# Seccomp
|
|
|
|
PRODUCT_COPY_FILES += \
|
|
|
|
$(LOCAL_PATH)/seccomp/mediacodec.policy:system/vendor/etc/seccomp_policy/mediacodec.policy \
|
|
|
|
$(LOCAL_PATH)/seccomp/mediaextractor.policy:system/vendor/etc/seccomp_policy/mediaextractor.policy
|
|
|
|
|
2017-09-11 19:26:31 -07:00
|
|
|
# Sensors
|
|
|
|
PRODUCT_PACKAGES += \
|
|
|
|
android.hardware.sensors@1.0-impl \
|
|
|
|
android.hardware.sensors@1.0-service
|
|
|
|
|
2017-11-21 21:51:43 +01:00
|
|
|
# Shim libs
|
|
|
|
PRODUCT_PACKAGES += \
|
2017-11-18 17:35:08 +01:00
|
|
|
camera.qcom_shim
|
2017-11-21 21:51:43 +01:00
|
|
|
|
2017-09-11 19:26:31 -07:00
|
|
|
# Thermal
|
|
|
|
PRODUCT_PACKAGES += \
|
|
|
|
android.hardware.thermal@1.0-impl \
|
|
|
|
android.hardware.thermal@1.0-service
|
|
|
|
|
2017-01-15 13:29:11 +05:30
|
|
|
# TimeKeep
|
|
|
|
PRODUCT_PACKAGES += \
|
|
|
|
timekeep \
|
|
|
|
TimeKeep
|
|
|
|
|
2017-08-22 22:18:33 +02:00
|
|
|
# USB
|
|
|
|
PRODUCT_PACKAGES += \
|
|
|
|
android.hardware.usb@1.0-service
|
|
|
|
|
2017-01-15 13:29:11 +05:30
|
|
|
# Wifi
|
|
|
|
PRODUCT_PACKAGES += \
|
|
|
|
p2p_supplicant.conf \
|
|
|
|
hostapd \
|
2017-10-22 18:00:42 +02:00
|
|
|
libwifi-hal-bcm \
|
2017-01-15 13:29:11 +05:30
|
|
|
libwpa_client \
|
|
|
|
wpa_supplicant \
|
|
|
|
wpa_supplicant.conf
|
|
|
|
|
2017-05-02 07:00:39 +02:00
|
|
|
PRODUCT_PACKAGES += \
|
2017-11-21 21:51:43 +01:00
|
|
|
macaddrsetup
|
2017-05-02 07:00:39 +02:00
|
|
|
|
2017-11-21 21:51:43 +01:00
|
|
|
$(call inherit-product, hardware/broadcom/wlan/bcmdhd/config/config-bcm.mk)
|