forked from hroark13/android_device_zte_draconis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
full_draconis.mk
316 lines (266 loc) · 11.3 KB
/
full_draconis.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
ADDITIONAL_DEFAULT_PROPERTIES += \
ro.secure=0 \
ro.adb.secure=0 \
ro.debuggable=1
# Inherit from those products. Most specific first.
$(call inherit-product, $(SRC_TARGET_DIR)/product/full_base_telephony.mk)
# Overlay
DEVICE_PACKAGE_OVERLAYS += $(LOCAL_PATH)/overlay
$(call inherit-product, $(SRC_TARGET_DIR)/product/languages_full.mk)
$(call inherit-product-if-exists, vendor/zte/draconis/draconis-vendor.mk)
# Overlay
DEVICE_PACKAGE_OVERLAYS += $(LOCAL_PATH)/overlay
# Permissions
PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.audio.low_latency.xml:system/etc/permissions/android.hardware.audio.low_latency.xml \
frameworks/native/data/etc/android.hardware.bluetooth_le.xml:system/etc/permissions/android.hardware.bluetooth_le.xml \
frameworks/native/data/etc/android.hardware.camera.autofocus.xml:system/etc/permissions/android.hardware.camera.autofocus.xml \
frameworks/native/data/etc/android.hardware.camera.xml:system/etc/permissions/android.hardware.camera.xml \
frameworks/native/data/etc/android.hardware.camera.flash-autofocus.xml:system/etc/permissions/android.hardware.camera.flash-autofocus.xml \
frameworks/native/data/etc/android.hardware.camera.front.xml:system/etc/permissions/android.hardware.camera.front.xml \
frameworks/native/data/etc/android.hardware.location.gps.xml:system/etc/permissions/android.hardware.location.gps.xml \
frameworks/native/data/etc/android.hardware.sensor.accelerometer.xml:system/etc/permissions/android.hardware.sensor.accelerometer.xml \
frameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:system/etc/permissions/android.hardware.sensor.gyroscope.xml \
frameworks/native/data/etc/android.hardware.sensor.light.xml:system/etc/permissions/android.hardware.sensor.light.xml \
frameworks/native/data/etc/android.hardware.sensor.proximity.xml:system/etc/permissions/android.hardware.sensor.proximity.xml \
frameworks/native/data/etc/android.hardware.telephony.cdma.xml:system/etc/permissions/android.hardware.telephony.cdma.xml \
frameworks/native/data/etc/android.hardware.telephony.gsm.xml:system/etc/permissions/android.hardware.telephony.gsm.xml \
frameworks/native/data/etc/android.hardware.touchscreen.multitouch.jazzhand.xml:system/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml \
frameworks/native/data/etc/android.hardware.usb.accessory.xml:system/etc/permissions/android.hardware.usb.accessory.xml \
frameworks/native/data/etc/android.hardware.usb.host.xml:system/etc/permissions/android.hardware.usb.host.xml \
frameworks/native/data/etc/android.hardware.wifi.direct.xml:system/etc/permissions/android.hardware.wifi.direct.xml \
frameworks/native/data/etc/android.hardware.wifi.xml:system/etc/permissions/android.hardware.wifi.xml \
frameworks/native/data/etc/android.software.sip.voip.xml:system/etc/permissions/android.software.sip.voip.xml \
frameworks/native/data/etc/handheld_core_hardware.xml:system/etc/permissions/handheld_core_hardware.xml \
frameworks/native/data/etc/android.hardware.sensor.stepcounter.xml:system/etc/permissions/android.hardware.sensor.stepcounter.xml \
frameworks/native/data/etc/android.hardware.sensor.stepdetector.xml:system/etc/permissions/android.hardware.sensor.stepdetector.xml \
frameworks/native/data/etc/android.hardware.ethernet.xml:system/etc/permissions/android.hardware.ethernet.xml
#Ramdisk
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/ramdisk/fstab.qcom:root/fstab.qcom \
$(LOCAL_PATH)/ramdisk/init.draconis.sh:root/init.draconis.sh \
$(LOCAL_PATH)/ramdisk/init.draconis.usb.rc:root/init.draconis.usb.rc \
$(LOCAL_PATH)/ramdisk/init.mdm.sh:root/init.mdm.sh \
$(LOCAL_PATH)/ramdisk/init.qcom.bt.sh:root/init.qcom.bt.sh \
$(LOCAL_PATH)/ramdisk/init.qcom.class_core.sh:root/init.qcom.class_core.sh \
$(LOCAL_PATH)/ramdisk/init.qcom.early_boot.sh:root/init.qcom.early_boot.sh \
$(LOCAL_PATH)/ramdisk/init.qcom.factory.sh:root/init.qcom.factory.sh \
$(LOCAL_PATH)/ramdisk/init.qcom.rc:root/init.qcom.rc \
$(LOCAL_PATH)/ramdisk/init.qcom.ril.sh:root/init.qcom.ril.sh \
$(LOCAL_PATH)/ramdisk/init.qcom.sh:root/init.qcom.sh \
$(LOCAL_PATH)/ramdisk/init.qcom.ssr.sh:root/init.qcom.ssr.sh \
$(LOCAL_PATH)/ramdisk/init.qcom.syspart_fixup.sh:root/init.qcom.syspart_fixup.sh \
$(LOCAL_PATH)/ramdisk/init.qcom.usb.sh:root/init.qcom.usb.sh \
$(LOCAL_PATH)/ramdisk/init.recovery.qcom.rc:root/init.recovery.qcom.rc \
$(LOCAL_PATH)/ramdisk/init.superuser.rc:root/init.superuser.rc \
$(LOCAL_PATH)/ramdisk/init.target.rc:root/init.target.rc \
$(LOCAL_PATH)/ramdisk/ueventd.qcom.rc:root/ueventd.qcom.rc \
# Screen density
PRODUCT_AAPT_CONFIG := normal
PRODUCT_AAPT_PREF_CONFIG := xhdpi
# Boot animation
TARGET_SCREEN_HEIGHT := 1280
TARGET_SCREEN_WIDTH := 720
# call dalvik heap config
$(call inherit-product, frameworks/native/build/phone-xhdpi-1024-dalvik-heap.mk)
# Audio
PRODUCT_PACKAGES += \
audiod \
audio.a2dp.default \
audio.primary.msm8226 \
audio.r_submix.default \
audio.usb.default \
audio_policy.msm8226
PRODUCT_PACKAGES += \
libaudio-resampler \
libqcompostprocbundle \
libqcomvisualizer \
libqcomvoiceprocessing \
tinymix
# Audio configuration
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/etc/audio_effects.conf:system/vendor/etc/audio_effects.conf \
$(LOCAL_PATH)/etc/audio_platform_info.xml:system/etc/audio_platform_info.xml \
$(LOCAL_PATH)/etc/audio_policy.conf:system/etc/audio_policy.conf \
$(LOCAL_PATH)/etc/mixer_paths.xml:system/etc/mixer_paths.xml
# Camera
PRODUCT_PACKAGES += \
libxml2 \
camera.msm8226 \
Camera2
# Compatibility
PRODUCT_PACKAGES += \
libboringssl-compat \
libshim_qc-opt \
libshim_rmt_storage \
libstlport \
# Connectivity Engine support
PRODUCT_PACKAGES += \
libcnefeatureconfig \
services-ext
# Charger
PRODUCT_PACKAGES += \
charger \
charger_res_images
# CRDA
PRODUCT_PACKAGES += \
crda \
linville.key.pub.pem \
regdbdump \
regulatory.bin
# Wfd
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/etc/capability.xml:system/etc/capability.xml \
$(LOCAL_PATH)/etc/wfdconfig.xml:system/etc/wfdconfig.xml \
$(LOCAL_PATH)/etc/wfdconfig1280_720.xml:system/etc/wfdconfig1280_720.xml \
$(LOCAL_PATH)/etc/wfdconfig640_480.xml:system/etc/wfdconfig640_480.xml \
$(LOCAL_PATH)/etc/wfdconfig800_480.xml:system/etc/wfdconfig800_480.xml \
$(LOCAL_PATH)/etc/wfdconfig960_540.xml:system/etc/wfdconfig960_540.xml \
$(LOCAL_PATH)/etc/wfdconfigsink.xml:system/etc/wfdconfigsink.xml
# Display
PRODUCT_PACKAGES += \
copybit.msm8226 \
gralloc.msm8226 \
hwcomposer.msm8226 \
memtrack.msm8226 \
liboverlay \
libgenlock
# Ebtables
PRODUCT_PACKAGES += \
ebtables \
ethertypes \
libebtc
# Filesystem
PRODUCT_PACKAGES += \
e2fsck \
fibmap.f2fs \
fsck.f2fs \
mkfs.f2fs \
make_ext4fs \
resize2fs \
setup_fs
# GPS
PRODUCT_PACKAGES += \
gps.msm8226 \
# LOWI
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/etc/lowi.conf:system/etc/lowi.conf
# IRSC
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/etc/sec_config:system/etc/sec_config
# Keystore
PRODUCT_PACKAGES += \
keystore.msm8226
# Lights
PRODUCT_PACKAGES += \
lights.msm8226
# Media
PRODUCT_COPY_FILES += \
frameworks/av/media/libstagefright/data/media_codecs_google_audio.xml:system/etc/media_codecs_google_audio.xml \
frameworks/av/media/libstagefright/data/media_codecs_google_telephony.xml:system/etc/media_codecs_google_telephony.xml \
frameworks/av/media/libstagefright/data/media_codecs_google_video.xml:system/etc/media_codecs_google_video.xml \
$(LOCAL_PATH)/etc/media_codecs.xml:system/etc/media_codecs.xml \
$(LOCAL_PATH)/etc/media_profiles.xml:system/etc/media_profiles.xml
# frandom
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/etc/init.d/01frandom:system/etc/init.d/01frandom
# palm2sleep
PRODUCT_PACKAGES += \
com.cyanogenmod.keyhandler
# OMX
PRODUCT_PACKAGES += \
libc2dcolorconvert \
libdashplayer \
libdivxdrmdecrypt \
libOmxAacEnc \
libOmxAmrEnc \
libOmxCore \
libOmxMux \
libOmxEvrcEnc \
libOmxQcelp13Enc \
libOmxVdec \
libOmxVdecHevc \
libOmxVenc \
libHevcSwDecoder \
libstagefrighthw \
PRODUCT_PACKAGES += \
draconisSettings
PRODUCT_PACKAGES += \
com.android.vcard
# Power
PRODUCT_PACKAGES += \
power.msm8226
# USB
PRODUCT_PACKAGES += \
com.android.future.usb.accessory
# Wifi
PRODUCT_PACKAGES += \
dhcpcd.conf \
hostapd.accept \
hostapd.deny \
hostapd \
wpa_supplicant \
wpa_supplicant.conf
PRODUCT_PACKAGES += \
p2p_supplicant_overlay.conf \
wpa_supplicant_overlay.conf \
wpa_supplicant_ath6kl.conf
PRODUCT_PACKAGES += \
giflib
PRODUCT_PACKAGES += \
WCNSS_qcom_wlan_factory_nv.bin \
WCNSS_cfg.dat \
WCNSS_qcom_cfg.ini \
pronto_wlan.ko \
libnetcmdiface \
libwcnss_qmi
PRODUCT_PACKAGES += \
libcurl \
libqsap_sdk \
libQWiFiSoftApCfg \
wcnss_service
PRODUCT_PACKAGES += \
libion
PRODUCT_PACKAGES += \
ntfs-3g \
ntfsfix \
mkntfs
PRODUCT_PACKAGES += \
LatinIME \
libjni_latinime
PRODUCT_PACKAGES += \
libboringssl-compat \
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/etc/bluetooth/main.conf:system/etc/bluetooth/main.conf \
$(LOCAL_PATH)/etc/bluetooth/input.conf:system/etc/bluetooth/input.conf \
$(LOCAL_PATH)/etc/bluetooth/audio.conf:system/etc/bluetooth/audio.conf \
$(LOCAL_PATH)/etc/bluetooth/auto_pairing.conf:system/etc/bluetooth/auto_pairing.conf \
$(LOCAL_PATH)/etc/bluetooth/blacklist.conf:system/etc/bluetooth/blacklist.conf \
$(LOCAL_PATH)/etc/bluetooth/network.conf:system/etc/bluetooth/network.conf \
$(LOCAL_PATH)/etc/cne/andsfCne.xml:system/etc/cne/andsfCne.xml \
$(LOCAL_PATH)/etc/cne/NsrmConfiguration.xml:system/etc/cne/NsrmConfiguration.xml \
$(LOCAL_PATH)/etc/cne/SwimConfig.xml:system/etc/cne/SwimConfig.xml \
$(LOCAL_PATH)/etc/flp.conf:system/etc/flp.conf \
$(LOCAL_PATH)/etc/hcidump.sh:system/etc/hcidump.sh \
$(LOCAL_PATH)/etc/hsic.control.bt.sh:system/etc/hsic.control.bt.sh \
$(LOCAL_PATH)/etc/init.ath3k.bt.sh:system/etc/init.ath3k.bt.sh \
$(LOCAL_PATH)/etc/init.crda.sh:system/etc/init.crda.sh \
$(LOCAL_PATH)/etc/init.qcom.audio.sh:system/etc/init.qcom.audio.sh \
$(LOCAL_PATH)/etc/init.qcom.coex.sh:system/etc/init.qcom.coex.sh \
$(LOCAL_PATH)/etc/init.qcom.efs.sync.sh:system/etc/init.qcom.efs.sync.sh \
$(LOCAL_PATH)/etc/init.qcom.fm.sh:system/etc/init.qcom.fm.sh \
$(LOCAL_PATH)/etc/init.qcom.post_boot.sh:system/etc/init.qcom.post_boot.sh \
$(LOCAL_PATH)/etc/init.qcom.sdio.sh:system/etc/init.qcom.sdio.sh \
$(LOCAL_PATH)/etc/init.qcom.wifi.sh:system/etc/init.qcom.wifi.sh \
$(LOCAL_PATH)/etc/qca6234-service.sh:system/etc/qca6234-service.sh \
$(LOCAL_PATH)/etc/sensor_def_qcomdev.conf:system/etc/sensor_def_qcomdev.conf \
$(LOCAL_PATH)/etc/thermal-engine-8226.conf:system/etc/thermal-engine-8226.conf \
$(LOCAL_PATH)/etc/hostapd/hostapd_default.conf:system/etc/hostapd/hostapd_default.conf
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/usr/keylayout/gpio-keys.kl:system/usr/keylayout/gpio-keys.kl \
$(LOCAL_PATH)/usr/keylayout/Generic.kl:system/usr/keylayout/Generic.kl
# Device identifier. This must come after all inclusions
PRODUCT_DEVICE := draconis
PRODUCT_BRAND := zte
PRODUCT_MODEL := draconis
PRODUCT_MANUFACTURER := zte