blob: f601910b29c221e0754bfcb2d935aee7d505bcd1
1 | # Inherit from those products. Most specific first. |
2 | # Get some sounds |
3 | $(call inherit-product-if-exists, frameworks/base/data/sounds/AllAudio.mk) |
4 | |
5 | # Get the TTS language packs |
6 | $(call inherit-product-if-exists, external/svox/pico/lang/all_pico_languages.mk) |
7 | |
8 | # Get a list of languages. |
9 | $(call inherit-product, build/target/product/locales_full.mk) |
10 | |
11 | # Define the host tools and libs that are parts of the SDK. |
12 | ifneq ($(filter sdk win_sdk sdk_addon,$(MAKECMDGOALS)),) |
13 | -include sdk/build/product_sdk.mk |
14 | -include development/build/product_sdk.mk |
15 | |
16 | PRODUCT_PACKAGES += \ |
17 | EmulatorSmokeTests |
18 | endif |
19 | |
20 | # Additional settings used in all AOSP builds |
21 | PRODUCT_PROPERTY_OVERRIDES += \ |
22 | ro.com.android.dateformat=MM-dd-yyyy \ |
23 | ro.config.ringtone=Ring_Synth_04.ogg \ |
24 | ro.config.notification_sound=pixiedust.ogg |
25 | |
26 | # Put en_US first in the list, so make it default. |
27 | PRODUCT_LOCALES := en_US |
28 | |
29 | ALLOW_MISSING_DEPENDENCIES := true |
30 | |
31 | # Include drawables for all densities |
32 | PRODUCT_AAPT_CONFIG := normal hdpi xhdpi xxhdpi |
33 | |
34 | PRODUCT_PACKAGES += \ |
35 | libWnnEngDic \ |
36 | libWnnJpnDic \ |
37 | libwnndict \ |
38 | WAPPushManager |
39 | |
40 | PRODUCT_PACKAGES += \ |
41 | Galaxy4 \ |
42 | HoloSpiralWallpaper \ |
43 | MagicSmokeWallpapers \ |
44 | NoiseField \ |
45 | PhaseBeam \ |
46 | VisualizationWallpapers |
47 | |
48 | ifneq ($(TARGET_BUILD_GOOGLE_ATV), true) |
49 | PRODUCT_PACKAGES += \ |
50 | PhotoTable |
51 | |
52 | PRODUCT_PACKAGES += \ |
53 | LiveWallpapers \ |
54 | LiveWallpapersPicker |
55 | endif |
56 | |
57 | PRODUCT_PACKAGES += \ |
58 | Gallery2 \ |
59 | OneTimeInitializer \ |
60 | Provision \ |
61 | SystemUI \ |
62 | WallpaperCropper |
63 | |
64 | PRODUCT_PACKAGES += \ |
65 | clatd \ |
66 | clatd.conf \ |
67 | pppd \ |
68 | screenrecord |
69 | |
70 | PRODUCT_PACKAGES += \ |
71 | librs_jni \ |
72 | libvideoeditor_jni \ |
73 | libvideoeditor_core \ |
74 | libvideoeditor_osal \ |
75 | libvideoeditor_videofilters \ |
76 | libvideoeditorplayer \ |
77 | |
78 | PRODUCT_PACKAGES += \ |
79 | audio.primary.default \ |
80 | audio_policy.default \ |
81 | audio.dia_remote.default \ |
82 | local_time.default \ |
83 | vibrator.default \ |
84 | power.default |
85 | |
86 | PRODUCT_PACKAGES += \ |
87 | local_time.default |
88 | |
89 | PRODUCT_COPY_FILES += \ |
90 | frameworks/av/media/libeffects/data/audio_effects.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.conf |
91 | |
92 | PRODUCT_COPY_FILES += \ |
93 | device/amlogic/common/ddr/ddr_window_64.ko:$(PRODUCT_OUT)/obj/lib_vendor/ddr_window_64.ko |
94 | |
95 | PRODUCT_COPY_FILES += \ |
96 | device/amlogic/common/compatibility_matrix.xml:$(TARGET_COPY_OUT_VENDOR)/compatibility_matrix.xml |
97 | |
98 | PRODUCT_PROPERTY_OVERRIDES += \ |
99 | ro.carrier=unknown \ |
100 | net.tethering.noprovisioning=true |
101 | |
102 | PRODUCT_PACKAGES += \ |
103 | BasicDreams \ |
104 | CalendarProvider \ |
105 | CaptivePortalLogin \ |
106 | CertInstaller \ |
107 | ExternalStorageProvider \ |
108 | FusedLocation \ |
109 | InputDevices \ |
110 | KeyChain \ |
111 | Keyguard \ |
112 | PacProcessor \ |
113 | libpac \ |
114 | ProxyHandler \ |
115 | DroidTvSettings \ |
116 | SharedStorageBackup \ |
117 | VpnDialogs |
118 | |
119 | $(call inherit-product-if-exists, frameworks/base/data/fonts/fonts.mk) |
120 | $(call inherit-product-if-exists, external/google-fonts/dancing-script/fonts.mk) |
121 | $(call inherit-product-if-exists, external/google-fonts/carrois-gothic-sc/fonts.mk) |
122 | $(call inherit-product-if-exists, external/google-fonts/coming-soon/fonts.mk) |
123 | $(call inherit-product-if-exists, external/google-fonts/cutive-mono/fonts.mk) |
124 | $(call inherit-product-if-exists, external/noto-fonts/fonts.mk) |
125 | $(call inherit-product-if-exists, external/naver-fonts/fonts.mk) |
126 | $(call inherit-product-if-exists, external/roboto-fonts/fonts.mk) |
127 | $(call inherit-product-if-exists, frameworks/base/data/keyboards/keyboards.mk) |
128 | $(call inherit-product-if-exists, frameworks/webview/chromium/chromium.mk) |
129 | ifneq ($(TARGET_BUILD_GOOGLE_ATV), true) |
130 | $(call inherit-product, build/target/product/core_base.mk) |
131 | else |
132 | $(call inherit-product, device/amlogic/common/core_base_atv.mk) |
133 | endif |
134 | #default hardware composer version is 2.0 |
135 | TARGET_USES_HWC2 := true |
136 | |
137 | ifneq ($(wildcard $(BOARD_AML_VENDOR_PATH)/frameworks/av/LibPlayer),) |
138 | WITH_LIBPLAYER_MODULE := true |
139 | else |
140 | WITH_LIBPLAYER_MODULE := false |
141 | endif |
142 | |
143 | # set soft stagefright extractor&decoder as defaults |
144 | WITH_SOFT_AM_EXTRACTOR_DECODER := true |
145 | |
146 | PRODUCT_PROPERTY_OVERRIDES += \ |
147 | debug.hwui.render_dirty_regions=false \ |
148 | ro.hwui.texture_cache_size=64.0f \ |
149 | camera.disable_zsl_mode=1 \ |
150 | debug.hwui.use_buffer_age=false |
151 | |
152 | # USB camera default face |
153 | PRODUCT_PROPERTY_OVERRIDES += \ |
154 | rw.camera.usb.faceback=true |
155 | |
156 | ifneq ($(TARGET_BUILD_GOOGLE_ATV), true) |
157 | PRODUCT_PACKAGES += \ |
158 | AppInstaller \ |
159 | DocumentsUI \ |
160 | FileBrowser \ |
161 | RemoteIME \ |
162 | DeskClock \ |
163 | Launcher2 \ |
164 | MusicFX \ |
165 | Browser2 \ |
166 | LatinIME \ |
167 | Settings \ |
168 | Camera2 \ |
169 | Music |
170 | endif |
171 | |
172 | ifeq ($(TARGET_BUILD_LIVETV), true) |
173 | PRODUCT_PACKAGES += LiveTv |
174 | PRODUCT_COPY_FILES += \ |
175 | frameworks/native/data/etc/android.software.picture_in_picture.xml:vendor/etc/permissions/android.software.picture_in_picture.xml |
176 | endif |
177 | |
178 | PRODUCT_PACKAGES += \ |
179 | droidlogic \ |
180 | droidlogic-res \ |
181 | droidlogic.software.core.xml \ |
182 | systemcontrol \ |
183 | systemcontrol_static \ |
184 | libsystemcontrolservice \ |
185 | vendor.amlogic.hardware.systemcontrol@1.0_vendor |
186 | |
187 | PRODUCT_PACKAGES += \ |
188 | OTAUpgrade \ |
189 | VideoPlayer \ |
190 | SubTitle \ |
191 | libdig \ |
192 | ReadLog \ |
193 | BluetoothRemote |
194 | |
195 | PRODUCT_PACKAGES += \ |
196 | hostapd \ |
197 | wpa_supplicant \ |
198 | wpa_supplicant.conf \ |
199 | dhcpcd.conf \ |
200 | libds_jni \ |
201 | libsrec_jni \ |
202 | system_key_server \ |
203 | libwifi-hal \ |
204 | libwpa_client \ |
205 | libGLES_mali \ |
206 | network \ |
207 | sdptool \ |
208 | e2fsck \ |
209 | mkfs.exfat \ |
210 | mount.exfat \ |
211 | fsck.exfat \ |
212 | ntfs-3g \ |
213 | ntfsfix \ |
214 | mkntfs \ |
215 | libxml2 \ |
216 | gralloc.amlogic \ |
217 | power.amlogic \ |
218 | hwcomposer.amlogic \ |
219 | memtrack.amlogic \ |
220 | screen_source.amlogic \ |
221 | thermal.amlogic |
222 | |
223 | #glscaler and 3d format api |
224 | PRODUCT_PACKAGES += \ |
225 | libdisplaysetting |
226 | |
227 | #native image player surface overlay so |
228 | PRODUCT_PACKAGES += \ |
229 | libsurfaceoverlay_jni |
230 | |
231 | #native gif decode so |
232 | PRODUCT_PACKAGES += \ |
233 | libgifdecode_jni |
234 | |
235 | PRODUCT_PACKAGES += libomx_av_core_alt \ |
236 | libOmxCore \ |
237 | libOmxVideo \ |
238 | libthreadworker_alt \ |
239 | libdatachunkqueue_alt \ |
240 | libOmxBase \ |
241 | libomx_framework_alt \ |
242 | libomx_worker_peer_alt \ |
243 | libfpscalculator_alt \ |
244 | libomx_clock_utils_alt \ |
245 | libomx_timed_task_queue_alt \ |
246 | libstagefrighthw \ |
247 | libsecmem \ |
248 | secmem \ |
249 | 2c1a33c0-44cc-11e5-bc3b0002a5d5c51b |
250 | |
251 | # Dm-verity |
252 | ifeq ($(BUILD_WITH_DM_VERITY), true) |
253 | PRODUCT_SYSTEM_VERITY_PARTITION = /dev/block/system |
254 | ifneq ($(BOARD_OLD_PARTITION),true) |
255 | PRODUCT_VENDOR_VERITY_PARTITION = /dev/block/vendor |
256 | endif |
257 | # Provides dependencies necessary for verified boot |
258 | PRODUCT_SUPPORTS_BOOT_SIGNER := true |
259 | PRODUCT_SUPPORTS_VERITY := true |
260 | PRODUCT_SUPPORTS_VERITY_FEC := true |
261 | # The dev key is used to sign boot and recovery images, and the verity |
262 | # metadata table. Actual product deliverables will be re-signed by hand. |
263 | # We expect this file to exist with the suffixes ".x509.pem" and ".pk8". |
264 | PRODUCT_VERITY_SIGNING_KEY := device/amlogic/common/security/verity |
265 | ifneq ($(TARGET_USE_SECURITY_DM_VERITY_MODE_WITH_TOOL),true) |
266 | PRODUCT_PACKAGES += \ |
267 | verity_key.amlogic |
268 | endif |
269 | endif |
270 | |
271 | ######################################################################### |
272 | # |
273 | # App optimization |
274 | # |
275 | ######################################################################### |
276 | #ifeq ($(BUILD_WITH_APP_OPTIMIZATION),true) |
277 | |
278 | PRODUCT_COPY_FILES += \ |
279 | device/amlogic/common/optimization/liboptimization_32.so:$(TARGET_COPY_OUT_VENDOR)/lib/liboptimization.so \ |
280 | device/amlogic/common/optimization/config:$(TARGET_COPY_OUT_VENDOR)/package_config/config |
281 | |
282 | PRODUCT_PROPERTY_OVERRIDES += \ |
283 | ro.app.optimization=true |
284 | |
285 | ifneq ($(ANDROID_BUILD_TYPE), 32) |
286 | PRODUCT_COPY_FILES += \ |
287 | device/amlogic/common/optimization/liboptimization_64.so:$(TARGET_COPY_OUT_VENDOR)/lib64/liboptimization.so |
288 | endif |
289 | #endif |
290 | |
291 | ######################################################################### |
292 | # |
293 | # Alarm white and black list |
294 | # |
295 | ######################################################################### |
296 | PRODUCT_COPY_FILES += \ |
297 | device/amlogic/common/alarm/alarm_blacklist.txt:$(TARGET_COPY_OUT_VENDOR)/etc/alarm_blacklist.txt \ |
298 | device/amlogic/common/alarm/alarm_whitelist.txt:$(TARGET_COPY_OUT_VENDOR)/etc/alarm_whitelist.txt |
299 | |
300 | ######################################################################### |
301 | # |
302 | # Secure OS |
303 | # |
304 | ######################################################################### |
305 | ifeq ($(TARGET_USE_OPTEEOS),true) |
306 | ifeq ($(TARGET_KERNEL_BUILT_FROM_SOURCE), true) |
307 | PRODUCT_PACKAGES += \ |
308 | optee_armtz \ |
309 | optee |
310 | endif |
311 | |
312 | PRODUCT_PACKAGES += \ |
313 | tee-supplicant \ |
314 | libteec \ |
315 | tee_helloworld \ |
316 | tee_crypto \ |
317 | tee_xtest \ |
318 | tdk_auto_test \ |
319 | tee_helloworld_ta \ |
320 | tee_fail_test_ta \ |
321 | tee_crypt_ta \ |
322 | tee_os_test_ta \ |
323 | tee_rpc_test_ta \ |
324 | tee_sims_ta \ |
325 | tee_storage_ta \ |
326 | tee_storage2_ta \ |
327 | tee_storage_benchmark_ta \ |
328 | tee_aes_perf_ta \ |
329 | tee_sha_perf_ta \ |
330 | tee_sdp_basic_ta \ |
331 | tee_concurrent_ta \ |
332 | tee_concurrent_large_ta |
333 | |
334 | ifeq ($(TARGET_USE_HW_KEYMASTER),true) |
335 | PRODUCT_PACKAGES += \ |
336 | keystore.amlogic |
337 | endif |
338 | endif |
339 | |
340 | ######################################################################### |
341 | # |
342 | # OTA PROPERTY |
343 | # |
344 | ######################################################################### |
345 | PRODUCT_PROPERTY_OVERRIDES += \ |
346 | ro.product.firmware=00502001 \ |
347 | ro.product.otaupdateurl=http://10.28.11.53:8080/otaupdate/update |
348 | ######################################################################### |
349 | # |
350 | # hardware interfaces |
351 | # |
352 | ######################################################################### |
353 | PRODUCT_PACKAGES += \ |
354 | android.hardware.soundtrigger@2.0-impl \ |
355 | android.hardware.wifi@1.0-service \ |
356 | android.hardware.usb@1.0-service |
357 | |
358 | #workround because android.hardware.wifi@1.0-service has not permission to insmod ko |
359 | PRODUCT_COPY_FILES += \ |
360 | hardware/amlogic/wifi/multi_wifi/android.hardware.wifi@1.0-service.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/android.hardware.wifi@1.0-service.rc |
361 | |
362 | #Audio HAL |
363 | PRODUCT_PACKAGES += \ |
364 | android.hardware.audio@2.0-impl \ |
365 | android.hardware.audio.effect@2.0-impl \ |
366 | android.hardware.audio@2.0-service |
367 | #Camera HAL |
368 | ifneq ($(TARGET_BUILD_GOOGLE_ATV), true) |
369 | PRODUCT_PACKAGES += \ |
370 | android.hardware.camera.provider@2.4-impl \ |
371 | android.hardware.camera.provider@2.4-service |
372 | endif |
373 | |
374 | #Power HAL |
375 | PRODUCT_PACKAGES += \ |
376 | android.hardware.power@1.0-impl \ |
377 | android.hardware.power@1.0-service |
378 | |
379 | #Memtack HAL |
380 | PRODUCT_PACKAGES += \ |
381 | android.hardware.memtrack@1.0-impl \ |
382 | android.hardware.memtrack@1.0-service |
383 | |
384 | # Gralloc HAL |
385 | PRODUCT_PACKAGES += \ |
386 | android.hardware.graphics.mapper@2.0-impl \ |
387 | android.hardware.graphics.allocator@2.0-impl \ |
388 | android.hardware.graphics.allocator@2.0-service |
389 | |
390 | # HW Composer |
391 | PRODUCT_PACKAGES += \ |
392 | android.hardware.graphics.composer@2.1-impl \ |
393 | android.hardware.graphics.composer@2.1-service |
394 | |
395 | # dumpstate binderized |
396 | PRODUCT_PACKAGES += \ |
397 | android.hardware.dumpstate@1.0-service.droidlogic |
398 | |
399 | |
400 | # Keymaster HAL |
401 | PRODUCT_PACKAGES += \ |
402 | android.hardware.keymaster@3.0-impl \ |
403 | android.hardware.keymaster@3.0-service |
404 | |
405 | # new gatekeeper HAL |
406 | PRODUCT_PACKAGES += \ |
407 | gatekeeper.amlogic \ |
408 | android.hardware.gatekeeper@1.0-impl \ |
409 | android.hardware.gatekeeper@1.0-service |
410 | |
411 | #DRM |
412 | PRODUCT_PACKAGES += \ |
413 | android.hardware.drm@1.0-impl \ |
414 | android.hardware.drm@1.0-service |
415 | |
416 | # HDMITX CEC HAL |
417 | PRODUCT_PACKAGES += \ |
418 | android.hardware.tv.cec@1.0-impl \ |
419 | android.hardware.tv.cec@1.0-service \ |
420 | hdmicecd \ |
421 | libhdmicec \ |
422 | libhdmicec_jni \ |
423 | vendor.amlogic.hardware.hdmicec@1.0_vendor \ |
424 | hdmi_cec.amlogic |
425 | |
426 | #light hal |
427 | PRODUCT_PACKAGES += \ |
428 | android.hardware.light@2.0-impl \ |
429 | android.hardware.light@2.0-service |
430 | |
431 | #thermal hal |
432 | PRODUCT_PACKAGES += \ |
433 | android.hardware.thermal@1.0-impl \ |
434 | android.hardware.thermal@1.0-service |
435 | |
436 | #health hal |
437 | PRODUCT_PACKAGES += \ |
438 | android.hardware.health@1.0-impl \ |
439 | android.hardware.health@1.0-service |
440 | |
441 | PRODUCT_PACKAGES += \ |
442 | android.hardware.cas@1.0-service |
443 | |
444 | # DroidVold |
445 | PRODUCT_PACKAGES += \ |
446 | vendor.amlogic.hardware.droidvold@1.0 \ |
447 | vendor.amlogic.hardware.droidvold@1.0_vendor \ |
448 | vendor.amlogic.hardware.droidvold-V1.0-java |
449 | |
450 | ifeq ($(TARGET_BUILD_GOOGLE_ATV), true) |
451 | PRODUCT_IS_ATV := true |
452 | PRODUCT_COPY_FILES += \ |
453 | $(LOCAL_PATH)/tutorial-library-google.zip:system/media/tutorial-library-google.zip |
454 | endif |
455 | |
456 | PRODUCT_PROPERTY_OVERRIDES += \ |
457 | ro.sf.disable_triple_buffer=1 |
458 | |
459 | # ro.product.first_api_level indicates the first api level the device has commercially launched on. |
460 | PRODUCT_PROPERTY_OVERRIDES += \ |
461 | ro.product.first_api_level=26 |
462 | |
463 | # VNDK version is specified |
464 | PRODUCT_PROPERTY_OVERRIDES += \ |
465 | ro.vendor.vndk.version=26.1.0 |
466 | |
467 | PRODUCT_PROPERTY_OVERRIDES += \ |
468 | ro.treble.enabled=true |
469 | |
470 | #for cts test disable quota |
471 | PRODUCT_PROPERTY_OVERRIDES += \ |
472 | fw.disable_quota=true |
473 | |
474 | PRODUCT_PACKAGES += \ |
475 | VendorOverlay |
476 | |
477 | PRODUCT_PROPERTY_OVERRIDES += \ |
478 | ro.boot.vendor.overlay.theme=VendorOverlay |
479 | |
480 | #fix android.permission2.cts.ProtectedBroadcastsTest |
481 | PRODUCT_PACKAGES += \ |
482 | TeleService |
483 | |
484 | PRODUCT_PACKAGES += \ |
485 | android.hardware.renderscript@1.0.vndk-sp\ |
486 | android.hardware.graphics.allocator@2.0.vndk-sp\ |
487 | android.hardware.graphics.mapper@2.0.vndk-sp\ |
488 | android.hardware.graphics.common@1.0.vndk-sp\ |
489 | libhwbinder.vndk-sp\ |
490 | libbase.vndk-sp\ |
491 | libcutils.vndk-sp\ |
492 | libhardware.vndk-sp\ |
493 | libhidlbase.vndk-sp\ |
494 | libhidltransport.vndk-sp\ |
495 | libutils.vndk-sp\ |
496 | libc++.vndk-sp\ |
497 | libRS_internal.vndk-sp\ |
498 | libRSDriver.vndk-sp\ |
499 | libRSCpuRef.vndk-sp\ |
500 | libbcinfo.vndk-sp\ |
501 | libblas.vndk-sp\ |
502 | libft2.vndk-sp\ |
503 | libpng.vndk-sp\ |
504 | libcompiler_rt.vndk-sp\ |
505 | libbacktrace.vndk-sp\ |
506 | libunwind.vndk-sp\ |
507 | liblzma.vndk-sp\ |
508 |