blob: b3ecf308d5d1dfb47a0823aa03cccde1fa5032ab [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 \
bohu268c72f2018-06-09 08:19:08 -070050 gralloc.goldfish \
51 gralloc.goldfish.default \
52 gralloc.ranchu \
Lingfeng Yang9c195c72019-08-27 08:44:30 -070053 libandroidemu \
Lingfeng Yang48d30292018-09-28 15:53:24 -070054 libOpenglCodecCommon \
bohu268c72f2018-06-09 08:19:08 -070055 libOpenglSystemCommon \
bohu268c72f2018-06-09 08:19:08 -070056 libEGL_swiftshader \
57 libGLESv1_CM_swiftshader \
58 libGLESv2_swiftshader \
Bjoern Johanssonfda217c2018-06-14 16:02:30 -070059 libgoldfish-ril \
bohu268c72f2018-06-09 08:19:08 -070060 qemu-props \
bohu268c72f2018-06-09 08:19:08 -070061 gps.goldfish \
62 gps.ranchu \
63 fingerprint.goldfish \
bohu268c72f2018-06-09 08:19:08 -070064 audio.primary.goldfish \
65 audio.primary.goldfish_legacy \
bohu268c72f2018-06-09 08:19:08 -070066 power.goldfish \
bohu85185e72020-01-13 17:22:43 -080067 stagefright \
bohu268c72f2018-06-09 08:19:08 -070068 power.ranchu \
69 fingerprint.ranchu \
Bo Hub64da5c2020-01-07 23:54:25 +000070 android.hardware.graphics.composer@2.1-impl \
71 android.hardware.graphics.composer@2.1-service \
bohu268c72f2018-06-09 08:19:08 -070072 android.hardware.graphics.allocator@2.0-service \
73 android.hardware.graphics.allocator@2.0-impl \
74 android.hardware.graphics.mapper@2.0-impl \
bohu268c72f2018-06-09 08:19:08 -070075 hwcomposer.ranchu \
76 toybox_vendor \
77 android.hardware.audio@2.0-service \
78 android.hardware.wifi@1.0-service \
79 android.hardware.biometrics.fingerprint@2.1-service \
80 sh_vendor \
Bjoern Johansson6ba92a42019-06-24 14:23:48 -070081 ip_vendor \
bohu8d693282018-11-28 09:19:40 -080082 iw_vendor \
bohu268c72f2018-06-09 08:19:08 -070083 audio.r_submix.default \
84 local_time.default \
Huan Song09bec372019-09-30 12:41:39 -070085 SdkSetup \
bohu89f03882019-12-06 09:04:51 -080086 libstagefrighthw \
87 libstagefright_goldfish_vpxdec \
bohu272f7802019-12-11 09:27:22 -080088 libstagefright_goldfish_avcdec \
Huan Song09bec372019-09-30 12:41:39 -070089 MultiDisplayProvider
bohu268c72f2018-06-09 08:19:08 -070090
Peter Collingbourne094ab362019-10-15 18:37:19 -070091ifneq ($(BUILD_EMULATOR_OPENGL),false)
92PRODUCT_PACKAGES += \
93 libGLESv1_CM_emulation \
94 lib_renderControl_enc \
95 libEGL_emulation \
96 libGLESv2_enc \
97 libvulkan_enc \
98 libGLESv2_emulation \
99 libGLESv1_enc
100endif
101
bohu268c72f2018-06-09 08:19:08 -0700102PRODUCT_PACKAGES += \
Lingfeng Yangab253e12019-11-22 14:39:36 -0800103 android.hardware.audio@5.0-impl:32 \
104 android.hardware.audio.effect@5.0-impl:32 \
bohu268c72f2018-06-09 08:19:08 -0700105 android.hardware.broadcastradio@1.1-service \
106 android.hardware.broadcastradio@1.0-impl \
107 android.hardware.soundtrigger@2.0-impl
108
109PRODUCT_PACKAGES += \
Kevin Brodsky29416702020-01-21 15:16:37 +0000110 android.hardware.health@2.0-service
huans4772b3d2018-06-15 10:56:16 -0700111
112PRODUCT_PACKAGES += \
Rob Barnesf96a0dc2019-09-10 13:23:13 -0600113 android.hardware.keymaster@4.0-impl \
114 android.hardware.keymaster@4.0-service
bohu268c72f2018-06-09 08:19:08 -0700115
116PRODUCT_PACKAGES += \
Jim Kayeb8f47812018-06-18 16:24:10 -0700117 DisplayCutoutEmulationEmu01Overlay
118
bohud69c26b2018-06-20 08:45:13 -0700119ifneq ($(EMULATOR_VENDOR_NO_GNSS),true)
bohu268c72f2018-06-09 08:19:08 -0700120PRODUCT_PACKAGES += \
121 android.hardware.gnss@1.0-service \
122 android.hardware.gnss@1.0-impl
Peter Collingbourne094ab362019-10-15 18:37:19 -0700123DEVICE_MANIFEST_FILE += device/generic/goldfish/manifest.gnss.xml
bohud69c26b2018-06-20 08:45:13 -0700124endif
bohu268c72f2018-06-09 08:19:08 -0700125
Peter Collingbourne094ab362019-10-15 18:37:19 -0700126ifneq ($(EMULATOR_VENDOR_NO_SENSORS),true)
bohu268c72f2018-06-09 08:19:08 -0700127PRODUCT_PACKAGES += \
128 android.hardware.sensors@1.0-impl \
Peter Collingbourne094ab362019-10-15 18:37:19 -0700129 android.hardware.sensors@1.0-service \
130 sensors.ranchu
131DEVICE_MANIFEST_FILE += device/generic/goldfish/manifest.sensors.xml
132endif
bohu268c72f2018-06-09 08:19:08 -0700133
134PRODUCT_PACKAGES += \
135 android.hardware.drm@1.0-service \
huans85d26b82018-06-13 16:14:28 -0700136 android.hardware.drm@1.0-impl \
bohue7064d72019-01-17 17:16:18 -0800137 android.hardware.drm@1.2-service.clearkey \
138 android.hardware.drm@1.2-service.widevine
bohu268c72f2018-06-09 08:19:08 -0700139
140PRODUCT_PACKAGES += \
Haitao Shand9689ef2018-08-17 11:58:33 -0700141 android.hardware.power@1.1-service.ranchu \
142
Matt Wachowskif6bb9232018-11-28 09:34:45 -0800143PRODUCT_PROPERTY_OVERRIDES += ro.control_privapp_permissions=enforce
Haitao Shand9689ef2018-08-17 11:58:33 -0700144PRODUCT_PROPERTY_OVERRIDES += ro.hardware.power=ranchu
bohu268c72f2018-06-09 08:19:08 -0700145
Lingfeng Yang1655dc72019-04-05 12:08:25 -0700146PRODUCT_PROPERTY_OVERRIDES += persist.sys.zram_enabled=1 \
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 += \
165 createns \
166 dhcpclient \
bohu268c72f2018-06-09 08:19:08 -0700167 execns \
168 hostapd \
Bjoern Johansson880e7082018-05-15 15:04:53 -0700169 hostapd_nohidl \
Bjoern Johansson873eee62018-09-06 15:39:12 -0700170 netmgr \
Bjoern Johansson97e05932019-08-01 11:32:18 -0700171 wifi_forwarder \
bohu268c72f2018-06-09 08:19:08 -0700172 wpa_supplicant \
173
Lingfeng Yang2f6d30c2019-11-22 14:35:44 -0800174# Thermal
175PRODUCT_PACKAGES += \
176 android.hardware.thermal@2.0-service.mock
177
178# Atrace
179PRODUCT_PACKAGES += \
180 android.hardware.atrace@1.0-service
181
Roman Kiryanov11bd7ca2019-11-25 10:39:52 -0800182# Vibrator
183PRODUCT_PACKAGES += \
184 android.hardware.vibrator-service.example
Roman Kiryanovb6889742019-04-15 11:13:57 -0700185
Lingfeng Yangb8233672019-11-22 14:44:43 -0800186# Authsecret
187PRODUCT_PACKAGES += \
188 android.hardware.authsecret@1.0-service
189
Lingfeng Yang702bf612019-11-22 14:46:35 -0800190# Input Classifier HAL
191PRODUCT_PACKAGES += \
192 android.hardware.input.classifier@1.0-service.default
193
Lingfeng Yang65f98342019-11-22 14:57:55 -0800194# power stats
195PRODUCT_PACKAGES += \
196 android.hardware.power.stats@1.0-service.mock
197
bohua0427212019-05-20 15:22:48 -0700198# Goldfish does not support ION needed for Codec 2.0
199PRODUCT_PROPERTY_OVERRIDES += \
200 debug.stagefright.ccodec=0
201
bohu268c72f2018-06-09 08:19:08 -0700202PRODUCT_COPY_FILES += \
bohud0fb8a42019-03-07 22:41:54 -0800203 device/generic/goldfish/fstab.ranchu.initrd:$(TARGET_COPY_OUT_RAMDISK)/fstab.ranchu \
bohu268c72f2018-06-09 08:19:08 -0700204 device/generic/goldfish/data/etc/apns-conf.xml:data/misc/apns/apns-conf.xml \
bohu7e987592019-03-03 15:44:41 -0800205 device/generic/goldfish/data/etc/local.prop:data/local.prop \
bohu268c72f2018-06-09 08:19:08 -0700206 device/generic/goldfish/init.ranchu-core.sh:$(TARGET_COPY_OUT_VENDOR)/bin/init.ranchu-core.sh \
207 device/generic/goldfish/init.ranchu-net.sh:$(TARGET_COPY_OUT_VENDOR)/bin/init.ranchu-net.sh \
208 device/generic/goldfish/wifi/init.wifi.sh:$(TARGET_COPY_OUT_VENDOR)/bin/init.wifi.sh \
209 device/generic/goldfish/init.ranchu.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.ranchu.rc \
210 device/generic/goldfish/fstab.ranchu:$(TARGET_COPY_OUT_VENDOR)/etc/fstab.ranchu \
211 device/generic/goldfish/ueventd.ranchu.rc:$(TARGET_COPY_OUT_VENDOR)/ueventd.rc \
212 device/generic/goldfish/input/goldfish_rotary.idc:$(TARGET_COPY_OUT_VENDOR)/usr/idc/goldfish_rotary.idc \
Weilun Du70d41852019-08-15 10:59:46 -0700213 device/generic/goldfish/input/qwerty2.idc:$(TARGET_COPY_OUT_VENDOR)/usr/idc/qwerty2.idc \
214 device/generic/goldfish/input/qwerty.kl:$(TARGET_COPY_OUT_VENDOR)/usr/keylayout/qwerty.kl \
Weilun Du41c6d922019-04-01 20:41:56 -0700215 device/generic/goldfish/input/virtio_input_multi_touch_1.idc:$(TARGET_COPY_OUT_VENDOR)/usr/idc/virtio_input_multi_touch_1.idc \
216 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 -0700217 device/generic/goldfish/input/virtio_input_multi_touch_3.idc:$(TARGET_COPY_OUT_VENDOR)/usr/idc/virtio_input_multi_touch_3.idc \
218 device/generic/goldfish/input/virtio_input_multi_touch_4.idc:$(TARGET_COPY_OUT_VENDOR)/usr/idc/virtio_input_multi_touch_4.idc \
219 device/generic/goldfish/input/virtio_input_multi_touch_5.idc:$(TARGET_COPY_OUT_VENDOR)/usr/idc/virtio_input_multi_touch_5.idc \
220 device/generic/goldfish/input/virtio_input_multi_touch_6.idc:$(TARGET_COPY_OUT_VENDOR)/usr/idc/virtio_input_multi_touch_6.idc \
221 device/generic/goldfish/input/virtio_input_multi_touch_7.idc:$(TARGET_COPY_OUT_VENDOR)/usr/idc/virtio_input_multi_touch_7.idc \
222 device/generic/goldfish/input/virtio_input_multi_touch_8.idc:$(TARGET_COPY_OUT_VENDOR)/usr/idc/virtio_input_multi_touch_8.idc \
223 device/generic/goldfish/input/virtio_input_multi_touch_9.idc:$(TARGET_COPY_OUT_VENDOR)/usr/idc/virtio_input_multi_touch_9.idc \
224 device/generic/goldfish/input/virtio_input_multi_touch_10.idc:$(TARGET_COPY_OUT_VENDOR)/usr/idc/virtio_input_multi_touch_10.idc \
225 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 -0700226 device/generic/goldfish/data/etc/config.ini:config.ini \
227 device/generic/goldfish/wifi/simulated_hostapd.conf:$(TARGET_COPY_OUT_VENDOR)/etc/simulated_hostapd.conf \
228 device/generic/goldfish/wifi/wpa_supplicant.conf:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/wpa_supplicant.conf \
229 device/generic/goldfish/wifi/WifiConfigStore.xml:data/misc/wifi/WifiConfigStore.xml \
230 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 -0700231 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 -0700232 device/generic/goldfish/data/etc/handheld_core_hardware.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/handheld_core_hardware.xml \
233 device/generic/goldfish/camera/media_profiles.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_V1_0.xml \
234 frameworks/av/media/libstagefright/data/media_codecs_google_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_audio.xml \
235 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 -0700236 device/generic/goldfish/camera/media_codecs_google_video_default.xml:data/vendor/etc/media_codecs_google_video_default.xml \
237 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 -0700238 device/generic/goldfish/camera/media_codecs.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs.xml \
239 device/generic/goldfish/camera/media_codecs_performance.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_performance.xml \
240 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 -0700241 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 -0700242 frameworks/native/data/etc/android.hardware.camera.autofocus.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.autofocus.xml \
243 frameworks/native/data/etc/android.hardware.camera.full.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.full.xml \
244 frameworks/native/data/etc/android.hardware.fingerprint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.fingerprint.xml \
yahan40f9a292019-10-07 11:34:08 -0700245 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 -0700246 frameworks/native/data/etc/android.hardware.vulkan.compute-0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.vulkan.compute.xml \
247 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 -0700248 frameworks/native/data/etc/android.software.autofill.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.autofill.xml \
bohu5bf58892019-10-26 23:16:58 -0700249 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 -0700250 frameworks/av/media/libeffects/data/audio_effects.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.xml \
251 device/generic/goldfish/audio_policy.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy.conf \
252 frameworks/av/services/audiopolicy/config/audio_policy_configuration_generic.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration.xml \
253 frameworks/av/services/audiopolicy/config/primary_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/primary_audio_policy_configuration.xml \
254 frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/r_submix_audio_policy_configuration.xml \
255 frameworks/av/services/audiopolicy/config/audio_policy_volumes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_volumes.xml \
256 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 -0800257 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 -0700258 device/generic/goldfish/data/etc/permissions/privapp-permissions-goldfish.xml:$(TARGET_COPY_OUT_PRODUCT)/etc/permissions/privapp-permissions-goldfish.xml