universal7580: sepolicy: label a7xelte devices
[GitHub/LineageOS/android_device_samsung_universal7580-common.git] / device-common.mk
CommitLineData
583a3f4a
S
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
17LOCAL_PATH := device/samsung/universal7580-common
174e8e03 18
1f3935bd 19DEVICE_PACKAGE_OVERLAYS += $(LOCAL_PATH)/overlay
20
9e24d026
S
21# Audio
22PRODUCT_PACKAGES += \
23 audio.primary.universal7580 \
24 audio.a2dp.default \
25 audio.r_submix.default \
26 audio.usb.default \
27 tinymix \
28 android.hardware.audio@2.0-impl \
29 android.hardware.audio.effect@2.0-impl
30
56fce430 31PRODUCT_COPY_FILES += \
9abc3aaa 32 $(LOCAL_PATH)/configs/audio/audio_policy.conf:$(TARGET_COPY_OUT_SYSTEM)/etc/audio_policy.conf \
d11af90e
BM
33 $(LOCAL_PATH)/configs/audio/audio_effects.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.xml \
34 frameworks/av/services/audiopolicy/config/audio_policy_volumes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_volumes.xml \
35 frameworks/av/services/audiopolicy/config/a2dp_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/a2dp_audio_policy_configuration.xml \
36 frameworks/av/services/audiopolicy/config/default_volume_tables.xml:$(TARGET_COPY_OUT_VENDOR)/etc/default_volume_tables.xml \
37 frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/r_submix_audio_policy_configuration.xml \
38 frameworks/av/services/audiopolicy/config/usb_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/usb_audio_policy_configuration.xml \
39 $(LOCAL_PATH)/configs/audio/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration.xml
56fce430 40
a3b5a23b
S
41# Bluetooth
42PRODUCT_PACKAGES += \
8d217709 43 android.hardware.bluetooth@1.0-impl.7580 \
a3b5a23b
S
44 libbt-vendor
45
1ff87e59
S
46# Camera
47PRODUCT_PACKAGES += \
48 android.hardware.camera.provider@2.4-impl-legacy \
49 android.hardware.camera.provider@2.4-service
50
a08cb4d9
S
51# Configstore
52PRODUCT_PACKAGES += \
53 android.hardware.configstore@1.0-impl \
54 android.hardware.configstore@1.0-service
55
5eddb9b6
S
56# DRM
57PRODUCT_PACKAGES += \
58 android.hardware.drm@1.0-impl \
59 android.hardware.drm@1.0-service
60
c6a5c0f1 61# Flat device tree for boot image
d5f08266 62PRODUCT_HOST_PACKAGES += \
c6a5c0f1
S
63 dtbhtoolExynos
64
7cb9a0db
S
65# GPS
66PRODUCT_PACKAGES += \
67 android.hardware.gnss@1.0-impl
68
f9c1e7d0
S
69# Graphics
70PRODUCT_PACKAGES += \
71 libion \
72 libfimg \
73 android.hardware.graphics.allocator@2.0-impl \
74 android.hardware.graphics.allocator@2.0-service \
75 android.hardware.graphics.composer@2.1-impl \
76 android.hardware.graphics.mapper@2.0-impl \
77 libhwc2on1adapter
78
851afbcc 79# Health
80PRODUCT_PACKAGES += \
81 android.hardware.health@2.0-impl \
82 android.hardware.health@2.0-service
83
af923f93
S
84# Keymaster
85PRODUCT_PACKAGES += \
86 keystore.exynos5 \
87 android.hardware.keymaster@3.0-impl \
88 android.hardware.keymaster@3.0-service
89
17f6edbe
S
90# Lights
91PRODUCT_PACKAGES += \
eeb10813 92 android.hardware.light@2.0-service.samsung
869e237e
JA
93
94# Livedisplay
95PRODUCT_PACKAGES += \
96 vendor.lineage.livedisplay@2.0-service.samsung-exynos
97
edebdf99
S
98# Media
99PRODUCT_COPY_FILES += \
100 $(LOCAL_PATH)/configs/media/media_codecs.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs.xml \
101 $(LOCAL_PATH)/configs/media/media_codecs_performance.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_performance.xml \
102 $(LOCAL_PATH)/configs/media/media_profiles_V1_0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_V1_0.xml \
103 frameworks/av/media/libstagefright/data/media_codecs_google_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_audio.xml \
104 frameworks/av/media/libstagefright/data/media_codecs_google_telephony.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_telephony.xml \
2869951b 105 frameworks/av/media/libstagefright/data/media_codecs_google_video.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_video_le.xml
edebdf99 106
2f93c04e
S
107# Memory
108PRODUCT_PACKAGES += \
109 android.hardware.memtrack@1.0-impl
110
c29ce5b3
DW
111# Mobicore
112PRODUCT_PACKAGES += \
113 mcDriverDaemon \
114 libMcClient \
115 libMcRegistry
116
97f75cb0
S
117# Power
118PRODUCT_PACKAGES += \
6a2f233e 119 android.hardware.power@1.0-service.exynos
97f75cb0 120
ec28d0f7
S
121# Permissions
122PRODUCT_COPY_FILES += \
123 frameworks/native/data/etc/android.hardware.camera.front.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.front.xml \
124 frameworks/native/data/etc/android.hardware.location.gps.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.location.gps.xml \
125 frameworks/native/data/etc/android.hardware.touchscreen.multitouch.jazzhand.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml \
126 frameworks/native/data/etc/android.hardware.usb.accessory.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.usb.accessory.xml \
127 frameworks/native/data/etc/android.hardware.usb.host.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.usb.host.xml \
128 frameworks/native/data/etc/android.hardware.wifi.direct.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.direct.xml \
129 frameworks/native/data/etc/android.hardware.wifi.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.xml
eac4829a 130
c65d8399
S
131# ramdisk
132PRODUCT_PACKAGES += \
133 init.power.rc \
134 fstab.samsungexynos7580 \
135 init.baseband.rc \
136 init.samsung.rc \
137 init.samsungexynos7580.rc \
138 init.samsungexynos7580.usb.rc \
cb33a316 139 init.recovery.samsungexynos7580.rc \
c65d8399
S
140 init.wifi.rc \
141 ueventd.samsungexynos7580.rc
142
6cd8a194
S
143# RenderScript
144PRODUCT_PACKAGES += \
145 android.hardware.renderscript@1.0-impl
146
41fbcd89 147# SamsungDoze
148PRODUCT_PACKAGES += \
149 SamsungDoze
150
ac2af23d
L
151# SEC
152PRODUCT_PACKAGES += \
153 libsecnativefeature
154
835153b7
S
155# Seccomp filters
156PRODUCT_COPY_FILES += \
157 $(LOCAL_PATH)/seccomp/mediaextractor-seccomp.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/mediaextractor.policy \
158 $(LOCAL_PATH)/seccomp/mediacodec-seccomp.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/mediacodec.policy
159
7e077bee
S
160# Sensors
161PRODUCT_PACKAGES += \
162 android.hardware.sensors@1.0-impl \
163 android.hardware.vibrator@1.0-impl \
164 android.hardware.vibrator@1.0-service
165
a2e67aef
S
166# Shims
167PRODUCT_PACKAGES += \
168 libcamera_client_shim \
169 libexynoscamera_shim \
a2e67aef
S
170 libstagefright_shim \
171 libui_shim
172
e2934e8a
S
173# TextClassifier
174PRODUCT_PACKAGES += \
229090c5 175 textclassifier.bundle1
d56a00a1
PK
176
177# Touch features
178PRODUCT_PACKAGES += \
179 vendor.lineage.touch@1.0-service.samsung
f7e2172b
J
180
181# Trust HAL
182PRODUCT_PACKAGES += \
183 vendor.lineage.trust@1.0-service
e2934e8a 184
a1f2b3d7
S
185# USB
186PRODUCT_PACKAGES += \
afd06ed0 187 android.hardware.usb@1.0-service.basic
a1f2b3d7 188
eac4829a
S
189# Wifi
190PRODUCT_PACKAGES += \
eac4829a
S
191 wifiloader \
192 hostapd \
193 wificond \
194 wifilogd \
195 wlutil \
196 libwpa_client \
197 wpa_supplicant \
198 wpa_supplicant.conf \
4ec8a724 199 android.hardware.wifi@1.0-service.legacy
eac4829a 200
0be00cd7
S
201# Properties
202-include $(LOCAL_PATH)/system_prop.mk
203
174e8e03 204# call Samsung LSI board support package
e148bed6
S
205$(call inherit-product, hardware/samsung_slsi/exynos5/exynos5.mk)
206$(call inherit-product, hardware/samsung_slsi/exynos7580/exynos7580.mk)
2211511a
S
207
208# call the proprietary setup
209$(call inherit-product, vendor/samsung/universal7580-common/universal7580-common-vendor.mk)