blob: 313fe4b891153bd75bb7d46f0a72de477e582c96
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_PROPERTY_OVERRIDES += \ |
96 | ro.carrier=unknown \ |
97 | net.tethering.noprovisioning=true |
98 | |
99 | PRODUCT_PACKAGES += \ |
100 | BasicDreams \ |
101 | CalendarProvider \ |
102 | CaptivePortalLogin \ |
103 | CertInstaller \ |
104 | ExternalStorageProvider \ |
105 | FusedLocation \ |
106 | InputDevices \ |
107 | KeyChain \ |
108 | Keyguard \ |
109 | PacProcessor \ |
110 | libpac \ |
111 | ProxyHandler \ |
112 | DroidTvSettings \ |
113 | SharedStorageBackup \ |
114 | VpnDialogs |
115 | |
116 | $(call inherit-product-if-exists, frameworks/base/data/fonts/fonts.mk) |
117 | $(call inherit-product-if-exists, external/google-fonts/dancing-script/fonts.mk) |
118 | $(call inherit-product-if-exists, external/google-fonts/carrois-gothic-sc/fonts.mk) |
119 | $(call inherit-product-if-exists, external/google-fonts/coming-soon/fonts.mk) |
120 | $(call inherit-product-if-exists, external/google-fonts/cutive-mono/fonts.mk) |
121 | $(call inherit-product-if-exists, external/noto-fonts/fonts.mk) |
122 | $(call inherit-product-if-exists, external/naver-fonts/fonts.mk) |
123 | $(call inherit-product-if-exists, external/roboto-fonts/fonts.mk) |
124 | $(call inherit-product-if-exists, frameworks/base/data/keyboards/keyboards.mk) |
125 | $(call inherit-product-if-exists, frameworks/webview/chromium/chromium.mk) |
126 | $(call inherit-product, build/target/product/core_base.mk) |
127 | |
128 | #default hardware composer version is 2.0 |
129 | TARGET_USES_HWC2 := true |
130 | |
131 | ifneq ($(wildcard $(BOARD_AML_VENDOR_PATH)/frameworks/av/LibPlayer),) |
132 | WITH_LIBPLAYER_MODULE := true |
133 | else |
134 | WITH_LIBPLAYER_MODULE := false |
135 | endif |
136 | |
137 | # set soft stagefright extractor&decoder as defaults |
138 | WITH_SOFT_AM_EXTRACTOR_DECODER := true |
139 | |
140 | PRODUCT_PROPERTY_OVERRIDES += \ |
141 | debug.hwui.render_dirty_regions=false \ |
142 | ro.hwui.texture_cache_size=64.0f \ |
143 | camera.disable_zsl_mode=1 \ |
144 | debug.hwui.use_buffer_age=false |
145 | |
146 | # USB camera default face |
147 | PRODUCT_PROPERTY_OVERRIDES += \ |
148 | rw.camera.usb.faceback=true |
149 | |
150 | ifneq ($(TARGET_BUILD_GOOGLE_ATV), true) |
151 | PRODUCT_PACKAGES += \ |
152 | AppInstaller \ |
153 | DocumentsUI \ |
154 | FileBrowser \ |
155 | RemoteIME \ |
156 | DeskClock \ |
157 | Launcher2 \ |
158 | MusicFX \ |
159 | Browser2 \ |
160 | LatinIME \ |
161 | Settings \ |
162 | Camera2 \ |
163 | Music |
164 | endif |
165 | |
166 | PRODUCT_PACKAGES += \ |
167 | droidlogic \ |
168 | droidlogic-res \ |
169 | droidlogic.software.core.xml \ |
170 | systemcontrol \ |
171 | systemcontrol_static \ |
172 | libsystemcontrolservice \ |
173 | vendor.amlogic.hardware.systemcontrol@1.0_vendor |
174 | |
175 | PRODUCT_PACKAGES += \ |
176 | OTAUpgrade \ |
177 | VideoPlayer \ |
178 | SubTitle \ |
179 | libdig \ |
180 | ReadLog \ |
181 | BluetoothRemote |
182 | |
183 | PRODUCT_PACKAGES += \ |
184 | hostapd \ |
185 | wpa_supplicant \ |
186 | wpa_supplicant.conf \ |
187 | dhcpcd.conf \ |
188 | libds_jni \ |
189 | libsrec_jni \ |
190 | system_key_server \ |
191 | libwifi-hal \ |
192 | libwpa_client \ |
193 | libGLES_mali \ |
194 | network \ |
195 | sdptool \ |
196 | e2fsck \ |
197 | mkfs.exfat \ |
198 | mount.exfat \ |
199 | fsck.exfat \ |
200 | ntfs-3g \ |
201 | ntfsfix \ |
202 | mkntfs \ |
203 | libxml2 \ |
204 | gralloc.amlogic \ |
205 | power.amlogic \ |
206 | hwcomposer.amlogic \ |
207 | memtrack.amlogic \ |
208 | screen_source.amlogic \ |
209 | thermal.amlogic |
210 | |
211 | #glscaler and 3d format api |
212 | PRODUCT_PACKAGES += \ |
213 | libdisplaysetting |
214 | |
215 | #native image player surface overlay so |
216 | PRODUCT_PACKAGES += \ |
217 | libsurfaceoverlay_jni |
218 | |
219 | #native gif decode so |
220 | PRODUCT_PACKAGES += \ |
221 | libgifdecode_jni |
222 | |
223 | PRODUCT_PACKAGES += libomx_av_core_alt \ |
224 | libOmxCore \ |
225 | libOmxVideo \ |
226 | libthreadworker_alt \ |
227 | libdatachunkqueue_alt \ |
228 | libOmxBase \ |
229 | libomx_framework_alt \ |
230 | libomx_worker_peer_alt \ |
231 | libfpscalculator_alt \ |
232 | libomx_clock_utils_alt \ |
233 | libomx_timed_task_queue_alt \ |
234 | libstagefrighthw \ |
235 | libsecmem \ |
236 | secmem \ |
237 | 2c1a33c0-44cc-11e5-bc3b0002a5d5c51b |
238 | |
239 | # Dm-verity |
240 | ifeq ($(BUILD_WITH_DM_VERITY), true) |
241 | PRODUCT_SYSTEM_VERITY_PARTITION = /dev/block/system |
242 | ifneq ($(BOARD_OLD_PARTITION),true) |
243 | PRODUCT_VENDOR_VERITY_PARTITION = /dev/block/vendor |
244 | endif |
245 | # Provides dependencies necessary for verified boot |
246 | PRODUCT_SUPPORTS_BOOT_SIGNER := true |
247 | PRODUCT_SUPPORTS_VERITY := true |
248 | PRODUCT_SUPPORTS_VERITY_FEC := true |
249 | # The dev key is used to sign boot and recovery images, and the verity |
250 | # metadata table. Actual product deliverables will be re-signed by hand. |
251 | # We expect this file to exist with the suffixes ".x509.pem" and ".pk8". |
252 | PRODUCT_VERITY_SIGNING_KEY := device/amlogic/common/security/verity |
253 | ifneq ($(TARGET_USE_SECURITY_DM_VERITY_MODE_WITH_TOOL),true) |
254 | PRODUCT_PACKAGES += \ |
255 | verity_key.amlogic |
256 | endif |
257 | endif |
258 | |
259 | ######################################################################### |
260 | # |
261 | # App optimization |
262 | # |
263 | ######################################################################### |
264 | #ifeq ($(BUILD_WITH_APP_OPTIMIZATION),true) |
265 | |
266 | PRODUCT_COPY_FILES += \ |
267 | device/amlogic/common/optimization/liboptimization_32.so:$(TARGET_COPY_OUT_VENDOR)/lib/liboptimization.so \ |
268 | device/amlogic/common/optimization/config:$(TARGET_COPY_OUT_VENDOR)/package_config/config |
269 | |
270 | PRODUCT_PROPERTY_OVERRIDES += \ |
271 | ro.app.optimization=true |
272 | |
273 | ifneq ($(ANDROID_BUILD_TYPE), 32) |
274 | PRODUCT_COPY_FILES += \ |
275 | device/amlogic/common/optimization/liboptimization_64.so:$(TARGET_COPY_OUT_VENDOR)/lib64/liboptimization.so |
276 | endif |
277 | #endif |
278 | |
279 | ######################################################################### |
280 | # |
281 | # Alarm white and black list |
282 | # |
283 | ######################################################################### |
284 | PRODUCT_COPY_FILES += \ |
285 | device/amlogic/common/alarm/alarm_blacklist.txt:$(TARGET_COPY_OUT_VENDOR)/etc/alarm_blacklist.txt \ |
286 | device/amlogic/common/alarm/alarm_whitelist.txt:$(TARGET_COPY_OUT_VENDOR)/etc/alarm_whitelist.txt |
287 | |
288 | ######################################################################### |
289 | # |
290 | # Secure OS |
291 | # |
292 | ######################################################################### |
293 | ifeq ($(TARGET_USE_OPTEEOS),true) |
294 | ifeq ($(TARGET_KERNEL_BUILT_FROM_SOURCE), true) |
295 | PRODUCT_PACKAGES += \ |
296 | optee_armtz \ |
297 | optee |
298 | endif |
299 | |
300 | PRODUCT_PACKAGES += \ |
301 | tee-supplicant \ |
302 | libteec \ |
303 | tee_helloworld \ |
304 | tee_crypto \ |
305 | tee_xtest \ |
306 | tdk_auto_test \ |
307 | tee_helloworld_ta \ |
308 | tee_fail_test_ta \ |
309 | tee_crypt_ta \ |
310 | tee_os_test_ta \ |
311 | tee_rpc_test_ta \ |
312 | tee_sims_ta \ |
313 | tee_storage_ta \ |
314 | tee_storage2_ta \ |
315 | tee_storage_benchmark_ta \ |
316 | tee_aes_perf_ta \ |
317 | tee_sha_perf_ta \ |
318 | tee_sdp_basic_ta \ |
319 | tee_concurrent_ta \ |
320 | tee_concurrent_large_ta |
321 | |
322 | ifeq ($(TARGET_USE_HW_KEYMASTER),true) |
323 | PRODUCT_PACKAGES += \ |
324 | keystore.amlogic |
325 | endif |
326 | endif |
327 | |
328 | ######################################################################### |
329 | # |
330 | # OTA PROPERTY |
331 | # |
332 | ######################################################################### |
333 | PRODUCT_PROPERTY_OVERRIDES += \ |
334 | ro.product.firmware=00502001 \ |
335 | ro.product.otaupdateurl=http://10.28.11.53:8080/otaupdate/update |
336 | ######################################################################### |
337 | # |
338 | # hardware interfaces |
339 | # |
340 | ######################################################################### |
341 | PRODUCT_PACKAGES += \ |
342 | android.hardware.soundtrigger@2.0-impl \ |
343 | android.hardware.wifi@1.0-service \ |
344 | android.hardware.usb@1.0-service |
345 | |
346 | #workround because android.hardware.wifi@1.0-service has not permission to insmod ko |
347 | PRODUCT_COPY_FILES += \ |
348 | 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 |
349 | |
350 | #Audio HAL |
351 | PRODUCT_PACKAGES += \ |
352 | android.hardware.audio@2.0-impl \ |
353 | android.hardware.audio.effect@2.0-impl \ |
354 | android.hardware.audio@2.0-service |
355 | #Camera HAL |
356 | ifneq ($(TARGET_BUILD_GOOGLE_ATV), true) |
357 | PRODUCT_PACKAGES += \ |
358 | android.hardware.camera.provider@2.4-impl \ |
359 | android.hardware.camera.provider@2.4-service |
360 | endif |
361 | |
362 | #Power HAL |
363 | PRODUCT_PACKAGES += \ |
364 | android.hardware.power@1.0-impl \ |
365 | android.hardware.power@1.0-service |
366 | |
367 | #Memtack HAL |
368 | PRODUCT_PACKAGES += \ |
369 | android.hardware.memtrack@1.0-impl \ |
370 | android.hardware.memtrack@1.0-service |
371 | |
372 | # Gralloc HAL |
373 | PRODUCT_PACKAGES += \ |
374 | android.hardware.graphics.mapper@2.0-impl \ |
375 | android.hardware.graphics.allocator@2.0-impl \ |
376 | android.hardware.graphics.allocator@2.0-service |
377 | |
378 | # HW Composer |
379 | PRODUCT_PACKAGES += \ |
380 | android.hardware.graphics.composer@2.1-impl \ |
381 | android.hardware.graphics.composer@2.1-service |
382 | |
383 | # dumpstate binderized |
384 | PRODUCT_PACKAGES += \ |
385 | android.hardware.dumpstate@1.0-service.droidlogic |
386 | |
387 | |
388 | # Keymaster HAL |
389 | PRODUCT_PACKAGES += \ |
390 | android.hardware.keymaster@3.0-impl \ |
391 | android.hardware.keymaster@3.0-service |
392 | |
393 | # new gatekeeper HAL |
394 | PRODUCT_PACKAGES += \ |
395 | gatekeeper.amlogic \ |
396 | android.hardware.gatekeeper@1.0-impl \ |
397 | android.hardware.gatekeeper@1.0-service |
398 | |
399 | #DRM |
400 | PRODUCT_PACKAGES += \ |
401 | android.hardware.drm@1.0-impl \ |
402 | android.hardware.drm@1.0-service |
403 | |
404 | # HDMITX CEC HAL |
405 | PRODUCT_PACKAGES += \ |
406 | android.hardware.tv.cec@1.0-impl \ |
407 | android.hardware.tv.cec@1.0-service \ |
408 | hdmicecd \ |
409 | libhdmicec \ |
410 | libhdmicec_jni \ |
411 | vendor.amlogic.hardware.hdmicec@1.0_vendor \ |
412 | hdmi_cec.amlogic |
413 | |
414 | #light hal |
415 | PRODUCT_PACKAGES += \ |
416 | android.hardware.light@2.0-impl \ |
417 | android.hardware.light@2.0-service |
418 | |
419 | #thermal hal |
420 | PRODUCT_PACKAGES += \ |
421 | android.hardware.thermal@1.0-impl \ |
422 | android.hardware.thermal@1.0-service |
423 | |
424 | #health hal |
425 | PRODUCT_PACKAGES += \ |
426 | android.hardware.health@1.0-impl \ |
427 | android.hardware.health@1.0-service |
428 | |
429 | # DroidVold |
430 | PRODUCT_PACKAGES += \ |
431 | vendor.amlogic.hardware.droidvold@10 \ |
432 | vendor.amlogic.hardware.droidvold@10_vendor \ |
433 | vendor.amlogic.hardware.droidvold-V1.0-java |
434 | |
435 | ifeq ($(TARGET_BUILD_GOOGLE_ATV), true) |
436 | PRODUCT_IS_ATV := true |
437 | PRODUCT_COPY_FILES += \ |
438 | $(LOCAL_PATH)/tutorial-library-google.zip:system/media/tutorial-library-google.zip |
439 | endif |
440 | |
441 | PRODUCT_PROPERTY_OVERRIDES += \ |
442 | ro.sf.disable_triple_buffer=1 |
443 | |
444 | # ro.product.first_api_level indicates the first api level the device has commercially launched on. |
445 | PRODUCT_PROPERTY_OVERRIDES += \ |
446 | ro.product.first_api_level=26 |
447 | |
448 | # VNDK version is specified |
449 | PRODUCT_PROPERTY_OVERRIDES += \ |
450 | ro.vendor.vndk.version=26.1.0 |
451 | |
452 | PRODUCT_PROPERTY_OVERRIDES += \ |
453 | ro.treble.enabled=true |
454 | |
455 | #for cts test disable quota |
456 | PRODUCT_PROPERTY_OVERRIDES += \ |
457 | fw.disable_quota=true |
458 | |
459 | PRODUCT_PACKAGES += \ |
460 | VendorOverlay |
461 | |
462 | PRODUCT_PROPERTY_OVERRIDES += \ |
463 | ro.boot.vendor.overlay.theme=VendorOverlay |
464 | |
465 | PRODUCT_PACKAGES += \ |
466 | android.hardware.renderscript@1.0.vndk-sp\ |
467 | android.hardware.graphics.allocator@2.0.vndk-sp\ |
468 | android.hardware.graphics.mapper@2.0.vndk-sp\ |
469 | android.hardware.graphics.common@1.0.vndk-sp\ |
470 | libhwbinder.vndk-sp\ |
471 | libbase.vndk-sp\ |
472 | libcutils.vndk-sp\ |
473 | libhardware.vndk-sp\ |
474 | libhidlbase.vndk-sp\ |
475 | libhidltransport.vndk-sp\ |
476 | libutils.vndk-sp\ |
477 | libc++.vndk-sp\ |
478 | libRS_internal.vndk-sp\ |
479 | libRSDriver.vndk-sp\ |
480 | libRSCpuRef.vndk-sp\ |
481 | libbcinfo.vndk-sp\ |
482 | libblas.vndk-sp\ |
483 | libft2.vndk-sp\ |
484 | libpng.vndk-sp\ |
485 | libcompiler_rt.vndk-sp\ |
486 | libbacktrace.vndk-sp\ |
487 | libunwind.vndk-sp\ |
488 | liblzma.vndk-sp\ |
489 |