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