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