blob: 7d2b5466f88e43953f3b3059eb25b7e9ab1fa52e [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
bohu7efb22a2020-01-06 17:09:53 -080021PRODUCT_SYSTEM_EXT_PROPERTIES += ro.lockscreen.disable.default=1
bohu8e19bbe2019-08-29 22:49:58 -070022
Steven Moreland38439882019-08-22 12:44:25 -070023DISABLE_RILD_OEM_HOOK := true
24
Peter Collingbourne094ab362019-10-15 18:37:19 -070025DEVICE_MANIFEST_FILE := device/generic/goldfish/manifest.xml
26
bohu268c72f2018-06-09 08:19:08 -070027# Device modules
28PRODUCT_PACKAGES += \
Lingfeng Yange835ecc2019-02-02 20:46:23 -080029 vulkan.ranchu \
Lingfeng Yang9c195c72019-08-27 08:44:30 -070030 libandroidemu \
Lingfeng Yang48d30292018-09-28 15:53:24 -070031 libOpenglCodecCommon \
bohu268c72f2018-06-09 08:19:08 -070032 libOpenglSystemCommon \
Bjoern Johanssonfda217c2018-06-14 16:02:30 -070033 libgoldfish-ril \
bohu24b53922020-04-12 09:11:49 -070034 libgoldfish-rild \
35 libril-goldfish-fork \
bohu268c72f2018-06-09 08:19:08 -070036 qemu-props \
bohu268c72f2018-06-09 08:19:08 -070037 audio.primary.goldfish \
bohu85185e72020-01-13 17:22:43 -080038 stagefright \
bohu268c72f2018-06-09 08:19:08 -070039 fingerprint.ranchu \
Huihong Luo4712fc02019-10-11 10:51:00 -070040 android.hardware.graphics.composer@2.3-impl \
41 android.hardware.graphics.composer@2.3-service \
Roman Kiryanovf13e6172020-01-28 13:47:42 -080042 android.hardware.graphics.allocator@3.0-service \
Lingfeng Yang7b301a52020-02-25 16:14:06 -080043 android.hardware.graphics.mapper@3.0-impl-ranchu \
bohu268c72f2018-06-09 08:19:08 -070044 hwcomposer.ranchu \
45 toybox_vendor \
bohu268c72f2018-06-09 08:19:08 -070046 android.hardware.wifi@1.0-service \
47 android.hardware.biometrics.fingerprint@2.1-service \
48 sh_vendor \
Bjoern Johansson6ba92a42019-06-24 14:23:48 -070049 ip_vendor \
bohu8d693282018-11-28 09:19:40 -080050 iw_vendor \
bohu268c72f2018-06-09 08:19:08 -070051 local_time.default \
Huan Song09bec372019-09-30 12:41:39 -070052 SdkSetup \
bohu89f03882019-12-06 09:04:51 -080053 libstagefrighthw \
54 libstagefright_goldfish_vpxdec \
bohu272f7802019-12-11 09:27:22 -080055 libstagefright_goldfish_avcdec \
Huan Song09bec372019-09-30 12:41:39 -070056 MultiDisplayProvider
bohu268c72f2018-06-09 08:19:08 -070057
Peter Collingbourne094ab362019-10-15 18:37:19 -070058ifneq ($(BUILD_EMULATOR_OPENGL),false)
59PRODUCT_PACKAGES += \
60 libGLESv1_CM_emulation \
61 lib_renderControl_enc \
62 libEGL_emulation \
63 libGLESv2_enc \
64 libvulkan_enc \
65 libGLESv2_emulation \
66 libGLESv1_enc
67endif
68
bohu268c72f2018-06-09 08:19:08 -070069PRODUCT_PACKAGES += \
Roman Kiryanov9d509432020-04-08 14:22:18 -070070 audio.r_submix.default \
Roman Kiryanov56014e72020-04-08 14:23:47 -070071 android.hardware.audio.service \
Roman Kiryanovedf584c2020-04-08 15:17:34 -070072 android.hardware.audio@6.0-impl:32 \
73 android.hardware.audio.effect@6.0-impl:32 \
74 android.hardware.soundtrigger@2.2-impl
bohu268c72f2018-06-09 08:19:08 -070075
76PRODUCT_PACKAGES += \
Roman Kiryanov96053f22020-04-08 11:10:11 -070077 android.hardware.bluetooth@1.1-service.sim \
78 android.hardware.bluetooth.audio@2.0-impl
79PRODUCT_PROPERTY_OVERRIDES += bt.rootcanal_test_console=off
80
81PRODUCT_PACKAGES += \
Roman Kiryanovcf241262020-03-26 12:16:06 -070082 android.hardware.health@2.1-service \
83 android.hardware.health@2.1-impl \
Roman Kiryanov9b70f022020-03-26 12:25:55 -070084 android.hardware.health.storage@1.0-service \
huans4772b3d2018-06-15 10:56:16 -070085
86PRODUCT_PACKAGES += \
Roman Kiryanovad4510e2020-04-08 15:58:34 -070087 android.hardware.neuralnetworks@1.3-service-sample-all \
88 android.hardware.neuralnetworks@1.3-service-sample-float-fast \
89 android.hardware.neuralnetworks@1.3-service-sample-float-slow \
90 android.hardware.neuralnetworks@1.3-service-sample-minimal \
91 android.hardware.neuralnetworks@1.3-service-sample-quant
92
93PRODUCT_PACKAGES += \
Roman Kiryanov9d2826f2020-03-27 10:44:22 -070094 android.hardware.keymaster@4.1-service
bohu268c72f2018-06-09 08:19:08 -070095
96PRODUCT_PACKAGES += \
Jim Kayeb8f47812018-06-18 16:24:10 -070097 DisplayCutoutEmulationEmu01Overlay
98
bohud69c26b2018-06-20 08:45:13 -070099ifneq ($(EMULATOR_VENDOR_NO_GNSS),true)
Roman Kiryanovf5007782020-03-30 12:26:49 -0700100PRODUCT_PACKAGES += android.hardware.gnss@2.0-service.ranchu
bohud69c26b2018-06-20 08:45:13 -0700101endif
bohu268c72f2018-06-09 08:19:08 -0700102
Peter Collingbourne094ab362019-10-15 18:37:19 -0700103ifneq ($(EMULATOR_VENDOR_NO_SENSORS),true)
bohu268c72f2018-06-09 08:19:08 -0700104PRODUCT_PACKAGES += \
Roman Kiryanovce321502020-04-10 15:36:21 -0700105 android.hardware.sensors@2.0-service.multihal \
106 android.hardware.sensors@2.0-impl.ranchu
107# TODO(rkir):
108# add a soong namespace and move this into a.h.sensors@2.0-impl.ranchu
109# as prebuilt_etc. For now soong_namespace causes a build break because the fw
110# refers to our wifi HAL in random places.
111PRODUCT_COPY_FILES += \
112 device/generic/goldfish/sensors/hals.conf:$(TARGET_COPY_OUT_VENDOR)/etc/sensors/hals.conf
Peter Collingbourne094ab362019-10-15 18:37:19 -0700113endif
bohu268c72f2018-06-09 08:19:08 -0700114
115PRODUCT_PACKAGES += \
116 android.hardware.drm@1.0-service \
huans85d26b82018-06-13 16:14:28 -0700117 android.hardware.drm@1.0-impl \
bohue7064d72019-01-17 17:16:18 -0800118 android.hardware.drm@1.2-service.clearkey \
119 android.hardware.drm@1.2-service.widevine
bohu268c72f2018-06-09 08:19:08 -0700120
121PRODUCT_PACKAGES += \
Roman Kiryanov2a736c62020-03-20 16:44:58 -0700122 android.hardware.power-service.example \
Haitao Shand9689ef2018-08-17 11:58:33 -0700123
Matt Wachowskif6bb9232018-11-28 09:34:45 -0800124PRODUCT_PROPERTY_OVERRIDES += ro.control_privapp_permissions=enforce
Haitao Shand9689ef2018-08-17 11:58:33 -0700125PRODUCT_PROPERTY_OVERRIDES += ro.hardware.power=ranchu
bohu425d5b12019-07-25 07:33:01 -0700126PRODUCT_PROPERTY_OVERRIDES += ro.crypto.volume.filenames_mode=aes-256-cts
bohu268c72f2018-06-09 08:19:08 -0700127
Lingfeng Yang1655dc72019-04-05 12:08:25 -0700128PRODUCT_PROPERTY_OVERRIDES += persist.sys.zram_enabled=1 \
129
Roman Kiryanov34e2e332020-03-23 14:21:59 -0700130PRODUCT_PACKAGES += \
131 android.hardware.dumpstate@1.1-service.example \
132
Lingfeng Yangfc5f7412020-03-12 16:53:23 -0700133# Prevent logcat from getting canceled early on in boot
134PRODUCT_PROPERTY_OVERRIDES += ro.logd.size=1M \
135
Peter Collingbourne094ab362019-10-15 18:37:19 -0700136ifneq ($(EMULATOR_VENDOR_NO_CAMERA),true)
bohu268c72f2018-06-09 08:19:08 -0700137PRODUCT_PACKAGES += \
138 camera.device@1.0-impl \
139 android.hardware.camera.provider@2.4-service \
140 android.hardware.camera.provider@2.4-impl \
Peter Collingbourne094ab362019-10-15 18:37:19 -0700141 camera.ranchu \
142 camera.ranchu.jpeg
143DEVICE_MANIFEST_FILE += device/generic/goldfish/manifest.camera.xml
144endif
bohu268c72f2018-06-09 08:19:08 -0700145
146PRODUCT_PACKAGES += \
Janis Danisevskis4c1d3392019-06-06 20:01:50 -0700147 android.hardware.gatekeeper@1.0-service.software
bohu268c72f2018-06-09 08:19:08 -0700148
149# WiFi: vendor side
150PRODUCT_PACKAGES += \
Roman Kiryanov5cd94a92020-03-05 12:02:13 -0800151 mac80211_create_radios \
bohu268c72f2018-06-09 08:19:08 -0700152 createns \
153 dhcpclient \
bohu268c72f2018-06-09 08:19:08 -0700154 execns \
155 hostapd \
Bjoern Johansson880e7082018-05-15 15:04:53 -0700156 hostapd_nohidl \
Bjoern Johansson873eee62018-09-06 15:39:12 -0700157 netmgr \
Bjoern Johansson97e05932019-08-01 11:32:18 -0700158 wifi_forwarder \
bohu268c72f2018-06-09 08:19:08 -0700159 wpa_supplicant \
160
Roman Kiryanov6adcaea2020-04-10 13:33:38 -0700161PRODUCT_PACKAGES += \
162 android.hardware.usb@1.0-service
163
Lingfeng Yang2f6d30c2019-11-22 14:35:44 -0800164# Thermal
165PRODUCT_PACKAGES += \
166 android.hardware.thermal@2.0-service.mock
167
168# Atrace
169PRODUCT_PACKAGES += \
170 android.hardware.atrace@1.0-service
171
Roman Kiryanov11bd7ca2019-11-25 10:39:52 -0800172# Vibrator
173PRODUCT_PACKAGES += \
174 android.hardware.vibrator-service.example
Roman Kiryanovb6889742019-04-15 11:13:57 -0700175
Lingfeng Yangb8233672019-11-22 14:44:43 -0800176# Authsecret
177PRODUCT_PACKAGES += \
178 android.hardware.authsecret@1.0-service
179
Roman Kiryanov687973b2020-03-27 12:36:16 -0700180# Identity
181PRODUCT_PACKAGES += \
182 android.hardware.identity-service.example
183
Lingfeng Yang702bf612019-11-22 14:46:35 -0800184# Input Classifier HAL
185PRODUCT_PACKAGES += \
186 android.hardware.input.classifier@1.0-service.default
187
Roman Kiryanovb1e6d8a2020-03-26 14:20:26 -0700188# lights
189PRODUCT_PACKAGES += \
190 android.hardware.lights-service.example
191
Lingfeng Yang65f98342019-11-22 14:57:55 -0800192# power stats
193PRODUCT_PACKAGES += \
194 android.hardware.power.stats@1.0-service.mock
195
bohua0427212019-05-20 15:22:48 -0700196# Goldfish does not support ION needed for Codec 2.0
197PRODUCT_PROPERTY_OVERRIDES += \
198 debug.stagefright.ccodec=0
199
bohu268c72f2018-06-09 08:19:08 -0700200PRODUCT_COPY_FILES += \
bohuf90ff782020-03-30 19:38:57 -0700201 device/generic/goldfish/data/etc/dtb.img:dtb.img \
bohu268c72f2018-06-09 08:19:08 -0700202 device/generic/goldfish/data/etc/apns-conf.xml:data/misc/apns/apns-conf.xml \
bohu7e987592019-03-03 15:44:41 -0800203 device/generic/goldfish/data/etc/local.prop:data/local.prop \
bohu268c72f2018-06-09 08:19:08 -0700204 device/generic/goldfish/init.ranchu-core.sh:$(TARGET_COPY_OUT_VENDOR)/bin/init.ranchu-core.sh \
205 device/generic/goldfish/init.ranchu-net.sh:$(TARGET_COPY_OUT_VENDOR)/bin/init.ranchu-net.sh \
206 device/generic/goldfish/wifi/init.wifi.sh:$(TARGET_COPY_OUT_VENDOR)/bin/init.wifi.sh \
207 device/generic/goldfish/init.ranchu.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.ranchu.rc \
208 device/generic/goldfish/fstab.ranchu:$(TARGET_COPY_OUT_VENDOR)/etc/fstab.ranchu \
209 device/generic/goldfish/ueventd.ranchu.rc:$(TARGET_COPY_OUT_VENDOR)/ueventd.rc \
210 device/generic/goldfish/input/goldfish_rotary.idc:$(TARGET_COPY_OUT_VENDOR)/usr/idc/goldfish_rotary.idc \
Weilun Du70d41852019-08-15 10:59:46 -0700211 device/generic/goldfish/input/qwerty2.idc:$(TARGET_COPY_OUT_VENDOR)/usr/idc/qwerty2.idc \
212 device/generic/goldfish/input/qwerty.kl:$(TARGET_COPY_OUT_VENDOR)/usr/keylayout/qwerty.kl \
Weilun Du41c6d922019-04-01 20:41:56 -0700213 device/generic/goldfish/input/virtio_input_multi_touch_1.idc:$(TARGET_COPY_OUT_VENDOR)/usr/idc/virtio_input_multi_touch_1.idc \
214 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 -0700215 device/generic/goldfish/input/virtio_input_multi_touch_3.idc:$(TARGET_COPY_OUT_VENDOR)/usr/idc/virtio_input_multi_touch_3.idc \
216 device/generic/goldfish/input/virtio_input_multi_touch_4.idc:$(TARGET_COPY_OUT_VENDOR)/usr/idc/virtio_input_multi_touch_4.idc \
217 device/generic/goldfish/input/virtio_input_multi_touch_5.idc:$(TARGET_COPY_OUT_VENDOR)/usr/idc/virtio_input_multi_touch_5.idc \
218 device/generic/goldfish/input/virtio_input_multi_touch_6.idc:$(TARGET_COPY_OUT_VENDOR)/usr/idc/virtio_input_multi_touch_6.idc \
219 device/generic/goldfish/input/virtio_input_multi_touch_7.idc:$(TARGET_COPY_OUT_VENDOR)/usr/idc/virtio_input_multi_touch_7.idc \
220 device/generic/goldfish/input/virtio_input_multi_touch_8.idc:$(TARGET_COPY_OUT_VENDOR)/usr/idc/virtio_input_multi_touch_8.idc \
221 device/generic/goldfish/input/virtio_input_multi_touch_9.idc:$(TARGET_COPY_OUT_VENDOR)/usr/idc/virtio_input_multi_touch_9.idc \
222 device/generic/goldfish/input/virtio_input_multi_touch_10.idc:$(TARGET_COPY_OUT_VENDOR)/usr/idc/virtio_input_multi_touch_10.idc \
223 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 -0700224 device/generic/goldfish/data/etc/config.ini:config.ini \
225 device/generic/goldfish/wifi/simulated_hostapd.conf:$(TARGET_COPY_OUT_VENDOR)/etc/simulated_hostapd.conf \
226 device/generic/goldfish/wifi/wpa_supplicant.conf:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/wpa_supplicant.conf \
227 device/generic/goldfish/wifi/WifiConfigStore.xml:data/misc/wifi/WifiConfigStore.xml \
Roman Kiryanov96053f22020-04-08 11:10:11 -0700228 frameworks/native/data/etc/android.hardware.bluetooth_le.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth_le.xml \
229 frameworks/native/data/etc/android.hardware.bluetooth.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth.xml \
230 system/bt/vendor_libs/test_vendor_lib/data/controller_properties.json:vendor/etc/bluetooth/controller_properties.json \
bohu268c72f2018-06-09 08:19:08 -0700231 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 -0700232 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 -0700233 device/generic/goldfish/data/etc/handheld_core_hardware.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/handheld_core_hardware.xml \
234 device/generic/goldfish/camera/media_profiles.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_V1_0.xml \
235 frameworks/av/media/libstagefright/data/media_codecs_google_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_audio.xml \
236 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 -0800237 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 -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 \
Lingfeng Yang1c2299a2020-02-13 08:47:13 -0800248 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 -0700249 frameworks/native/data/etc/android.software.autofill.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.autofill.xml \
bohu5bf58892019-10-26 23:16:58 -0700250 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 -0700251 frameworks/av/media/libeffects/data/audio_effects.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.xml \
252 device/generic/goldfish/audio_policy.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy.conf \
253 frameworks/av/services/audiopolicy/config/audio_policy_configuration_generic.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration.xml \
254 frameworks/av/services/audiopolicy/config/primary_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/primary_audio_policy_configuration.xml \
255 frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/r_submix_audio_policy_configuration.xml \
256 frameworks/av/services/audiopolicy/config/audio_policy_volumes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_volumes.xml \
257 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 -0800258 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 -0700259 device/generic/goldfish/data/etc/permissions/privapp-permissions-goldfish.xml:$(TARGET_COPY_OUT_PRODUCT)/etc/permissions/privapp-permissions-goldfish.xml