universal7580: build common camera packages
[GitHub/LineageOS/android_device_samsung_universal7580-common.git] / device-common.mk
1 #
2 # Copyright (C) 2018 The LineageOS Project
3 #
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
7 #
8 # http://www.apache.org/licenses/LICENSE-2.0
9 #
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
15 #
16
17 LOCAL_PATH := device/samsung/universal7580-common
18
19 # Audio
20 PRODUCT_PACKAGES += \
21 audio.primary.universal7580 \
22 audio.a2dp.default \
23 audio.r_submix.default \
24 audio.usb.default \
25 tinymix \
26 android.hardware.audio@2.0-impl \
27 android.hardware.audio.effect@2.0-impl
28
29 PRODUCT_COPY_FILES += \
30 $(LOCAL_PATH)/configs/audio/audio_policy.conf:system/etc/audio_policy.conf \
31 $(LOCAL_PATH)/configs/audio/audio_effects.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.xml
32
33 # Camera
34 PRODUCT_PACKAGES += \
35 android.hardware.camera.provider@2.4-impl-legacy \
36 android.hardware.camera.provider@2.4-service
37
38 # Permissions
39 PRODUCT_COPY_FILES += \
40 frameworks/native/data/etc/android.hardware.camera.front.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.front.xml \
41 frameworks/native/data/etc/android.hardware.location.gps.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.location.gps.xml \
42 frameworks/native/data/etc/android.hardware.touchscreen.multitouch.jazzhand.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml \
43 frameworks/native/data/etc/android.hardware.usb.accessory.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.usb.accessory.xml \
44 frameworks/native/data/etc/android.hardware.usb.host.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.usb.host.xml \
45 frameworks/native/data/etc/android.hardware.wifi.direct.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.direct.xml \
46 frameworks/native/data/etc/android.hardware.wifi.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.xml
47
48 # Wifi
49 PRODUCT_PACKAGES += \
50 macloader \
51 wifiloader \
52 hostapd \
53 wificond \
54 wifilogd \
55 wlutil \
56 libwpa_client \
57 wpa_supplicant \
58 wpa_supplicant.conf \
59 android.hardware.wifi@1.0-service \
60 android.hardware.wifi@1.0 \
61 android.hardware.wifi@1.0-impl
62
63 # call Samsung LSI board support package
64 $(call inherit-product, hardware/samsung_slsi-cm/exynos5/exynos5.mk)
65 $(call inherit-product, hardware/samsung_slsi-cm/exynos7580/exynos7580.mk)
66
67 # call the proprietary setup
68 $(call inherit-product, vendor/samsung/universal7580-common/universal7580-common-vendor.mk)