blob: ad857bb69c0c29b1d8a518f1ae9af6ed08cec82d [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
bohu7efb22a2020-01-06 17:09:53 -080034PRODUCT_SYSTEM_EXT_PROPERTIES += ro.lockscreen.disable.default=1
bohu8e19bbe2019-08-29 22:49:58 -070035ifeq ($(QEMU_USE_SYSTEM_EXT_PARTITIONS),true)
36PRODUCT_COPY_FILES += \
37 device/generic/goldfish/fstab.ranchu.initrd.ex:$(TARGET_COPY_OUT_RAMDISK)/fstab.ranchu \
38 device/generic/goldfish/fstab.ranchu.ex:$(TARGET_COPY_OUT_VENDOR)/etc/fstab.ranchu
39endif
40
41
Steven Moreland38439882019-08-22 12:44:25 -070042DISABLE_RILD_OEM_HOOK := true
43
Peter Collingbourne094ab362019-10-15 18:37:19 -070044DEVICE_MANIFEST_FILE := device/generic/goldfish/manifest.xml
45
bohu268c72f2018-06-09 08:19:08 -070046# Device modules
47PRODUCT_PACKAGES += \
Lingfeng Yange835ecc2019-02-02 20:46:23 -080048 vulkan.ranchu \
bohu268c72f2018-06-09 08:19:08 -070049 gralloc.goldfish \
50 gralloc.goldfish.default \
51 gralloc.ranchu \
Lingfeng Yang9c195c72019-08-27 08:44:30 -070052 libandroidemu \
Lingfeng Yang48d30292018-09-28 15:53:24 -070053 libOpenglCodecCommon \
bohu268c72f2018-06-09 08:19:08 -070054 libOpenglSystemCommon \
bohu268c72f2018-06-09 08:19:08 -070055 libEGL_swiftshader \
56 libGLESv1_CM_swiftshader \
57 libGLESv2_swiftshader \
Bjoern Johanssonfda217c2018-06-14 16:02:30 -070058 libgoldfish-ril \
bohu268c72f2018-06-09 08:19:08 -070059 qemu-props \
bohu268c72f2018-06-09 08:19:08 -070060 gps.goldfish \
61 gps.ranchu \
62 fingerprint.goldfish \
bohu268c72f2018-06-09 08:19:08 -070063 audio.primary.goldfish \
64 audio.primary.goldfish_legacy \
bohu268c72f2018-06-09 08:19:08 -070065 power.goldfish \
66 power.ranchu \
67 fingerprint.ranchu \
Bo Hub64da5c2020-01-07 23:54:25 +000068 android.hardware.graphics.composer@2.1-impl \
69 android.hardware.graphics.composer@2.1-service \
bohu268c72f2018-06-09 08:19:08 -070070 android.hardware.graphics.allocator@2.0-service \
71 android.hardware.graphics.allocator@2.0-impl \
72 android.hardware.graphics.mapper@2.0-impl \
73 hwcomposer.goldfish \
74 hwcomposer.ranchu \
75 toybox_vendor \
76 android.hardware.audio@2.0-service \
77 android.hardware.wifi@1.0-service \
78 android.hardware.biometrics.fingerprint@2.1-service \
79 sh_vendor \
Bjoern Johansson6ba92a42019-06-24 14:23:48 -070080 ip_vendor \
bohu8d693282018-11-28 09:19:40 -080081 iw_vendor \
bohu268c72f2018-06-09 08:19:08 -070082 audio.r_submix.default \
83 local_time.default \
Huan Song09bec372019-09-30 12:41:39 -070084 SdkSetup \
bohu89f03882019-12-06 09:04:51 -080085 libstagefrighthw \
86 libstagefright_goldfish_vpxdec \
bohu272f7802019-12-11 09:27:22 -080087 libstagefright_goldfish_avcdec \
Huan Song09bec372019-09-30 12:41:39 -070088 MultiDisplayProvider
bohu268c72f2018-06-09 08:19:08 -070089
Peter Collingbourne094ab362019-10-15 18:37:19 -070090ifneq ($(BUILD_EMULATOR_OPENGL),false)
91PRODUCT_PACKAGES += \
92 libGLESv1_CM_emulation \
93 lib_renderControl_enc \
94 libEGL_emulation \
95 libGLESv2_enc \
96 libvulkan_enc \
97 libGLESv2_emulation \
98 libGLESv1_enc
99endif
100
bohu268c72f2018-06-09 08:19:08 -0700101PRODUCT_PACKAGES += \
Lingfeng Yangab253e12019-11-22 14:39:36 -0800102 android.hardware.audio@5.0-impl:32 \
103 android.hardware.audio.effect@5.0-impl:32 \
bohu268c72f2018-06-09 08:19:08 -0700104 android.hardware.broadcastradio@1.1-service \
105 android.hardware.broadcastradio@1.0-impl \
106 android.hardware.soundtrigger@2.0-impl
107
108PRODUCT_PACKAGES += \
huans4772b3d2018-06-15 10:56:16 -0700109 android.hardware.health@2.0-service.goldfish
110
111PRODUCT_PACKAGES += \
Rob Barnesf96a0dc2019-09-10 13:23:13 -0600112 android.hardware.keymaster@4.0-impl \
113 android.hardware.keymaster@4.0-service
bohu268c72f2018-06-09 08:19:08 -0700114
115PRODUCT_PACKAGES += \
Jim Kayeb8f47812018-06-18 16:24:10 -0700116 DisplayCutoutEmulationEmu01Overlay
117
bohud69c26b2018-06-20 08:45:13 -0700118ifneq ($(EMULATOR_VENDOR_NO_GNSS),true)
bohu268c72f2018-06-09 08:19:08 -0700119PRODUCT_PACKAGES += \
120 android.hardware.gnss@1.0-service \
121 android.hardware.gnss@1.0-impl
Peter Collingbourne094ab362019-10-15 18:37:19 -0700122DEVICE_MANIFEST_FILE += device/generic/goldfish/manifest.gnss.xml
bohud69c26b2018-06-20 08:45:13 -0700123endif
bohu268c72f2018-06-09 08:19:08 -0700124
Peter Collingbourne094ab362019-10-15 18:37:19 -0700125ifneq ($(EMULATOR_VENDOR_NO_SENSORS),true)
bohu268c72f2018-06-09 08:19:08 -0700126PRODUCT_PACKAGES += \
127 android.hardware.sensors@1.0-impl \
Peter Collingbourne094ab362019-10-15 18:37:19 -0700128 android.hardware.sensors@1.0-service \
129 sensors.ranchu
130DEVICE_MANIFEST_FILE += device/generic/goldfish/manifest.sensors.xml
131endif
bohu268c72f2018-06-09 08:19:08 -0700132
133PRODUCT_PACKAGES += \
134 android.hardware.drm@1.0-service \
huans85d26b82018-06-13 16:14:28 -0700135 android.hardware.drm@1.0-impl \
bohue7064d72019-01-17 17:16:18 -0800136 android.hardware.drm@1.2-service.clearkey \
137 android.hardware.drm@1.2-service.widevine
bohu268c72f2018-06-09 08:19:08 -0700138
139PRODUCT_PACKAGES += \
Haitao Shand9689ef2018-08-17 11:58:33 -0700140 android.hardware.power@1.1-service.ranchu \
141
Matt Wachowskif6bb9232018-11-28 09:34:45 -0800142PRODUCT_PROPERTY_OVERRIDES += ro.control_privapp_permissions=enforce
Haitao Shand9689ef2018-08-17 11:58:33 -0700143PRODUCT_PROPERTY_OVERRIDES += ro.hardware.power=ranchu
bohu268c72f2018-06-09 08:19:08 -0700144
Lingfeng Yang1655dc72019-04-05 12:08:25 -0700145PRODUCT_PROPERTY_OVERRIDES += persist.sys.zram_enabled=1 \
146
Peter Collingbourne094ab362019-10-15 18:37:19 -0700147ifneq ($(EMULATOR_VENDOR_NO_CAMERA),true)
bohu268c72f2018-06-09 08:19:08 -0700148PRODUCT_PACKAGES += \
149 camera.device@1.0-impl \
150 android.hardware.camera.provider@2.4-service \
151 android.hardware.camera.provider@2.4-impl \
Peter Collingbourne094ab362019-10-15 18:37:19 -0700152 camera.goldfish \
153 camera.goldfish.jpeg \
154 camera.ranchu \
155 camera.ranchu.jpeg
156DEVICE_MANIFEST_FILE += device/generic/goldfish/manifest.camera.xml
157endif
bohu268c72f2018-06-09 08:19:08 -0700158
159PRODUCT_PACKAGES += \
Janis Danisevskis4c1d3392019-06-06 20:01:50 -0700160 android.hardware.gatekeeper@1.0-service.software
bohu268c72f2018-06-09 08:19:08 -0700161
162# WiFi: vendor side
163PRODUCT_PACKAGES += \
164 createns \
165 dhcpclient \
bohu268c72f2018-06-09 08:19:08 -0700166 execns \
167 hostapd \
Bjoern Johansson880e7082018-05-15 15:04:53 -0700168 hostapd_nohidl \
Bjoern Johansson873eee62018-09-06 15:39:12 -0700169 netmgr \
Bjoern Johansson97e05932019-08-01 11:32:18 -0700170 wifi_forwarder \
bohu268c72f2018-06-09 08:19:08 -0700171 wpa_supplicant \
172
Lingfeng Yang2f6d30c2019-11-22 14:35:44 -0800173# Thermal
174PRODUCT_PACKAGES += \
175 android.hardware.thermal@2.0-service.mock
176
177# Atrace
178PRODUCT_PACKAGES += \
179 android.hardware.atrace@1.0-service
180
Roman Kiryanov11bd7ca2019-11-25 10:39:52 -0800181# Vibrator
182PRODUCT_PACKAGES += \
183 android.hardware.vibrator-service.example
Roman Kiryanovb6889742019-04-15 11:13:57 -0700184
Lingfeng Yangb8233672019-11-22 14:44:43 -0800185# Authsecret
186PRODUCT_PACKAGES += \
187 android.hardware.authsecret@1.0-service
188
Lingfeng Yang702bf612019-11-22 14:46:35 -0800189# Input Classifier HAL
190PRODUCT_PACKAGES += \
191 android.hardware.input.classifier@1.0-service.default
192
Lingfeng Yang65f98342019-11-22 14:57:55 -0800193# power stats
194PRODUCT_PACKAGES += \
195 android.hardware.power.stats@1.0-service.mock
196
bohua0427212019-05-20 15:22:48 -0700197# Goldfish does not support ION needed for Codec 2.0
198PRODUCT_PROPERTY_OVERRIDES += \
199 debug.stagefright.ccodec=0
200
bohu268c72f2018-06-09 08:19:08 -0700201PRODUCT_COPY_FILES += \
bohud0fb8a42019-03-07 22:41:54 -0800202 device/generic/goldfish/fstab.ranchu.initrd:$(TARGET_COPY_OUT_RAMDISK)/fstab.ranchu \
bohu268c72f2018-06-09 08:19:08 -0700203 device/generic/goldfish/data/etc/apns-conf.xml:data/misc/apns/apns-conf.xml \
bohu7e987592019-03-03 15:44:41 -0800204 device/generic/goldfish/data/etc/local.prop:data/local.prop \
bohu268c72f2018-06-09 08:19:08 -0700205 device/generic/goldfish/init.ranchu-core.sh:$(TARGET_COPY_OUT_VENDOR)/bin/init.ranchu-core.sh \
206 device/generic/goldfish/init.ranchu-net.sh:$(TARGET_COPY_OUT_VENDOR)/bin/init.ranchu-net.sh \
207 device/generic/goldfish/wifi/init.wifi.sh:$(TARGET_COPY_OUT_VENDOR)/bin/init.wifi.sh \
208 device/generic/goldfish/init.ranchu.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.ranchu.rc \
209 device/generic/goldfish/fstab.ranchu:$(TARGET_COPY_OUT_VENDOR)/etc/fstab.ranchu \
210 device/generic/goldfish/ueventd.ranchu.rc:$(TARGET_COPY_OUT_VENDOR)/ueventd.rc \
211 device/generic/goldfish/input/goldfish_rotary.idc:$(TARGET_COPY_OUT_VENDOR)/usr/idc/goldfish_rotary.idc \
Weilun Du70d41852019-08-15 10:59:46 -0700212 device/generic/goldfish/input/qwerty2.idc:$(TARGET_COPY_OUT_VENDOR)/usr/idc/qwerty2.idc \
213 device/generic/goldfish/input/qwerty.kl:$(TARGET_COPY_OUT_VENDOR)/usr/keylayout/qwerty.kl \
Weilun Du41c6d922019-04-01 20:41:56 -0700214 device/generic/goldfish/input/virtio_input_multi_touch_1.idc:$(TARGET_COPY_OUT_VENDOR)/usr/idc/virtio_input_multi_touch_1.idc \
215 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 -0700216 device/generic/goldfish/input/virtio_input_multi_touch_3.idc:$(TARGET_COPY_OUT_VENDOR)/usr/idc/virtio_input_multi_touch_3.idc \
217 device/generic/goldfish/input/virtio_input_multi_touch_4.idc:$(TARGET_COPY_OUT_VENDOR)/usr/idc/virtio_input_multi_touch_4.idc \
218 device/generic/goldfish/input/virtio_input_multi_touch_5.idc:$(TARGET_COPY_OUT_VENDOR)/usr/idc/virtio_input_multi_touch_5.idc \
219 device/generic/goldfish/input/virtio_input_multi_touch_6.idc:$(TARGET_COPY_OUT_VENDOR)/usr/idc/virtio_input_multi_touch_6.idc \
220 device/generic/goldfish/input/virtio_input_multi_touch_7.idc:$(TARGET_COPY_OUT_VENDOR)/usr/idc/virtio_input_multi_touch_7.idc \
221 device/generic/goldfish/input/virtio_input_multi_touch_8.idc:$(TARGET_COPY_OUT_VENDOR)/usr/idc/virtio_input_multi_touch_8.idc \
222 device/generic/goldfish/input/virtio_input_multi_touch_9.idc:$(TARGET_COPY_OUT_VENDOR)/usr/idc/virtio_input_multi_touch_9.idc \
223 device/generic/goldfish/input/virtio_input_multi_touch_10.idc:$(TARGET_COPY_OUT_VENDOR)/usr/idc/virtio_input_multi_touch_10.idc \
224 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 -0700225 device/generic/goldfish/data/etc/config.ini:config.ini \
226 device/generic/goldfish/wifi/simulated_hostapd.conf:$(TARGET_COPY_OUT_VENDOR)/etc/simulated_hostapd.conf \
227 device/generic/goldfish/wifi/wpa_supplicant.conf:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/wpa_supplicant.conf \
228 device/generic/goldfish/wifi/WifiConfigStore.xml:data/misc/wifi/WifiConfigStore.xml \
229 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 -0700230 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 -0700231 device/generic/goldfish/data/etc/handheld_core_hardware.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/handheld_core_hardware.xml \
232 device/generic/goldfish/camera/media_profiles.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_V1_0.xml \
233 frameworks/av/media/libstagefright/data/media_codecs_google_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_audio.xml \
234 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 -0700235 device/generic/goldfish/camera/media_codecs_google_video_default.xml:data/vendor/etc/media_codecs_google_video_default.xml \
236 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 -0700237 device/generic/goldfish/camera/media_codecs.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs.xml \
238 device/generic/goldfish/camera/media_codecs_performance.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_performance.xml \
239 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 -0700240 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 -0700241 frameworks/native/data/etc/android.hardware.camera.autofocus.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.autofocus.xml \
242 frameworks/native/data/etc/android.hardware.camera.full.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.full.xml \
243 frameworks/native/data/etc/android.hardware.fingerprint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.fingerprint.xml \
yahan40f9a292019-10-07 11:34:08 -0700244 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 -0700245 frameworks/native/data/etc/android.hardware.vulkan.compute-0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.vulkan.compute.xml \
246 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 -0700247 frameworks/native/data/etc/android.software.autofill.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.autofill.xml \
bohu5bf58892019-10-26 23:16:58 -0700248 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 -0700249 frameworks/av/media/libeffects/data/audio_effects.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.xml \
250 device/generic/goldfish/audio_policy.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy.conf \
251 frameworks/av/services/audiopolicy/config/audio_policy_configuration_generic.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration.xml \
252 frameworks/av/services/audiopolicy/config/primary_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/primary_audio_policy_configuration.xml \
253 frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/r_submix_audio_policy_configuration.xml \
254 frameworks/av/services/audiopolicy/config/audio_policy_volumes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_volumes.xml \
255 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 -0800256 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 -0700257 device/generic/goldfish/data/etc/permissions/privapp-permissions-goldfish.xml:$(TARGET_COPY_OUT_PRODUCT)/etc/permissions/privapp-permissions-goldfish.xml