blob: 0772f51b7e97ae8886884f38284fdb48a1bb8312
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 | vendor.amlogic.hardware.systemcontrol@1.0_vendor |
198 | |
199 | PRODUCT_PACKAGES += \ |
200 | VideoPlayer \ |
201 | SubTitle \ |
202 | libdig \ |
203 | BluetoothRemote |
204 | |
205 | PRODUCT_PACKAGES += \ |
206 | hostapd \ |
207 | wpa_supplicant \ |
208 | wpa_supplicant.conf \ |
209 | dhcpcd.conf \ |
210 | libds_jni \ |
211 | libsrec_jni \ |
212 | system_key_server \ |
213 | libwifi-hal \ |
214 | libwpa_client \ |
215 | libGLES_mali \ |
216 | network \ |
217 | sdptool \ |
218 | e2fsck \ |
219 | mkfs.exfat \ |
220 | mount.exfat \ |
221 | fsck.exfat \ |
222 | ntfs-3g \ |
223 | ntfsfix \ |
224 | mkntfs \ |
225 | libxml2 \ |
226 | libamgralloc_ext \ |
227 | gralloc.amlogic \ |
228 | power.amlogic \ |
229 | hwcomposer.amlogic \ |
230 | memtrack.amlogic \ |
231 | screen_source.amlogic \ |
232 | thermal.amlogic |
233 | |
234 | #glscaler and 3d format api |
235 | PRODUCT_PACKAGES += \ |
236 | libdisplaysetting |
237 | |
238 | #native image player surface overlay so |
239 | PRODUCT_PACKAGES += \ |
240 | libsurfaceoverlay_jni |
241 | |
242 | #native gif decode so |
243 | PRODUCT_PACKAGES += \ |
244 | libgifdecode_jni |
245 | |
246 | #native bluetooth rc control |
247 | PRODUCT_PACKAGES += \ |
248 | libamlaudiorc \ |
249 | libremotecontrol_jni \ |
250 | libremotecontrolserver \ |
251 | vendor.amlogic.hardware.remotecontrol@1.0 \ |
252 | vendor.amlogic.hardware.remotecontrol@1.0_vendor |
253 | |
254 | PRODUCT_PACKAGES += libomx_av_core_alt \ |
255 | libOmxCore \ |
256 | libOmxVideo \ |
257 | libOmxAudio \ |
258 | libHwAudio_dcvdec \ |
259 | libHwAudio_dtshd \ |
260 | libdra \ |
261 | libthreadworker_alt \ |
262 | libdatachunkqueue_alt \ |
263 | libOmxBase \ |
264 | libomx_framework_alt \ |
265 | libomx_worker_peer_alt \ |
266 | libfpscalculator_alt \ |
267 | libomx_clock_utils_alt \ |
268 | libomx_timed_task_queue_alt \ |
269 | libstagefrighthw \ |
270 | libsecmem \ |
271 | secmem \ |
272 | 2c1a33c0-44cc-11e5-bc3b0002a5d5c51b |
273 | |
274 | # Dm-verity |
275 | ifeq ($(BUILD_WITH_DM_VERITY), true) |
276 | PRODUCT_SYSTEM_VERITY_PARTITION = /dev/block/system |
277 | PRODUCT_VENDOR_VERITY_PARTITION = /dev/block/vendor |
278 | # Provides dependencies necessary for verified boot |
279 | PRODUCT_SUPPORTS_BOOT_SIGNER := true |
280 | PRODUCT_SUPPORTS_VERITY := true |
281 | PRODUCT_SUPPORTS_VERITY_FEC := true |
282 | # The dev key is used to sign boot and recovery images, and the verity |
283 | # metadata table. Actual product deliverables will be re-signed by hand. |
284 | # We expect this file to exist with the suffixes ".x509.pem" and ".pk8". |
285 | PRODUCT_VERITY_SIGNING_KEY := device/amlogic/common/security/verity |
286 | ifneq ($(TARGET_USE_SECURITY_DM_VERITY_MODE_WITH_TOOL),true) |
287 | PRODUCT_PACKAGES += \ |
288 | verity_key.amlogic |
289 | endif |
290 | endif |
291 | |
292 | ######################################################################### |
293 | # |
294 | # App optimization |
295 | # |
296 | ######################################################################### |
297 | #ifeq ($(BUILD_WITH_APP_OPTIMIZATION),true) |
298 | |
299 | PRODUCT_COPY_FILES += \ |
300 | device/amlogic/common/optimization/liboptimization_32.so:$(TARGET_COPY_OUT_VENDOR)/lib/liboptimization.so \ |
301 | device/amlogic/common/optimization/config:$(TARGET_COPY_OUT_VENDOR)/package_config/config |
302 | |
303 | PRODUCT_PROPERTY_OVERRIDES += \ |
304 | ro.vendor.app.optimization=true |
305 | |
306 | ifeq ($(ANDROID_BUILD_TYPE), 64) |
307 | PRODUCT_COPY_FILES += \ |
308 | device/amlogic/common/optimization/liboptimization_64.so:$(TARGET_COPY_OUT_VENDOR)/lib64/liboptimization.so |
309 | endif |
310 | #endif |
311 | |
312 | |
313 | ######################################################################### |
314 | # |
315 | # Secure OS |
316 | # |
317 | ######################################################################### |
318 | ifeq ($(TARGET_USE_OPTEEOS),true) |
319 | ifneq ($(TARGET_KERNEL_BUILT_FROM_SOURCE), false) |
320 | PRODUCT_PACKAGES += \ |
321 | optee_armtz \ |
322 | optee |
323 | endif |
324 | |
325 | PRODUCT_PACKAGES += \ |
326 | tee-supplicant \ |
327 | libteec \ |
328 | tee_helloworld \ |
329 | tee_crypto \ |
330 | tee_xtest \ |
331 | tdk_auto_test \ |
332 | tee_helloworld_ta \ |
333 | tee_fail_test_ta \ |
334 | tee_crypt_ta \ |
335 | tee_os_test_ta \ |
336 | tee_rpc_test_ta \ |
337 | tee_sims_ta \ |
338 | tee_storage_ta \ |
339 | tee_storage2_ta \ |
340 | tee_storage_benchmark_ta \ |
341 | tee_aes_perf_ta \ |
342 | tee_sha_perf_ta \ |
343 | tee_sdp_basic_ta \ |
344 | tee_concurrent_ta \ |
345 | tee_concurrent_large_ta \ |
346 | tee_provision \ |
347 | libprovision \ |
348 | tee_provision_ta \ |
349 | tee_hdcp \ |
350 | tee_hdcp_ta |
351 | |
352 | ifeq ($(TARGET_USE_HW_KEYMASTER),true) |
353 | PRODUCT_PACKAGES += \ |
354 | keystore.amlogic |
355 | endif |
356 | endif |
357 | |
358 | ######################################################################### |
359 | # |
360 | # hardware interfaces |
361 | # |
362 | ######################################################################### |
363 | PRODUCT_PACKAGES += \ |
364 | android.hardware.soundtrigger@2.0-impl \ |
365 | android.hardware.wifi@1.0-service \ |
366 | android.hardware.usb@1.0-service |
367 | |
368 | #workround because android.hardware.wifi@1.0-service has not permission to insmod ko |
369 | PRODUCT_COPY_FILES += \ |
370 | 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 |
371 | |
372 | PRODUCT_COPY_FILES += \ |
373 | device/amlogic/common/audio/audio_effects.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.xml |
374 | |
375 | #Audio HAL |
376 | PRODUCT_PACKAGES += \ |
377 | android.hardware.audio@4.0-impl:32 \ |
378 | android.hardware.audio.effect@4.0-impl:32 \ |
379 | android.hardware.soundtrigger@2.1-impl:32 \ |
380 | android.hardware.audio@2.0-service |
381 | #Camera HAL |
382 | #ifneq ($(TARGET_BUILD_GOOGLE_ATV), true) |
383 | PRODUCT_PACKAGES += \ |
384 | android.hardware.camera.provider@2.4-impl \ |
385 | android.hardware.camera.provider@2.4-service |
386 | #endif |
387 | |
388 | #Power HAL |
389 | PRODUCT_PACKAGES += \ |
390 | android.hardware.power@1.0-impl \ |
391 | android.hardware.power@1.0-service |
392 | |
393 | #Memtack HAL |
394 | PRODUCT_PACKAGES += \ |
395 | android.hardware.memtrack@1.0-impl \ |
396 | android.hardware.memtrack@1.0-service |
397 | |
398 | # Gralloc HAL |
399 | PRODUCT_PACKAGES += \ |
400 | android.hardware.graphics.mapper@2.0-impl-2.1 \ |
401 | android.hardware.graphics.allocator@2.0-impl \ |
402 | android.hardware.graphics.allocator@2.0-service |
403 | |
404 | # HW Composer |
405 | PRODUCT_PACKAGES += \ |
406 | android.hardware.graphics.composer@2.2-impl \ |
407 | android.hardware.graphics.composer@2.2-service |
408 | |
409 | # dumpstate binderized |
410 | PRODUCT_PACKAGES += \ |
411 | android.hardware.dumpstate@1.0-service.droidlogic |
412 | |
413 | |
414 | # Keymaster HAL |
415 | PRODUCT_PACKAGES += \ |
416 | android.hardware.keymaster@3.0-impl \ |
417 | android.hardware.keymaster@3.0-service |
418 | |
419 | # new gatekeeper HAL |
420 | PRODUCT_PACKAGES += \ |
421 | gatekeeper.amlogic \ |
422 | android.hardware.gatekeeper@1.0-impl \ |
423 | android.hardware.gatekeeper@1.0-service |
424 | |
425 | #DRM HAL |
426 | PRODUCT_PACKAGES += \ |
427 | android.hardware.drm@1.0-impl:32 \ |
428 | android.hardware.drm@1.0-service \ |
429 | android.hardware.drm@1.1-service.widevine \ |
430 | android.hardware.drm@1.1-service.clearkey \ |
431 | move_widevine_data.sh |
432 | |
433 | # HDMITX CEC HAL |
434 | PRODUCT_PACKAGES += \ |
435 | android.hardware.tv.cec@1.0-impl \ |
436 | android.hardware.tv.cec@1.0-service \ |
437 | hdmicecd \ |
438 | rc_server \ |
439 | libhdmicec \ |
440 | libhdmicec_jni \ |
441 | vendor.amlogic.hardware.hdmicec@1.0_vendor \ |
442 | hdmi_cec.amlogic |
443 | |
444 | #light hal |
445 | PRODUCT_PACKAGES += \ |
446 | android.hardware.light@2.0-impl \ |
447 | android.hardware.light@2.0-service |
448 | |
449 | #thermal hal |
450 | PRODUCT_PACKAGES += \ |
451 | android.hardware.thermal@1.0-impl \ |
452 | android.hardware.thermal@1.0-service |
453 | |
454 | PRODUCT_PACKAGES += \ |
455 | android.hardware.cas@1.0-service |
456 | |
457 | # DroidVold |
458 | PRODUCT_PACKAGES += \ |
459 | vendor.amlogic.hardware.droidvold@1.0 \ |
460 | vendor.amlogic.hardware.droidvold@1.0_vendor \ |
461 | vendor.amlogic.hardware.droidvold-V1.0-java |
462 | |
463 | ifeq ($(TARGET_BUILD_GOOGLE_ATV), true) |
464 | PRODUCT_IS_ATV := true |
465 | PRODUCT_COPY_FILES += \ |
466 | $(LOCAL_PATH)/tutorial-library-google.zip:system/media/tutorial-library-google.zip |
467 | PRODUCT_PACKAGES += \ |
468 | DroidOverlay \ |
469 | BlueOverlay |
470 | endif |
471 | |
472 | PRODUCT_PROPERTY_OVERRIDES += \ |
473 | ro.sf.disable_triple_buffer=1 |
474 | |
475 | # ro.product.first_api_level indicates the first api level the device has commercially launched on. |
476 | #PRODUCT_PROPERTY_OVERRIDES += \ |
477 | # ro.product.first_api_level=26 |
478 | |
479 | PRODUCT_PACKAGES += \ |
480 | vndk-sp |
481 | |
482 | # VNDK version is specified |
483 | PRODUCT_PROPERTY_OVERRIDES += \ |
484 | ro.vendor.vndk.version=26.1.0 |
485 | |
486 | # Override heap growth limit due to high display density on device |
487 | PRODUCT_PROPERTY_OVERRIDES += \ |
488 | dalvik.vm.heapgrowthlimit=256m |
489 | |
490 | |
491 | PRODUCT_PROPERTY_OVERRIDES += \ |
492 | ro.boot.fake_battery=42 |
493 | |
494 | #set audioflinger heapsize,for lowramdevice |
495 | #the default af heap size is 1M,it is not enough |
496 | PRODUCT_PROPERTY_OVERRIDES += \ |
497 | ro.af.client_heap_size_kbyte=1536 |
498 | |
499 | #fix android.permission2.cts.ProtectedBroadcastsTest |
500 | #PRODUCT_PACKAGES += \ |
501 | # TeleService |
502 | |
503 | #add copy alarm file to product |
504 | PRODUCT_COPY_FILES += \ |
505 | frameworks/base/data/sounds/Alarm_Beep_01.ogg:product/media/audio/alarms/Alarm_Beep_01.ogg |
506 |