blob: 219a6020edd7620af0817a9d2e4b154e8f9086da [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#
19
bohu50ac1e22019-06-07 09:41:23 -070020ifeq ($(QEMU_DISABLE_AVB),true)
bohu8e19bbe2019-08-29 22:49:58 -070021 ifeq ($(QEMU_USE_SYSTEM_EXT_PARTITIONS),true)
22 PRODUCT_COPY_FILES += \
23 device/generic/goldfish/data/etc/dummy.vbmeta.img:$(PRODUCT_OUT)/vbmeta.img \
24 device/generic/goldfish/fstab.ranchu.initrd.noavb.ex:$(TARGET_COPY_OUT_RAMDISK)/fstab.ranchu \
25 device/generic/goldfish/fstab.ranchu.noavb.ex:$(TARGET_COPY_OUT_VENDOR)/etc/fstab.ranchu
26 else
27 PRODUCT_COPY_FILES += \
28 device/generic/goldfish/data/etc/dummy.vbmeta.img:$(PRODUCT_OUT)/vbmeta.img \
29 device/generic/goldfish/fstab.ranchu.initrd.noavb:$(TARGET_COPY_OUT_RAMDISK)/fstab.ranchu \
30 device/generic/goldfish/fstab.ranchu.noavb:$(TARGET_COPY_OUT_VENDOR)/etc/fstab.ranchu
31 endif
bohu50ac1e22019-06-07 09:41:23 -070032endif
33
bohu8e19bbe2019-08-29 22:49:58 -070034ifeq ($(QEMU_USE_SYSTEM_EXT_PARTITIONS),true)
35PRODUCT_COPY_FILES += \
36 device/generic/goldfish/fstab.ranchu.initrd.ex:$(TARGET_COPY_OUT_RAMDISK)/fstab.ranchu \
37 device/generic/goldfish/fstab.ranchu.ex:$(TARGET_COPY_OUT_VENDOR)/etc/fstab.ranchu
38endif
39
40
Steven Moreland38439882019-08-22 12:44:25 -070041DISABLE_RILD_OEM_HOOK := true
42
Peter Collingbourne094ab362019-10-15 18:37:19 -070043DEVICE_MANIFEST_FILE := device/generic/goldfish/manifest.xml
44
bohu268c72f2018-06-09 08:19:08 -070045# Device modules
46PRODUCT_PACKAGES += \
Lingfeng Yange835ecc2019-02-02 20:46:23 -080047 vulkan.ranchu \
bohu268c72f2018-06-09 08:19:08 -070048 gralloc.goldfish \
49 gralloc.goldfish.default \
50 gralloc.ranchu \
Lingfeng Yang9c195c72019-08-27 08:44:30 -070051 libandroidemu \
Lingfeng Yang48d30292018-09-28 15:53:24 -070052 libOpenglCodecCommon \
bohu268c72f2018-06-09 08:19:08 -070053 libOpenglSystemCommon \
bohu268c72f2018-06-09 08:19:08 -070054 libEGL_swiftshader \
55 libGLESv1_CM_swiftshader \
56 libGLESv2_swiftshader \
Bjoern Johanssonfda217c2018-06-14 16:02:30 -070057 libgoldfish-ril \
bohu268c72f2018-06-09 08:19:08 -070058 qemu-props \
bohu268c72f2018-06-09 08:19:08 -070059 gps.goldfish \
60 gps.ranchu \
61 fingerprint.goldfish \
bohu268c72f2018-06-09 08:19:08 -070062 audio.primary.goldfish \
63 audio.primary.goldfish_legacy \
bohu268c72f2018-06-09 08:19:08 -070064 power.goldfish \
65 power.ranchu \
66 fingerprint.ranchu \
Huihong Luo73d4fe72019-10-11 10:51:00 -070067 android.hardware.graphics.composer@2.3-impl \
68 android.hardware.graphics.composer@2.3-service \
bohu268c72f2018-06-09 08:19:08 -070069 android.hardware.graphics.allocator@2.0-service \
70 android.hardware.graphics.allocator@2.0-impl \
71 android.hardware.graphics.mapper@2.0-impl \
72 hwcomposer.goldfish \
73 hwcomposer.ranchu \
74 toybox_vendor \
75 android.hardware.audio@2.0-service \
76 android.hardware.wifi@1.0-service \
77 android.hardware.biometrics.fingerprint@2.1-service \
78 sh_vendor \
Bjoern Johansson6ba92a42019-06-24 14:23:48 -070079 ip_vendor \
bohu8d693282018-11-28 09:19:40 -080080 iw_vendor \
bohu268c72f2018-06-09 08:19:08 -070081 audio.r_submix.default \
82 local_time.default \
Huan Song09bec372019-09-30 12:41:39 -070083 SdkSetup \
84 MultiDisplayProvider
bohu268c72f2018-06-09 08:19:08 -070085
Peter Collingbourne094ab362019-10-15 18:37:19 -070086ifneq ($(BUILD_EMULATOR_OPENGL),false)
87PRODUCT_PACKAGES += \
88 libGLESv1_CM_emulation \
89 lib_renderControl_enc \
90 libEGL_emulation \
91 libGLESv2_enc \
92 libvulkan_enc \
93 libGLESv2_emulation \
94 libGLESv1_enc
95endif
96
bohu268c72f2018-06-09 08:19:08 -070097PRODUCT_PACKAGES += \
Lingfeng Yangab253e12019-11-22 14:39:36 -080098 android.hardware.audio@5.0-impl:32 \
99 android.hardware.audio.effect@5.0-impl:32 \
bohu268c72f2018-06-09 08:19:08 -0700100 android.hardware.broadcastradio@1.1-service \
101 android.hardware.broadcastradio@1.0-impl \
102 android.hardware.soundtrigger@2.0-impl
103
104PRODUCT_PACKAGES += \
huans4772b3d2018-06-15 10:56:16 -0700105 android.hardware.health@2.0-service.goldfish
106
107PRODUCT_PACKAGES += \
Rob Barnesf96a0dc2019-09-10 13:23:13 -0600108 android.hardware.keymaster@4.0-impl \
109 android.hardware.keymaster@4.0-service
bohu268c72f2018-06-09 08:19:08 -0700110
111PRODUCT_PACKAGES += \
Jim Kayeb8f47812018-06-18 16:24:10 -0700112 DisplayCutoutEmulationEmu01Overlay
113
bohud69c26b2018-06-20 08:45:13 -0700114ifneq ($(EMULATOR_VENDOR_NO_GNSS),true)
bohu268c72f2018-06-09 08:19:08 -0700115PRODUCT_PACKAGES += \
116 android.hardware.gnss@1.0-service \
117 android.hardware.gnss@1.0-impl
Peter Collingbourne094ab362019-10-15 18:37:19 -0700118DEVICE_MANIFEST_FILE += device/generic/goldfish/manifest.gnss.xml
bohud69c26b2018-06-20 08:45:13 -0700119endif
bohu268c72f2018-06-09 08:19:08 -0700120
Peter Collingbourne094ab362019-10-15 18:37:19 -0700121ifneq ($(EMULATOR_VENDOR_NO_SENSORS),true)
bohu268c72f2018-06-09 08:19:08 -0700122PRODUCT_PACKAGES += \
123 android.hardware.sensors@1.0-impl \
Peter Collingbourne094ab362019-10-15 18:37:19 -0700124 android.hardware.sensors@1.0-service \
125 sensors.ranchu
126DEVICE_MANIFEST_FILE += device/generic/goldfish/manifest.sensors.xml
127endif
bohu268c72f2018-06-09 08:19:08 -0700128
129PRODUCT_PACKAGES += \
130 android.hardware.drm@1.0-service \
huans85d26b82018-06-13 16:14:28 -0700131 android.hardware.drm@1.0-impl \
bohue7064d72019-01-17 17:16:18 -0800132 android.hardware.drm@1.2-service.clearkey \
133 android.hardware.drm@1.2-service.widevine
bohu268c72f2018-06-09 08:19:08 -0700134
135PRODUCT_PACKAGES += \
Haitao Shand9689ef2018-08-17 11:58:33 -0700136 android.hardware.power@1.1-service.ranchu \
137
Matt Wachowskif6bb9232018-11-28 09:34:45 -0800138PRODUCT_PROPERTY_OVERRIDES += ro.control_privapp_permissions=enforce
Haitao Shand9689ef2018-08-17 11:58:33 -0700139PRODUCT_PROPERTY_OVERRIDES += ro.hardware.power=ranchu
bohu268c72f2018-06-09 08:19:08 -0700140
Lingfeng Yang1655dc72019-04-05 12:08:25 -0700141PRODUCT_PROPERTY_OVERRIDES += persist.sys.zram_enabled=1 \
142
Peter Collingbourne094ab362019-10-15 18:37:19 -0700143ifneq ($(EMULATOR_VENDOR_NO_CAMERA),true)
bohu268c72f2018-06-09 08:19:08 -0700144PRODUCT_PACKAGES += \
145 camera.device@1.0-impl \
146 android.hardware.camera.provider@2.4-service \
147 android.hardware.camera.provider@2.4-impl \
Peter Collingbourne094ab362019-10-15 18:37:19 -0700148 camera.goldfish \
149 camera.goldfish.jpeg \
150 camera.ranchu \
151 camera.ranchu.jpeg
152DEVICE_MANIFEST_FILE += device/generic/goldfish/manifest.camera.xml
153endif
bohu268c72f2018-06-09 08:19:08 -0700154
155PRODUCT_PACKAGES += \
Janis Danisevskis4c1d3392019-06-06 20:01:50 -0700156 android.hardware.gatekeeper@1.0-service.software
bohu268c72f2018-06-09 08:19:08 -0700157
158# WiFi: vendor side
159PRODUCT_PACKAGES += \
160 createns \
161 dhcpclient \
bohu268c72f2018-06-09 08:19:08 -0700162 execns \
163 hostapd \
Bjoern Johansson880e7082018-05-15 15:04:53 -0700164 hostapd_nohidl \
Bjoern Johansson873eee62018-09-06 15:39:12 -0700165 netmgr \
Bjoern Johansson97e05932019-08-01 11:32:18 -0700166 wifi_forwarder \
bohu268c72f2018-06-09 08:19:08 -0700167 wpa_supplicant \
168
Lingfeng Yang2f6d30c2019-11-22 14:35:44 -0800169# Thermal
170PRODUCT_PACKAGES += \
171 android.hardware.thermal@2.0-service.mock
172
173# Atrace
174PRODUCT_PACKAGES += \
175 android.hardware.atrace@1.0-service
176
Roman Kiryanovb6889742019-04-15 11:13:57 -0700177
bohua0427212019-05-20 15:22:48 -0700178# Goldfish does not support ION needed for Codec 2.0
179PRODUCT_PROPERTY_OVERRIDES += \
180 debug.stagefright.ccodec=0
181
bohu268c72f2018-06-09 08:19:08 -0700182PRODUCT_COPY_FILES += \
bohud0fb8a42019-03-07 22:41:54 -0800183 device/generic/goldfish/fstab.ranchu.initrd:$(TARGET_COPY_OUT_RAMDISK)/fstab.ranchu \
bohu268c72f2018-06-09 08:19:08 -0700184 device/generic/goldfish/data/etc/apns-conf.xml:data/misc/apns/apns-conf.xml \
bohu7e987592019-03-03 15:44:41 -0800185 device/generic/goldfish/data/etc/local.prop:data/local.prop \
bohu268c72f2018-06-09 08:19:08 -0700186 device/generic/goldfish/init.ranchu-core.sh:$(TARGET_COPY_OUT_VENDOR)/bin/init.ranchu-core.sh \
187 device/generic/goldfish/init.ranchu-net.sh:$(TARGET_COPY_OUT_VENDOR)/bin/init.ranchu-net.sh \
188 device/generic/goldfish/wifi/init.wifi.sh:$(TARGET_COPY_OUT_VENDOR)/bin/init.wifi.sh \
189 device/generic/goldfish/init.ranchu.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.ranchu.rc \
190 device/generic/goldfish/fstab.ranchu:$(TARGET_COPY_OUT_VENDOR)/etc/fstab.ranchu \
191 device/generic/goldfish/ueventd.ranchu.rc:$(TARGET_COPY_OUT_VENDOR)/ueventd.rc \
192 device/generic/goldfish/input/goldfish_rotary.idc:$(TARGET_COPY_OUT_VENDOR)/usr/idc/goldfish_rotary.idc \
Weilun Du70d41852019-08-15 10:59:46 -0700193 device/generic/goldfish/input/qwerty2.idc:$(TARGET_COPY_OUT_VENDOR)/usr/idc/qwerty2.idc \
194 device/generic/goldfish/input/qwerty.kl:$(TARGET_COPY_OUT_VENDOR)/usr/keylayout/qwerty.kl \
Weilun Du41c6d922019-04-01 20:41:56 -0700195 device/generic/goldfish/input/virtio_input_multi_touch_1.idc:$(TARGET_COPY_OUT_VENDOR)/usr/idc/virtio_input_multi_touch_1.idc \
196 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 -0700197 device/generic/goldfish/input/virtio_input_multi_touch_3.idc:$(TARGET_COPY_OUT_VENDOR)/usr/idc/virtio_input_multi_touch_3.idc \
198 device/generic/goldfish/input/virtio_input_multi_touch_4.idc:$(TARGET_COPY_OUT_VENDOR)/usr/idc/virtio_input_multi_touch_4.idc \
199 device/generic/goldfish/input/virtio_input_multi_touch_5.idc:$(TARGET_COPY_OUT_VENDOR)/usr/idc/virtio_input_multi_touch_5.idc \
200 device/generic/goldfish/input/virtio_input_multi_touch_6.idc:$(TARGET_COPY_OUT_VENDOR)/usr/idc/virtio_input_multi_touch_6.idc \
201 device/generic/goldfish/input/virtio_input_multi_touch_7.idc:$(TARGET_COPY_OUT_VENDOR)/usr/idc/virtio_input_multi_touch_7.idc \
202 device/generic/goldfish/input/virtio_input_multi_touch_8.idc:$(TARGET_COPY_OUT_VENDOR)/usr/idc/virtio_input_multi_touch_8.idc \
203 device/generic/goldfish/input/virtio_input_multi_touch_9.idc:$(TARGET_COPY_OUT_VENDOR)/usr/idc/virtio_input_multi_touch_9.idc \
204 device/generic/goldfish/input/virtio_input_multi_touch_10.idc:$(TARGET_COPY_OUT_VENDOR)/usr/idc/virtio_input_multi_touch_10.idc \
205 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 -0700206 device/generic/goldfish/data/etc/config.ini:config.ini \
207 device/generic/goldfish/wifi/simulated_hostapd.conf:$(TARGET_COPY_OUT_VENDOR)/etc/simulated_hostapd.conf \
208 device/generic/goldfish/wifi/wpa_supplicant.conf:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/wpa_supplicant.conf \
209 device/generic/goldfish/wifi/WifiConfigStore.xml:data/misc/wifi/WifiConfigStore.xml \
210 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 -0700211 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 -0700212 device/generic/goldfish/data/etc/handheld_core_hardware.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/handheld_core_hardware.xml \
213 device/generic/goldfish/camera/media_profiles.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_V1_0.xml \
214 frameworks/av/media/libstagefright/data/media_codecs_google_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_audio.xml \
215 frameworks/av/media/libstagefright/data/media_codecs_google_telephony.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_telephony.xml \
Joshua Duong973b72d2019-06-27 12:02:42 -0700216 device/generic/goldfish/camera/media_codecs_google_video_default.xml:data/vendor/etc/media_codecs_google_video_default.xml \
217 device/generic/goldfish/camera/media_codecs_google_video_v2.xml:data/vendor/etc/media_codecs_google_video_v2.xml \
bohu268c72f2018-06-09 08:19:08 -0700218 device/generic/goldfish/camera/media_codecs.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs.xml \
219 device/generic/goldfish/camera/media_codecs_performance.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_performance.xml \
220 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 -0700221 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 -0700222 frameworks/native/data/etc/android.hardware.camera.autofocus.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.autofocus.xml \
223 frameworks/native/data/etc/android.hardware.camera.full.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.full.xml \
224 frameworks/native/data/etc/android.hardware.fingerprint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.fingerprint.xml \
yahan40f9a292019-10-07 11:34:08 -0700225 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 -0700226 frameworks/native/data/etc/android.hardware.vulkan.compute-0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.vulkan.compute.xml \
227 frameworks/native/data/etc/android.hardware.vulkan.version-1_1.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.vulkan.version.xml \
bohu268c72f2018-06-09 08:19:08 -0700228 frameworks/native/data/etc/android.software.autofill.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.autofill.xml \
bohu5bf58892019-10-26 23:16:58 -0700229 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 -0700230 frameworks/av/media/libeffects/data/audio_effects.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.xml \
231 device/generic/goldfish/audio_policy.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy.conf \
232 frameworks/av/services/audiopolicy/config/audio_policy_configuration_generic.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration.xml \
233 frameworks/av/services/audiopolicy/config/primary_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/primary_audio_policy_configuration.xml \
234 frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/r_submix_audio_policy_configuration.xml \
235 frameworks/av/services/audiopolicy/config/audio_policy_volumes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_volumes.xml \
236 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 -0800237 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 -0700238 device/generic/goldfish/data/etc/permissions/privapp-permissions-goldfish.xml:$(TARGET_COPY_OUT_PRODUCT)/etc/permissions/privapp-permissions-goldfish.xml