Define Vendor security patch level
[GitHub/mt8127/android_device_alcatel_ttab.git] / device.mk
index 4894f367e7a8fe9a8c9f928a8491a8ad8ecb1ca2..974564f468a0093ba37f850567e1fa32f28f937c 100644 (file)
--- a/device.mk
+++ b/device.mk
@@ -59,13 +59,16 @@ PRODUCT_COPY_FILES += \
     frameworks/native/data/etc/android.hardware.location.xml:system/etc/permissions/android.hardware.location.xml \
     frameworks/native/data/etc/android.hardware.location.gps.xml:system/etc/permissions/android.hardware.location.gps.xml
 
-# media codecs files that are not copied from stock rom
+# Media
 PRODUCT_COPY_FILES += \
-       $(LOCAL_PATH)/configs/media_codecs.xml:system/etc/media_codecs.xml \
-       $(LOCAL_PATH)/configs/media_profiles.xml:system/etc/media_profiles.xml \
     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
+    frameworks/av/media/libstagefright/data/media_codecs_google_video_le.xml:system/etc/media_codecs_google_video_le.xml \
+    $(LOCAL_PATH)/configs/media/media_codecs.xml:system/etc/media_codecs.xml \
+    $(LOCAL_PATH)/configs/media/media_codecs_mediatek_video.xml:system/etc/media_codecs_mediatek_video.xml \
+    $(LOCAL_PATH)/configs/media/media_codecs_performance.xml:system/etc/media_codecs_performance.xml \
+    $(LOCAL_PATH)/configs/media/media_profiles.xml:system/etc/media_profiles.xml \
+    $(LOCAL_PATH)/seccomp/mediacodec-seccomp.policy:system/vendor/etc/seccomp_policy/mediacodec.policy
 
 # Bluetooth config files
 PRODUCT_COPY_FILES += \
@@ -104,6 +107,18 @@ PRODUCT_PACKAGES += \
 PRODUCT_PACKAGES += \
        power.default
 
+# Sensor
+PRODUCT_COPY_FILES += \
+    $(LOCAL_PATH)/configs/sensors/_hals.conf:system/vendor/etc/sensors/_hals.conf
+
+PRODUCT_PACKAGES += \
+    sensors.mt8127
+
+# Misc
+PRODUCT_PACKAGES += \
+    libcurl \
+    libboringssl-compat
+
 # network
 PRODUCT_PACKAGES += \
     netd
@@ -123,14 +138,16 @@ PRODUCT_PACKAGES += \
        libstlport \
        lights.mt8127
 
-# Wifi
 PRODUCT_PACKAGES += \
     lib_driver_cmd_mt66xx \
     libwifi-hal-mt66xx \
     wifi_hal \
     libwpa_client \
     hostapd \
-    wpa_supplicant
+    wificond \
+    wifilogd \
+    wpa_supplicant \
+    wpa_supplicant.conf
 
 PRODUCT_COPY_FILES += \
     $(LOCAL_PATH)/configs/hostapd/hostapd_default.conf:system/etc/hostapd/hostapd_default.conf \
@@ -142,5 +159,16 @@ PRODUCT_COPY_FILES += \
 PRODUCT_PACKAGES += \
     libbt-vendor
 
+# TextClassifier smart selection model files
+PRODUCT_PACKAGES += \
+    textclassifier.bundle1
+
+# Vendor security patch level
+PRODUCT_PROPERTY_OVERRIDES += \
+    ro.lineage.build.vendor_security_patch=2017-11-06
+
+# hidl packages
+$(call inherit-product, $(LOCAL_PATH)/hidl.mk)
+
 # Get non-open-source specific aspects
 $(call inherit-product-if-exists, vendor/alcatel/ttab/ttab-vendor.mk)