universal7580: Add common GPS configuration
[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 DEVICE_PACKAGE_OVERLAYS += $(LOCAL_PATH)/overlay
20
21 # Audio
22 PRODUCT_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
31 PRODUCT_COPY_FILES += \
32 $(LOCAL_PATH)/configs/audio/audio_policy.conf:$(TARGET_COPY_OUT_SYSTEM)/etc/audio_policy.conf \
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
40
41 # Bluetooth
42 PRODUCT_PACKAGES += \
43 android.hardware.bluetooth@1.0-impl.7580 \
44 libbt-vendor
45
46 # Camera
47 PRODUCT_PACKAGES += \
48 android.hardware.camera.provider@2.4-impl-legacy \
49 android.hardware.camera.provider@2.4-service
50
51 # Configstore
52 PRODUCT_PACKAGES += \
53 android.hardware.configstore@1.0-impl \
54 android.hardware.configstore@1.0-service
55
56 # DRM
57 PRODUCT_PACKAGES += \
58 android.hardware.drm@1.0-impl \
59 android.hardware.drm@1.0-service
60
61 # Flat device tree for boot image
62 PRODUCT_HOST_PACKAGES += \
63 dtbhtoolExynos
64
65 # GPS
66 PRODUCT_PACKAGES += \
67 android.hardware.gnss@1.0-impl
68
69 PRODUCT_COPY_FILES += \
70 $(LOCAL_PATH)/configs/gps/gps.conf:system/etc/gps.conf \
71 $(LOCAL_PATH)/configs/gps/gps.xml:system/etc/gps.xml
72
73 # Graphics
74 PRODUCT_PACKAGES += \
75 libion \
76 libfimg \
77 android.hardware.graphics.allocator@2.0-impl \
78 android.hardware.graphics.allocator@2.0-service \
79 android.hardware.graphics.composer@2.1-impl \
80 android.hardware.graphics.mapper@2.0-impl \
81 libhwc2on1adapter
82
83 # Health
84 PRODUCT_PACKAGES += \
85 android.hardware.health@2.0-impl \
86 android.hardware.health@2.0-service
87
88 # Keymaster
89 PRODUCT_PACKAGES += \
90 keystore.exynos5 \
91 android.hardware.keymaster@3.0-impl \
92 android.hardware.keymaster@3.0-service
93
94 # Lights
95 PRODUCT_PACKAGES += \
96 android.hardware.light@2.0-service.samsung
97
98 # Livedisplay
99 PRODUCT_PACKAGES += \
100 vendor.lineage.livedisplay@2.0-service.samsung-exynos
101
102 # Media
103 PRODUCT_COPY_FILES += \
104 $(LOCAL_PATH)/configs/media/media_codecs.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs.xml \
105 $(LOCAL_PATH)/configs/media/media_codecs_performance.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_performance.xml \
106 $(LOCAL_PATH)/configs/media/media_profiles_V1_0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_V1_0.xml \
107 frameworks/av/media/libstagefright/data/media_codecs_google_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_audio.xml \
108 frameworks/av/media/libstagefright/data/media_codecs_google_telephony.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_telephony.xml \
109 frameworks/av/media/libstagefright/data/media_codecs_google_video.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_video_le.xml
110
111 # Memory
112 PRODUCT_PACKAGES += \
113 android.hardware.memtrack@1.0-impl
114
115 # Mobicore
116 PRODUCT_PACKAGES += \
117 mcDriverDaemon \
118 libMcClient \
119 libMcRegistry
120
121 # Power
122 PRODUCT_PACKAGES += \
123 android.hardware.power@1.0-service.exynos
124
125 # Permissions
126 PRODUCT_COPY_FILES += \
127 frameworks/native/data/etc/android.hardware.camera.front.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.front.xml \
128 frameworks/native/data/etc/android.hardware.location.gps.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.location.gps.xml \
129 frameworks/native/data/etc/android.hardware.touchscreen.multitouch.jazzhand.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml \
130 frameworks/native/data/etc/android.hardware.usb.accessory.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.usb.accessory.xml \
131 frameworks/native/data/etc/android.hardware.usb.host.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.usb.host.xml \
132 frameworks/native/data/etc/android.hardware.wifi.direct.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.direct.xml \
133 frameworks/native/data/etc/android.hardware.wifi.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.xml
134
135 # ramdisk
136 PRODUCT_PACKAGES += \
137 init.power.rc \
138 fstab.samsungexynos7580 \
139 init.baseband.rc \
140 init.samsung.rc \
141 init.samsungexynos7580.rc \
142 init.samsungexynos7580.usb.rc \
143 init.recovery.samsungexynos7580.rc \
144 init.wifi.rc \
145 ueventd.samsungexynos7580.rc
146
147 # RenderScript
148 PRODUCT_PACKAGES += \
149 android.hardware.renderscript@1.0-impl
150
151 # SamsungDoze
152 PRODUCT_PACKAGES += \
153 SamsungDoze
154
155 # SEC
156 PRODUCT_PACKAGES += \
157 libsecnativefeature
158
159 # Seccomp filters
160 PRODUCT_COPY_FILES += \
161 $(LOCAL_PATH)/seccomp/mediaextractor-seccomp.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/mediaextractor.policy \
162 $(LOCAL_PATH)/seccomp/mediacodec-seccomp.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/mediacodec.policy
163
164 # Sensors
165 PRODUCT_PACKAGES += \
166 android.hardware.sensors@1.0-impl \
167 android.hardware.vibrator@1.0-impl \
168 android.hardware.vibrator@1.0-service
169
170 # Shims
171 PRODUCT_PACKAGES += \
172 libcamera_client_shim \
173 libexynoscamera_shim \
174 libstagefright_shim \
175 libui_shim
176
177 # TextClassifier
178 PRODUCT_PACKAGES += \
179 textclassifier.bundle1
180
181 # Touch features
182 PRODUCT_PACKAGES += \
183 vendor.lineage.touch@1.0-service.samsung
184
185 # Trust HAL
186 PRODUCT_PACKAGES += \
187 vendor.lineage.trust@1.0-service
188
189 # USB
190 PRODUCT_PACKAGES += \
191 android.hardware.usb@1.0-service.basic
192
193 # Wifi
194 PRODUCT_PACKAGES += \
195 wifiloader \
196 hostapd \
197 wificond \
198 wifilogd \
199 wlutil \
200 libwpa_client \
201 wpa_supplicant \
202 wpa_supplicant.conf \
203 android.hardware.wifi@1.0-service.legacy
204
205 # Properties
206 -include $(LOCAL_PATH)/system_prop.mk
207
208 # call Samsung LSI board support package
209 $(call inherit-product, hardware/samsung_slsi/exynos5/exynos5.mk)
210 $(call inherit-product, hardware/samsung_slsi/exynos7580/exynos7580.mk)
211
212 # call the proprietary setup
213 $(call inherit-product, vendor/samsung/universal7580-common/universal7580-common-vendor.mk)