2 # Copyright (C) 2021 The LineageOS Project
4 # SPDX-License-Identifier: Apache-2.0
7 $(call inherit-product
, vendor
/amlogic
/g12-common
/g12-common-vendor.mk
)
9 COMMON_PATH
:= device
/amlogic
/g12-common
12 PRODUCT_AAPT_PREF_CONFIG
:= tvdpi
15 PRODUCT_COPY_FILES
+= \
16 $(COMMON_PATH
)/audio
/audio_effects.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/audio_effects.xml \
17 $(COMMON_PATH
)/audio
/audio_policy_configuration.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/audio_policy_configuration.xml \
18 $(COMMON_PATH
)/audio
/audio_policy_configuration_dolby_ms12.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/audio_policy_configuration_dolby_ms12.xml \
19 $(COMMON_PATH
)/audio
/mixer_paths.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/mixer_paths.xml \
20 frameworks
/av
/services
/audiopolicy
/config
/a2dp_audio_policy_configuration.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/a2dp_audio_policy_configuration.xml \
21 frameworks
/av
/services
/audiopolicy
/config
/audio_policy_volumes.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/audio_policy_volumes.xml \
22 frameworks
/av
/services
/audiopolicy
/config
/default_volume_tables.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/default_volume_tables.xml \
23 frameworks
/av
/services
/audiopolicy
/config
/hearing_aid_audio_policy_configuration.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/hearing_aid_audio_policy_configuration.xml \
24 frameworks
/av
/services
/audiopolicy
/config
/msd_audio_policy_configuration.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/msd_audio_policy_configuration.xml \
25 frameworks
/av
/services
/audiopolicy
/config
/r_submix_audio_policy_configuration.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/r_submix_audio_policy_configuration.xml \
26 frameworks
/av
/services
/audiopolicy
/config
/surround_sound_configuration_5_0.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/surround_sound_configuration_5_0.xml \
27 frameworks
/av
/services
/audiopolicy
/config
/usb_audio_policy_configuration.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/usb_audio_policy_configuration.xml
30 android.hardware.audio@
2.0-service \
31 android.hardware.audio@
5.0-impl \
32 android.hardware.audio.effect@
5.0-impl \
33 android.hardware.soundtrigger@
2.2-impl \
35 audio.bluetooth.default \
36 audio.hearing_aid.default \
37 audio.r_submix.default \
42 android.hardware.bluetooth@
1.0-impl \
43 android.hardware.bluetooth@
1.0-service \
44 android.hardware.bluetooth.audio@
2.0-impl
47 TARGET_SCREEN_HEIGHT
:= 1080
48 TARGET_SCREEN_WIDTH
:= 1920
52 android.hardware.camera.provider@
2.4-legacy \
53 android.hardware.camera.provider@
2.5-legacy \
54 camera.device@
1.0-impl \
55 camera.device@
3.2-impl \
56 camera.device@
3.3-impl \
57 camera.device@
3.4-impl \
58 camera.device@
3.5-impl
61 PRODUCT_CHARACTERISTICS
:= tv
62 PRODUCT_IS_ATV
:= true
65 PRODUCT_COPY_FILES
+= \
66 $(COMMON_PATH
)/media
/media_codecs.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/media_codecs.xml \
67 $(COMMON_PATH
)/media
/media_codecs_performance.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/media_codecs_performance.xml \
68 $(COMMON_PATH
)/media
/media_codecs_profiles.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/media_codecs_profiles.xml \
69 $(COMMON_PATH
)/media
/media_codecs_profiles_V1_0.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/media_codecs_profiles_V1_0.xml \
70 $(COMMON_PATH
)/media
/media_profiles.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/media_profiles.xml \
71 $(COMMON_PATH
)/media
/media_profiles_V1_0.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/media_profiles_V1_0.xml
75 android.hardware.drm@
1.0-impl \
76 android.hardware.drm@
1.0-service \
77 android.hardware.drm@
1.3-service.clearkey
80 PRODUCT_DEFAULT_PROPERTY_OVERRIDES
+= ro.fastbootd.available
=true
81 PRODUCT_PACKAGES
+= fastbootd
83 ## File-system permissions
90 android.hardware.gatekeeper@
1.0-service.software
99 android.hardware.tv.cec@
1.0-impl \
100 android.hardware.tv.cec@
1.0-service
103 PRODUCT_PACKAGES
+= \
104 android.hardware.health@
2.0-service
107 PRODUCT_COPY_FILES
+= \
108 $(COMMON_PATH
)/init-files
/fstab.amlogic
:$(TARGET_COPY_OUT_VENDOR
)/etc
/fstab.amlogic \
109 $(COMMON_PATH
)/init-files
/init.amlogic.rc
:$(TARGET_COPY_OUT_VENDOR
)/etc
/init
/hw
/init.amlogic.rc \
110 $(COMMON_PATH
)/init-files
/init.amlogic.board.rc
:$(TARGET_COPY_OUT_VENDOR
)/etc
/init
/hw
/init.amlogic.board.rc \
111 $(COMMON_PATH
)/init-files
/init.amlogic.media.rc
:$(TARGET_COPY_OUT_VENDOR
)/etc
/init
/hw
/init.amlogic.media.rc \
112 $(COMMON_PATH
)/init-files
/init.amlogic.usb.rc
:$(TARGET_COPY_OUT_VENDOR
)/etc
/init
/hw
/init.amlogic.usb.rc \
113 $(COMMON_PATH
)/init-files
/init.amlogic.wifi.rc
:$(TARGET_COPY_OUT_VENDOR
)/etc
/init
/hw
/init.amlogic.wifi.rc \
114 $(COMMON_PATH
)/init-files
/init.recovery.amlogic.rc
:recovery
/root
/init.recovery.amlogic.rc \
115 $(COMMON_PATH
)/init-files
/ueventd.rc
:$(TARGET_COPY_OUT_VENDOR
)/ueventd.rc
118 PRODUCT_PACKAGES
+= \
124 PRODUCT_PACKAGES
+= \
125 libkeymaster4.vendor \
126 libkeymaster4support.vendor \
127 libkeymaster_messages.vendor \
128 libkeymaster_portable.vendor \
129 libpuresoftkeymasterdevice.vendor \
130 libsoft_attestation_cert.vendor
132 ifeq ($(TARGET_HAS_TEE
),false
)
133 PRODUCT_PACKAGES
+= \
134 android.hardware.keymaster@
4.1-service
138 PRODUCT_HOST_PACKAGES
+= \
142 PRODUCT_PACKAGES
+= \
143 android.hardware.memtrack@
1.0-impl \
144 android.hardware.memtrack@
1.0-service
147 DEVICE_PACKAGE_OVERLAYS
+= \
148 $(COMMON_PATH
)/overlay
149 PRODUCT_ENFORCE_RRO_TARGETS
:= *
152 BOARD_BUILD_SUPER_IMAGE_BY_DEFAULT
:= true
153 BUILDING_SUPER_EMPTY_IMAGE
:= true
154 PRODUCT_BUILD_SUPER_PARTITION
:= true
155 PRODUCT_USE_DYNAMIC_PARTITIONS
:= true
158 PRODUCT_COPY_FILES
+= \
159 frameworks
/native
/data
/etc
/android.hardware.bluetooth.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/android.hardware.bluetooth.xml \
160 frameworks
/native
/data
/etc
/android.hardware.bluetooth_le.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/android.hardware.bluetooth_le.xml \
161 frameworks
/native
/data
/etc
/android.hardware.ethernet.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/android.hardware.ethernet.xml \
162 frameworks
/native
/data
/etc
/android.hardware.gamepad.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/android.hardware.gamepad.xml \
163 frameworks
/native
/data
/etc
/android.hardware.hdmi.cec.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/android.hardware.hdmi.cec.xml \
164 frameworks
/native
/data
/etc
/android.hardware.location.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/android.hardware.location.xml \
165 frameworks
/native
/data
/etc
/android.hardware.opengles.aep.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/android.hardware.opengles.aep.xml \
166 frameworks
/native
/data
/etc
/android.hardware.usb.host.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/android.hardware.usb.host.xml \
167 frameworks
/native
/data
/etc
/android.hardware.vulkan.compute-0.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/android.hardware.vulkan.compute.xml \
168 frameworks
/native
/data
/etc
/android.hardware.vulkan.level-1.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/android.hardware.vulkan.level.xml \
169 frameworks
/native
/data
/etc
/android.hardware.vulkan.version-1_1.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/android.hardware.vulkan.version.xml \
170 frameworks
/native
/data
/etc
/android.hardware.wifi.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/android.hardware.wifi.xml \
171 frameworks
/native
/data
/etc
/android.hardware.wifi.direct.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/android.hardware.wifi.direct.xml \
172 frameworks
/native
/data
/etc
/android.hardware.wifi.passpoint.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/android.hardware.wifi.passpoint.xml \
173 frameworks
/native
/data
/etc
/android.software.app_widgets.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/android.software.app_widgets.xml \
174 frameworks
/native
/data
/etc
/android.software.backup.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/android.software.backup.xml \
175 frameworks
/native
/data
/etc
/android.software.cts.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/android.software.cts.xml \
176 frameworks
/native
/data
/etc
/android.software.device_admin.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/android.software.device_admin.xml \
177 frameworks
/native
/data
/etc
/android.software.ipsec_tunnels.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/android.software.ipsec_tunnels.xml \
178 frameworks
/native
/data
/etc
/android.software.midi.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/android.software.midi.xml \
179 frameworks
/native
/data
/etc
/android.software.verified_boot.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/android.software.verified_boot.xml \
180 frameworks
/native
/data
/etc
/android.software.vulkan.deqp.level-2019-03-01.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/android.software.vulkan.deqp.level-2019-03-01.xml.xml \
181 frameworks
/native
/data
/etc
/android.software.vulkan.deqp.level-2020-03-01.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/android.software.vulkan.deqp.level.xml
184 TARGET_AMLOGIC_SOC ?
= g12a
187 PRODUCT_PACKAGES
+= \
188 android.hardware.power@
1.0-impl \
189 android.hardware.power@
1.0-service
192 PRODUCT_SHIPPING_API_LEVEL
:= 29
195 PRODUCT_PACKAGES
+= \
196 vendor.lineage.trust@
1.0-service
199 PRODUCT_PACKAGES
+= \
200 android.hardware.wifi@
1.0-service \