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