blob: 1b3fe22456e6e072d74bba6aad1bc23f3819275f [file] [log] [blame]
bohu268c72f2018-06-09 08:19:08 -07001#
2# Copyright (C) 2018 The Android Open Source Project
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15
16#
17# This file is to configure vendor/data partitions of emulator-related products
18#
bohu80021202020-01-08 05:58:06 -080019$(call inherit-product-if-exists, frameworks/native/build/phone-xhdpi-2048-dalvik-heap.mk)
bohu268c72f2018-06-09 08:19:08 -070020
bohu50ac1e22019-06-07 09:41:23 -070021ifeq ($(QEMU_DISABLE_AVB),true)
bohu8e19bbe2019-08-29 22:49:58 -070022 ifeq ($(QEMU_USE_SYSTEM_EXT_PARTITIONS),true)
23 PRODUCT_COPY_FILES += \
24 device/generic/goldfish/data/etc/dummy.vbmeta.img:$(PRODUCT_OUT)/vbmeta.img \
25 device/generic/goldfish/fstab.ranchu.initrd.noavb.ex:$(TARGET_COPY_OUT_RAMDISK)/fstab.ranchu \
26 device/generic/goldfish/fstab.ranchu.noavb.ex:$(TARGET_COPY_OUT_VENDOR)/etc/fstab.ranchu
27 else
28 PRODUCT_COPY_FILES += \
29 device/generic/goldfish/data/etc/dummy.vbmeta.img:$(PRODUCT_OUT)/vbmeta.img \
30 device/generic/goldfish/fstab.ranchu.initrd.noavb:$(TARGET_COPY_OUT_RAMDISK)/fstab.ranchu \
31 device/generic/goldfish/fstab.ranchu.noavb:$(TARGET_COPY_OUT_VENDOR)/etc/fstab.ranchu
32 endif
bohu50ac1e22019-06-07 09:41:23 -070033endif
34
bohu7efb22a2020-01-06 17:09:53 -080035PRODUCT_SYSTEM_EXT_PROPERTIES += ro.lockscreen.disable.default=1
bohu8e19bbe2019-08-29 22:49:58 -070036ifeq ($(QEMU_USE_SYSTEM_EXT_PARTITIONS),true)
37PRODUCT_COPY_FILES += \
38 device/generic/goldfish/fstab.ranchu.initrd.ex:$(TARGET_COPY_OUT_RAMDISK)/fstab.ranchu \
39 device/generic/goldfish/fstab.ranchu.ex:$(TARGET_COPY_OUT_VENDOR)/etc/fstab.ranchu
40endif
41
42
Steven Moreland38439882019-08-22 12:44:25 -070043DISABLE_RILD_OEM_HOOK := true
44
Peter Collingbourne094ab362019-10-15 18:37:19 -070045DEVICE_MANIFEST_FILE := device/generic/goldfish/manifest.xml
46
bohu268c72f2018-06-09 08:19:08 -070047# Device modules
48PRODUCT_PACKAGES += \
Lingfeng Yange835ecc2019-02-02 20:46:23 -080049 vulkan.ranchu \
Lingfeng Yang9c195c72019-08-27 08:44:30 -070050 libandroidemu \
Lingfeng Yang48d30292018-09-28 15:53:24 -070051 libOpenglCodecCommon \
bohu268c72f2018-06-09 08:19:08 -070052 libOpenglSystemCommon \
bohu268c72f2018-06-09 08:19:08 -070053 libEGL_swiftshader \
54 libGLESv1_CM_swiftshader \
55 libGLESv2_swiftshader \
Bjoern Johanssonfda217c2018-06-14 16:02:30 -070056 libgoldfish-ril \
bohu268c72f2018-06-09 08:19:08 -070057 qemu-props \
bohu268c72f2018-06-09 08:19:08 -070058 gps.goldfish \
59 gps.ranchu \
60 fingerprint.goldfish \
bohu268c72f2018-06-09 08:19:08 -070061 audio.primary.goldfish \
62 audio.primary.goldfish_legacy \
bohu85185e72020-01-13 17:22:43 -080063 stagefright \
bohu268c72f2018-06-09 08:19:08 -070064 fingerprint.ranchu \
Bo Hub64da5c2020-01-07 23:54:25 +000065 android.hardware.graphics.composer@2.1-impl \
66 android.hardware.graphics.composer@2.1-service \
Roman Kiryanovf13e6172020-01-28 13:47:42 -080067 android.hardware.graphics.allocator@3.0-service \
Lingfeng Yang7b301a52020-02-25 16:14:06 -080068 android.hardware.graphics.mapper@3.0-impl-ranchu \
bohu268c72f2018-06-09 08:19:08 -070069 hwcomposer.ranchu \
70 toybox_vendor \
71 android.hardware.audio@2.0-service \
72 android.hardware.wifi@1.0-service \
73 android.hardware.biometrics.fingerprint@2.1-service \
74 sh_vendor \
Bjoern Johansson6ba92a42019-06-24 14:23:48 -070075 ip_vendor \
bohu8d693282018-11-28 09:19:40 -080076 iw_vendor \
bohu268c72f2018-06-09 08:19:08 -070077 audio.r_submix.default \
78 local_time.default \
Huan Song09bec372019-09-30 12:41:39 -070079 SdkSetup \
bohu89f03882019-12-06 09:04:51 -080080 libstagefrighthw \
81 libstagefright_goldfish_vpxdec \
bohu272f7802019-12-11 09:27:22 -080082 libstagefright_goldfish_avcdec \
Huan Song09bec372019-09-30 12:41:39 -070083 MultiDisplayProvider
bohu268c72f2018-06-09 08:19:08 -070084
Peter Collingbourne094ab362019-10-15 18:37:19 -070085ifneq ($(BUILD_EMULATOR_OPENGL),false)
86PRODUCT_PACKAGES += \
87 libGLESv1_CM_emulation \
88 lib_renderControl_enc \
89 libEGL_emulation \
90 libGLESv2_enc \
91 libvulkan_enc \
92 libGLESv2_emulation \
93 libGLESv1_enc
94endif
95
bohu268c72f2018-06-09 08:19:08 -070096PRODUCT_PACKAGES += \
Lingfeng Yangab253e12019-11-22 14:39:36 -080097 android.hardware.audio@5.0-impl:32 \
98 android.hardware.audio.effect@5.0-impl:32 \
bohu268c72f2018-06-09 08:19:08 -070099 android.hardware.soundtrigger@2.0-impl
100
101PRODUCT_PACKAGES += \
Roman Kiryanovcf241262020-03-26 12:16:06 -0700102 android.hardware.health@2.1-service \
103 android.hardware.health@2.1-impl \
huans4772b3d2018-06-15 10:56:16 -0700104
105PRODUCT_PACKAGES += \
Rob Barnesf96a0dc2019-09-10 13:23:13 -0600106 android.hardware.keymaster@4.0-impl \
107 android.hardware.keymaster@4.0-service
bohu268c72f2018-06-09 08:19:08 -0700108
109PRODUCT_PACKAGES += \
Jim Kayeb8f47812018-06-18 16:24:10 -0700110 DisplayCutoutEmulationEmu01Overlay
111
bohud69c26b2018-06-20 08:45:13 -0700112ifneq ($(EMULATOR_VENDOR_NO_GNSS),true)
bohu268c72f2018-06-09 08:19:08 -0700113PRODUCT_PACKAGES += \
114 android.hardware.gnss@1.0-service \
115 android.hardware.gnss@1.0-impl
Peter Collingbourne094ab362019-10-15 18:37:19 -0700116DEVICE_MANIFEST_FILE += device/generic/goldfish/manifest.gnss.xml
bohud69c26b2018-06-20 08:45:13 -0700117endif
bohu268c72f2018-06-09 08:19:08 -0700118
Peter Collingbourne094ab362019-10-15 18:37:19 -0700119ifneq ($(EMULATOR_VENDOR_NO_SENSORS),true)
bohu268c72f2018-06-09 08:19:08 -0700120PRODUCT_PACKAGES += \
121 android.hardware.sensors@1.0-impl \
Peter Collingbourne094ab362019-10-15 18:37:19 -0700122 android.hardware.sensors@1.0-service \
123 sensors.ranchu
124DEVICE_MANIFEST_FILE += device/generic/goldfish/manifest.sensors.xml
125endif
bohu268c72f2018-06-09 08:19:08 -0700126
127PRODUCT_PACKAGES += \
128 android.hardware.drm@1.0-service \
huans85d26b82018-06-13 16:14:28 -0700129 android.hardware.drm@1.0-impl \
bohue7064d72019-01-17 17:16:18 -0800130 android.hardware.drm@1.2-service.clearkey \
131 android.hardware.drm@1.2-service.widevine
bohu268c72f2018-06-09 08:19:08 -0700132
133PRODUCT_PACKAGES += \
Roman Kiryanov2a736c62020-03-20 16:44:58 -0700134 android.hardware.power-service.example \
Haitao Shand9689ef2018-08-17 11:58:33 -0700135
Matt Wachowskif6bb9232018-11-28 09:34:45 -0800136PRODUCT_PROPERTY_OVERRIDES += ro.control_privapp_permissions=enforce
Haitao Shand9689ef2018-08-17 11:58:33 -0700137PRODUCT_PROPERTY_OVERRIDES += ro.hardware.power=ranchu
bohu425d5b12019-07-25 07:33:01 -0700138PRODUCT_PROPERTY_OVERRIDES += ro.crypto.volume.filenames_mode=aes-256-cts
bohu268c72f2018-06-09 08:19:08 -0700139
Lingfeng Yang1655dc72019-04-05 12:08:25 -0700140PRODUCT_PROPERTY_OVERRIDES += persist.sys.zram_enabled=1 \
141
Roman Kiryanov34e2e332020-03-23 14:21:59 -0700142PRODUCT_PACKAGES += \
143 android.hardware.dumpstate@1.1-service.example \
144
Lingfeng Yangfc5f7412020-03-12 16:53:23 -0700145# Prevent logcat from getting canceled early on in boot
146PRODUCT_PROPERTY_OVERRIDES += ro.logd.size=1M \
147
Peter Collingbourne094ab362019-10-15 18:37:19 -0700148ifneq ($(EMULATOR_VENDOR_NO_CAMERA),true)
bohu268c72f2018-06-09 08:19:08 -0700149PRODUCT_PACKAGES += \
150 camera.device@1.0-impl \
151 android.hardware.camera.provider@2.4-service \
152 android.hardware.camera.provider@2.4-impl \
Peter Collingbourne094ab362019-10-15 18:37:19 -0700153 camera.goldfish \
154 camera.goldfish.jpeg \
155 camera.ranchu \
156 camera.ranchu.jpeg
157DEVICE_MANIFEST_FILE += device/generic/goldfish/manifest.camera.xml
158endif
bohu268c72f2018-06-09 08:19:08 -0700159
160PRODUCT_PACKAGES += \
Janis Danisevskis4c1d3392019-06-06 20:01:50 -0700161 android.hardware.gatekeeper@1.0-service.software
bohu268c72f2018-06-09 08:19:08 -0700162
163# WiFi: vendor side
164PRODUCT_PACKAGES += \
Roman Kiryanov5cd94a92020-03-05 12:02:13 -0800165 mac80211_create_radios \
bohu268c72f2018-06-09 08:19:08 -0700166 createns \
167 dhcpclient \
bohu268c72f2018-06-09 08:19:08 -0700168 execns \
169 hostapd \
Bjoern Johansson880e7082018-05-15 15:04:53 -0700170 hostapd_nohidl \
Bjoern Johansson873eee62018-09-06 15:39:12 -0700171 netmgr \
Bjoern Johansson97e05932019-08-01 11:32:18 -0700172 wifi_forwarder \
bohu268c72f2018-06-09 08:19:08 -0700173 wpa_supplicant \
174
Lingfeng Yang2f6d30c2019-11-22 14:35:44 -0800175# Thermal
176PRODUCT_PACKAGES += \
177 android.hardware.thermal@2.0-service.mock
178
179# Atrace
180PRODUCT_PACKAGES += \
181 android.hardware.atrace@1.0-service
182
Roman Kiryanov11bd7ca2019-11-25 10:39:52 -0800183# Vibrator
184PRODUCT_PACKAGES += \
185 android.hardware.vibrator-service.example
Roman Kiryanovb6889742019-04-15 11:13:57 -0700186
Lingfeng Yangb8233672019-11-22 14:44:43 -0800187# Authsecret
188PRODUCT_PACKAGES += \
189 android.hardware.authsecret@1.0-service
190
Lingfeng Yang702bf612019-11-22 14:46:35 -0800191# Input Classifier HAL
192PRODUCT_PACKAGES += \
193 android.hardware.input.classifier@1.0-service.default
194
Roman Kiryanovb1e6d8a2020-03-26 14:20:26 -0700195# lights
196PRODUCT_PACKAGES += \
197 android.hardware.lights-service.example
198
Lingfeng Yang65f98342019-11-22 14:57:55 -0800199# power stats
200PRODUCT_PACKAGES += \
201 android.hardware.power.stats@1.0-service.mock
202
bohua0427212019-05-20 15:22:48 -0700203# Goldfish does not support ION needed for Codec 2.0
204PRODUCT_PROPERTY_OVERRIDES += \
205 debug.stagefright.ccodec=0
206
bohu268c72f2018-06-09 08:19:08 -0700207PRODUCT_COPY_FILES += \
bohud0fb8a42019-03-07 22:41:54 -0800208 device/generic/goldfish/fstab.ranchu.initrd:$(TARGET_COPY_OUT_RAMDISK)/fstab.ranchu \
bohu268c72f2018-06-09 08:19:08 -0700209 device/generic/goldfish/data/etc/apns-conf.xml:data/misc/apns/apns-conf.xml \
bohu7e987592019-03-03 15:44:41 -0800210 device/generic/goldfish/data/etc/local.prop:data/local.prop \
bohu268c72f2018-06-09 08:19:08 -0700211 device/generic/goldfish/init.ranchu-core.sh:$(TARGET_COPY_OUT_VENDOR)/bin/init.ranchu-core.sh \
212 device/generic/goldfish/init.ranchu-net.sh:$(TARGET_COPY_OUT_VENDOR)/bin/init.ranchu-net.sh \
213 device/generic/goldfish/wifi/init.wifi.sh:$(TARGET_COPY_OUT_VENDOR)/bin/init.wifi.sh \
214 device/generic/goldfish/init.ranchu.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.ranchu.rc \
215 device/generic/goldfish/fstab.ranchu:$(TARGET_COPY_OUT_VENDOR)/etc/fstab.ranchu \
216 device/generic/goldfish/ueventd.ranchu.rc:$(TARGET_COPY_OUT_VENDOR)/ueventd.rc \
217 device/generic/goldfish/input/goldfish_rotary.idc:$(TARGET_COPY_OUT_VENDOR)/usr/idc/goldfish_rotary.idc \
Weilun Du70d41852019-08-15 10:59:46 -0700218 device/generic/goldfish/input/qwerty2.idc:$(TARGET_COPY_OUT_VENDOR)/usr/idc/qwerty2.idc \
219 device/generic/goldfish/input/qwerty.kl:$(TARGET_COPY_OUT_VENDOR)/usr/keylayout/qwerty.kl \
Weilun Du41c6d922019-04-01 20:41:56 -0700220 device/generic/goldfish/input/virtio_input_multi_touch_1.idc:$(TARGET_COPY_OUT_VENDOR)/usr/idc/virtio_input_multi_touch_1.idc \
221 device/generic/goldfish/input/virtio_input_multi_touch_2.idc:$(TARGET_COPY_OUT_VENDOR)/usr/idc/virtio_input_multi_touch_2.idc \
Weilun Du40ab2402019-05-14 15:10:25 -0700222 device/generic/goldfish/input/virtio_input_multi_touch_3.idc:$(TARGET_COPY_OUT_VENDOR)/usr/idc/virtio_input_multi_touch_3.idc \
223 device/generic/goldfish/input/virtio_input_multi_touch_4.idc:$(TARGET_COPY_OUT_VENDOR)/usr/idc/virtio_input_multi_touch_4.idc \
224 device/generic/goldfish/input/virtio_input_multi_touch_5.idc:$(TARGET_COPY_OUT_VENDOR)/usr/idc/virtio_input_multi_touch_5.idc \
225 device/generic/goldfish/input/virtio_input_multi_touch_6.idc:$(TARGET_COPY_OUT_VENDOR)/usr/idc/virtio_input_multi_touch_6.idc \
226 device/generic/goldfish/input/virtio_input_multi_touch_7.idc:$(TARGET_COPY_OUT_VENDOR)/usr/idc/virtio_input_multi_touch_7.idc \
227 device/generic/goldfish/input/virtio_input_multi_touch_8.idc:$(TARGET_COPY_OUT_VENDOR)/usr/idc/virtio_input_multi_touch_8.idc \
228 device/generic/goldfish/input/virtio_input_multi_touch_9.idc:$(TARGET_COPY_OUT_VENDOR)/usr/idc/virtio_input_multi_touch_9.idc \
229 device/generic/goldfish/input/virtio_input_multi_touch_10.idc:$(TARGET_COPY_OUT_VENDOR)/usr/idc/virtio_input_multi_touch_10.idc \
230 device/generic/goldfish/input/virtio_input_multi_touch_11.idc:$(TARGET_COPY_OUT_VENDOR)/usr/idc/virtio_input_multi_touch_11.idc \
bohu268c72f2018-06-09 08:19:08 -0700231 device/generic/goldfish/data/etc/config.ini:config.ini \
232 device/generic/goldfish/wifi/simulated_hostapd.conf:$(TARGET_COPY_OUT_VENDOR)/etc/simulated_hostapd.conf \
233 device/generic/goldfish/wifi/wpa_supplicant.conf:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/wpa_supplicant.conf \
234 device/generic/goldfish/wifi/WifiConfigStore.xml:data/misc/wifi/WifiConfigStore.xml \
235 frameworks/native/data/etc/android.hardware.wifi.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.xml \
Bjoern Johansson836f41d2018-06-13 10:57:09 -0700236 frameworks/native/data/etc/android.hardware.wifi.direct.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.direct.xml \
bohu268c72f2018-06-09 08:19:08 -0700237 device/generic/goldfish/data/etc/handheld_core_hardware.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/handheld_core_hardware.xml \
238 device/generic/goldfish/camera/media_profiles.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_V1_0.xml \
239 frameworks/av/media/libstagefright/data/media_codecs_google_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_audio.xml \
240 frameworks/av/media/libstagefright/data/media_codecs_google_telephony.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_telephony.xml \
bohu756c07a2020-02-27 07:55:52 -0800241 device/generic/goldfish/camera/media_codecs_google_video_default.xml:${TARGET_COPY_OUT_VENDOR}/etc/media_codecs_google_video.xml \
bohu268c72f2018-06-09 08:19:08 -0700242 device/generic/goldfish/camera/media_codecs.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs.xml \
243 device/generic/goldfish/camera/media_codecs_performance.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_performance.xml \
244 frameworks/native/data/etc/android.hardware.touchscreen.multitouch.jazzhand.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml \
Jeff McGlynn52d25632018-07-10 15:45:24 -0700245 frameworks/native/data/etc/android.hardware.camera.ar.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.ar.xml \
bohu268c72f2018-06-09 08:19:08 -0700246 frameworks/native/data/etc/android.hardware.camera.autofocus.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.autofocus.xml \
247 frameworks/native/data/etc/android.hardware.camera.full.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.full.xml \
248 frameworks/native/data/etc/android.hardware.fingerprint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.fingerprint.xml \
yahan40f9a292019-10-07 11:34:08 -0700249 frameworks/native/data/etc/android.hardware.vulkan.level-1.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.vulkan.level.xml \
Yahan Zhou04f20f22019-08-02 16:05:13 -0700250 frameworks/native/data/etc/android.hardware.vulkan.compute-0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.vulkan.compute.xml \
251 frameworks/native/data/etc/android.hardware.vulkan.version-1_1.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.vulkan.version.xml \
Lingfeng Yang1c2299a2020-02-13 08:47:13 -0800252 device/generic/goldfish/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 \
bohu268c72f2018-06-09 08:19:08 -0700253 frameworks/native/data/etc/android.software.autofill.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.autofill.xml \
bohu5bf58892019-10-26 23:16:58 -0700254 frameworks/native/data/etc/android.software.verified_boot.xml:${TARGET_COPY_OUT_PRODUCT}/etc/permissions/android.software.verified_boot.xml \
huans64eca142018-06-18 14:45:46 -0700255 frameworks/av/media/libeffects/data/audio_effects.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.xml \
256 device/generic/goldfish/audio_policy.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy.conf \
257 frameworks/av/services/audiopolicy/config/audio_policy_configuration_generic.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration.xml \
258 frameworks/av/services/audiopolicy/config/primary_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/primary_audio_policy_configuration.xml \
259 frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/r_submix_audio_policy_configuration.xml \
260 frameworks/av/services/audiopolicy/config/audio_policy_volumes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_volumes.xml \
261 frameworks/av/services/audiopolicy/config/default_volume_tables.xml:$(TARGET_COPY_OUT_VENDOR)/etc/default_volume_tables.xml \
Eric Laurent6405e782019-02-23 12:29:08 -0800262 frameworks/av/services/audiopolicy/config/surround_sound_configuration_5_0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/surround_sound_configuration_5_0.xml \
bohu5bf58892019-10-26 23:16:58 -0700263 device/generic/goldfish/data/etc/permissions/privapp-permissions-goldfish.xml:$(TARGET_COPY_OUT_PRODUCT)/etc/permissions/privapp-permissions-goldfish.xml