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