#
LOCAL_PATH := device/samsung/universal7580-common
+
+DEVICE_PACKAGE_OVERLAYS += $(LOCAL_PATH)/overlay
+
+# Audio
+PRODUCT_PACKAGES += \
+ audio.primary.universal7580 \
+ audio.a2dp.default \
+ audio.r_submix.default \
+ audio.usb.default \
+ tinymix \
+ android.hardware.audio@2.0-impl \
+ android.hardware.audio.effect@2.0-impl
+
+PRODUCT_COPY_FILES += \
+ $(LOCAL_PATH)/configs/audio/audio_policy.conf:system/etc/audio_policy.conf \
+ $(LOCAL_PATH)/configs/audio/audio_effects.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.xml
+
+# Bluetooth
+PRODUCT_PACKAGES += \
+ android.hardware.bluetooth@1.0-impl.7580 \
+ libbt-vendor
+
+# Camera
+PRODUCT_PACKAGES += \
+ android.hardware.camera.provider@2.4-impl-legacy \
+ android.hardware.camera.provider@2.4-service
+
+# Configstore
+PRODUCT_PACKAGES += \
+ android.hardware.configstore@1.0-impl \
+ android.hardware.configstore@1.0-service
+
+# DRM
+PRODUCT_PACKAGES += \
+ android.hardware.drm@1.0-impl \
+ android.hardware.drm@1.0-service
+
+# Flat device tree for boot image
+PRODUCT_PACKAGES += \
+ dtbhtoolExynos
+
+# GPS
+PRODUCT_PACKAGES += \
+ android.hardware.gnss@1.0-impl
+
+# Graphics
+PRODUCT_PACKAGES += \
+ libion \
+ libfimg \
+ android.hardware.graphics.allocator@2.0-impl \
+ android.hardware.graphics.allocator@2.0-service \
+ android.hardware.graphics.composer@2.1-impl \
+ android.hardware.graphics.mapper@2.0-impl \
+ libhwc2on1adapter
+
+# Keymaster
+PRODUCT_PACKAGES += \
+ keystore.exynos5 \
+ android.hardware.keymaster@3.0-impl \
+ android.hardware.keymaster@3.0-service
+
+# Lights
+PRODUCT_PACKAGES += \
+ lights.universal7580 \
+ android.hardware.light@2.0-impl \
+ android.hardware.light@2.0-service
+
+# 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 \
+ 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_le.xml
+
+# Memory
+PRODUCT_PACKAGES += \
+ android.hardware.memtrack@1.0-impl
+
+# Power
+PRODUCT_PACKAGES += \
+ power.universal7580 \
+ android.hardware.power@1.0-service \
+ android.hardware.power@1.0-impl
+
+# Permissions
+PRODUCT_COPY_FILES += \
+ 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.location.gps.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.location.gps.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.direct.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.direct.xml \
+ frameworks/native/data/etc/android.hardware.wifi.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.xml
+
+# ramdisk
+PRODUCT_PACKAGES += \
+ init.power.rc \
+ fstab.samsungexynos7580 \
+ init.baseband.rc \
+ init.samsung.rc \
+ init.samsungexynos7580.rc \
+ init.samsungexynos7580.usb.rc \
+ init.wifi.rc \
+ ueventd.samsungexynos7580.rc
+
+# RenderScript
+PRODUCT_PACKAGES += \
+ android.hardware.renderscript@1.0-impl
+
+# SamsungDoze
+PRODUCT_PACKAGES += \
+ SamsungDoze
+
+# Seccomp filters
+PRODUCT_COPY_FILES += \
+ $(LOCAL_PATH)/seccomp/mediaextractor-seccomp.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/mediaextractor.policy \
+ $(LOCAL_PATH)/seccomp/mediacodec-seccomp.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/mediacodec.policy
+
+# Sensors
+PRODUCT_PACKAGES += \
+ android.hardware.sensors@1.0-impl \
+ android.hardware.vibrator@1.0-impl \
+ android.hardware.vibrator@1.0-service
+
+# Shims
+PRODUCT_PACKAGES += \
+ libcamera_client_shim \
+ libexynoscamera_shim \
+ libExynosOMX_shim \
+ libstagefright_shim \
+ libui_shim
+
+# TextClassifier
+PRODUCT_PACKAGES += \
+ textclassifier.smartselection.bundle1
+
+# USB
+PRODUCT_PACKAGES += \
+ android.hardware.usb@1.0-impl \
+ android.hardware.usb@1.0-service
+
+# Wifi
+PRODUCT_PACKAGES += \
+ wifiloader \
+ hostapd \
+ wificond \
+ wifilogd \
+ wlutil \
+ libwpa_client \
+ wpa_supplicant \
+ wpa_supplicant.conf \
+ android.hardware.wifi@1.0-service \
+ android.hardware.wifi@1.0 \
+ android.hardware.wifi@1.0-impl
+
+# Overriden service definition
+PRODUCT_COPY_FILES += \
+ $(LOCAL_PATH)/configs/init/android.hardware.media.omx@1.0-service.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/android.hardware.media.omx@1.0-service.rc \
+ $(LOCAL_PATH)/configs/init/mediaserver.rc:system/etc/init/mediaserver.rc
+
+# Properties
+-include $(LOCAL_PATH)/system_prop.mk
+
+# call Samsung LSI board support package
+ifneq ($(WITH_EXYNOS_BSP),)
+$(call inherit-product, hardware/samsung_slsi/exynos5/exynos5.mk)
+$(call inherit-product, hardware/samsung_slsi/exynos7580/exynos7580.mk)
+endif
+
+# call the proprietary setup
+$(call inherit-product, vendor/samsung/universal7580-common/universal7580-common-vendor.mk)