• Home
  • History
  • Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#
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$(call inherit-product-if-exists, frameworks/native/build/phone-xhdpi-2048-dalvik-heap.mk)
20
21# Enable Scoped Storage related
22$(call inherit-product, $(SRC_TARGET_DIR)/product/emulated_storage.mk)
23
24PRODUCT_SOONG_NAMESPACES += \
25    device/generic/goldfish \
26    device/generic/goldfish-opengl
27
28PRODUCT_SYSTEM_EXT_PROPERTIES += ro.lockscreen.disable.default=1
29
30DISABLE_RILD_OEM_HOOK := true
31
32DEVICE_MANIFEST_FILE := device/generic/goldfish/manifest.xml
33PRODUCT_SOONG_NAMESPACES += hardware/google/camera
34PRODUCT_SOONG_NAMESPACES += hardware/google/camera/devices/EmulatedCamera
35
36# Device modules
37PRODUCT_PACKAGES += \
38    vulkan.ranchu \
39    libandroidemu \
40    libOpenglCodecCommon \
41    libOpenglSystemCommon \
42    libcuttlefish-ril-2 \
43    libgoldfish-rild \
44    qemu-adb-keys \
45    qemu-device-state \
46    qemu-props \
47    stagefright \
48    fingerprint.ranchu \
49    android.hardware.graphics.composer@2.4-service \
50    android.hardware.graphics.allocator@3.0-service \
51    android.hardware.graphics.mapper@3.0-impl-ranchu \
52    hwcomposer.ranchu \
53    toybox_vendor \
54    android.hardware.wifi@1.0-service \
55    android.hardware.biometrics.fingerprint@2.1-service \
56    android.hardware.media.c2@1.0-service-goldfish \
57    libcodec2_goldfish_vp8dec \
58    libcodec2_goldfish_vp9dec \
59    libcodec2_goldfish_avcdec \
60    sh_vendor \
61    local_time.default \
62    SdkSetup \
63    EmulatorRadioConfig \
64    EmulatorTetheringConfigOverlay \
65    libstagefrighthw \
66    libstagefright_goldfish_vpxdec \
67    libstagefright_goldfish_avcdec \
68    MultiDisplayProvider \
69    libGoldfishProfiler \
70
71ifneq ($(BUILD_EMULATOR_OPENGL),false)
72PRODUCT_PACKAGES += \
73    libGLESv1_CM_emulation \
74    lib_renderControl_enc \
75    libEGL_emulation \
76    libGLESv2_enc \
77    libvulkan_enc \
78    libGLESv2_emulation \
79    libGLESv1_enc \
80    libEGL_angle \
81    libGLESv1_CM_angle \
82    libGLESv2_angle
83endif
84
85PRODUCT_PACKAGES += \
86    android.hardware.bluetooth@1.1-service.sim \
87    android.hardware.bluetooth.audio@2.0-impl
88PRODUCT_PROPERTY_OVERRIDES += vendor.bt.rootcanal_test_console=off
89
90PRODUCT_PACKAGES += \
91    android.hardware.health@2.1-service \
92    android.hardware.health@2.1-impl \
93    android.hardware.health.storage@1.0-service \
94
95PRODUCT_PACKAGES += \
96    android.hardware.neuralnetworks@1.3-service-sample-all \
97    android.hardware.neuralnetworks@1.3-service-sample-float-fast \
98    android.hardware.neuralnetworks@1.3-service-sample-float-slow \
99    android.hardware.neuralnetworks@1.3-service-sample-minimal \
100    android.hardware.neuralnetworks@1.3-service-sample-quant
101
102PRODUCT_PACKAGES += \
103    android.hardware.keymaster@4.1-service
104
105PRODUCT_PACKAGES += \
106    DisplayCutoutEmulationEmu01Overlay \
107    EmulationPixel5Overlay \
108    SystemUIEmulationPixel5Overlay \
109    EmulationPixel4XLOverlay \
110    SystemUIEmulationPixel4XLOverlay \
111    EmulationPixel4Overlay \
112    SystemUIEmulationPixel4Overlay \
113    EmulationPixel4aOverlay \
114    SystemUIEmulationPixel4aOverlay \
115    EmulationPixel3XLOverlay \
116    SystemUIEmulationPixel3XLOverlay \
117    SystemUIEmulationPixel3Overlay \
118    SystemUIEmulationPixel3aOverlay \
119    SystemUIEmulationPixel3aXLOverlay \
120    EmulationPixel2XLOverlay \
121    SystemUIEmulationPixel2XLOverlay \
122    NavigationBarMode2ButtonOverlay \
123
124ifneq ($(EMULATOR_VENDOR_NO_GNSS),true)
125PRODUCT_PACKAGES += android.hardware.gnss-service.example
126endif
127
128ifneq ($(EMULATOR_VENDOR_NO_SENSORS),true)
129PRODUCT_PACKAGES += \
130    android.hardware.sensors@2.1-service.multihal \
131    android.hardware.sensors@2.1-impl.ranchu
132# TODO(rkir):
133# add a soong namespace and move this into a.h.sensors@2.1-impl.ranchu
134# as prebuilt_etc. For now soong_namespace causes a build break because the fw
135# refers to our wifi HAL in random places.
136PRODUCT_COPY_FILES += \
137    device/generic/goldfish/sensors/hals.conf:$(TARGET_COPY_OUT_VENDOR)/etc/sensors/hals.conf
138endif
139
140PRODUCT_PACKAGES += \
141    android.hardware.drm@1.0-service \
142    android.hardware.drm@1.0-impl \
143    android.hardware.drm@1.4-service.clearkey \
144
145
146PRODUCT_PACKAGES += \
147    android.hardware.power-service.example \
148
149PRODUCT_PROPERTY_OVERRIDES += ro.control_privapp_permissions?=enforce
150PRODUCT_PROPERTY_OVERRIDES += ro.hardware.power=ranchu
151PRODUCT_PROPERTY_OVERRIDES += ro.crypto.volume.filenames_mode=aes-256-cts
152PRODUCT_VENDOR_PROPERTIES += graphics.gpu.profiler.support=true
153
154PRODUCT_PROPERTY_OVERRIDES += persist.sys.zram_enabled=1 \
155
156PRODUCT_PACKAGES += \
157    android.hardware.dumpstate@1.1-service.example \
158
159# Prevent logcat from getting canceled early on in boot
160PRODUCT_PROPERTY_OVERRIDES += ro.logd.size=1M \
161
162ifneq ($(EMULATOR_VENDOR_NO_CAMERA),true)
163PRODUCT_PACKAGES += \
164    android.hardware.camera.provider@2.4-service \
165    android.hardware.camera.provider@2.4-impl \
166    camera.ranchu \
167    camera.ranchu.jpeg \
168    android.hardware.camera.provider@2.7-service-google \
169    libgooglecamerahwl_impl \
170    android.hardware.camera.provider@2.7-impl-google
171DEVICE_MANIFEST_FILE += device/generic/goldfish/manifest.camera.xml
172endif
173
174ifneq ($(EMULATOR_VENDOR_NO_SOUND),true)
175PRODUCT_PACKAGES += \
176    android.hardware.audio.service \
177    android.hardware.audio@7.0-impl.ranchu \
178    android.hardware.soundtrigger@2.2-impl.ranchu \
179    android.hardware.audio.effect@7.0-impl \
180
181DEVICE_MANIFEST_FILE += device/generic/goldfish/audio/android.hardware.audio.effects@7.0.xml
182
183PRODUCT_COPY_FILES += \
184    device/generic/goldfish/audio/policy/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration.xml \
185    device/generic/goldfish/audio/policy/primary_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/primary_audio_policy_configuration.xml \
186    frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/r_submix_audio_policy_configuration.xml \
187    frameworks/av/services/audiopolicy/config/audio_policy_volumes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_volumes.xml \
188    frameworks/av/services/audiopolicy/config/default_volume_tables.xml:$(TARGET_COPY_OUT_VENDOR)/etc/default_volume_tables.xml \
189    frameworks/av/media/libeffects/data/audio_effects.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.xml \
190
191endif
192
193PRODUCT_PACKAGES += \
194    android.hardware.gatekeeper@1.0-service.software
195
196# WiFi: vendor side
197PRODUCT_PACKAGES += \
198	mac80211_create_radios \
199	dhcpclient \
200	hostapd \
201	wpa_supplicant \
202
203PRODUCT_PACKAGES += \
204    android.hardware.usb@1.0-service
205
206# Thermal
207PRODUCT_PACKAGES += \
208	android.hardware.thermal@2.0-service.mock
209
210# Atrace
211PRODUCT_PACKAGES += \
212	android.hardware.atrace@1.0-service
213
214# Vibrator
215PRODUCT_PACKAGES += \
216	android.hardware.vibrator-service.example
217
218# Authsecret
219PRODUCT_PACKAGES += \
220    android.hardware.authsecret@1.0-service
221
222# Identity
223PRODUCT_PACKAGES += \
224    android.hardware.identity-service.example
225
226# Input Classifier HAL
227PRODUCT_PACKAGES += \
228    android.hardware.input.classifier@1.0-service.default
229
230# lights
231PRODUCT_PACKAGES += \
232    android.hardware.lights-service.example
233
234# power stats
235PRODUCT_PACKAGES += \
236    android.hardware.power.stats@1.0-service.mock
237
238# Reboot escrow
239PRODUCT_PACKAGES += \
240    android.hardware.rebootescrow-service.default
241
242# Extension implementation for Jetpack WindowManager
243PRODUCT_PACKAGES += \
244    androidx.window.extensions \
245    androidx.window.sidecar \
246
247PRODUCT_PACKAGES += \
248    android.hardware.biometrics.face@1.0-service.example
249
250PRODUCT_PACKAGES += \
251    android.hardware.contexthub@1.1-service.mock
252
253# for 32, 32+64 guest, default using omx, but can be
254# modified at command line as follows
255# -qemu -append qemu.media.ccodec=<value> can override it; default 0
256PRODUCT_PROPERTY_OVERRIDES += \
257    debug.stagefright.ccodec=0
258
259# Enable Incremental on the device via kernel driver
260PRODUCT_PROPERTY_OVERRIDES += ro.incremental.enable=yes
261
262
263PRODUCT_COPY_FILES += \
264    device/generic/goldfish/data/etc/dtb.img:dtb.img \
265    device/generic/goldfish/emulator-info.txt:data/misc/emulator/version.txt \
266    device/generic/goldfish/data/etc/apns-conf.xml:data/misc/apns/apns-conf.xml \
267    device/generic/goldfish/radio/RadioConfig/radioconfig.xml:data/misc/emulator/config/radioconfig.xml \
268    device/generic/goldfish/data/etc/iccprofile_for_sim0.xml:data/misc/modem_simulator/iccprofile_for_sim0.xml \
269    device/google/cuttlefish/host/commands/modem_simulator/files/iccprofile_for_sim0_for_CtsCarrierApiTestCases.xml:data/misc/modem_simulator/iccprofile_for_carrierapitests.xml \
270    device/generic/goldfish/data/etc/numeric_operator.xml:data/misc/modem_simulator/etc/modem_simulator/files/numeric_operator.xml \
271    device/generic/goldfish/data/etc/local.prop:data/local.prop \
272    device/generic/goldfish/init.qemu-adb-keys.sh:$(TARGET_COPY_OUT_SYSTEM_EXT)/bin/init.qemu-adb-keys.sh \
273    device/generic/goldfish/init.ranchu-core.sh:$(TARGET_COPY_OUT_VENDOR)/bin/init.ranchu-core.sh \
274    device/generic/goldfish/init.ranchu-net.sh:$(TARGET_COPY_OUT_VENDOR)/bin/init.ranchu-net.sh \
275    device/generic/goldfish/init.ranchu.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.ranchu.rc \
276    device/generic/goldfish/init.system_ext.rc:$(TARGET_COPY_OUT_SYSTEM_EXT)/etc/init/init.system_ext.rc \
277    device/generic/goldfish/fstab.ranchu:$(TARGET_COPY_OUT_VENDOR)/etc/fstab.ranchu \
278    device/generic/goldfish/ueventd.ranchu.rc:$(TARGET_COPY_OUT_VENDOR)/ueventd.rc \
279    device/generic/goldfish/input/goldfish_rotary.idc:$(TARGET_COPY_OUT_VENDOR)/usr/idc/goldfish_rotary.idc \
280    device/generic/goldfish/input/qwerty2.idc:$(TARGET_COPY_OUT_VENDOR)/usr/idc/qwerty2.idc \
281    device/generic/goldfish/input/qwerty.kl:$(TARGET_COPY_OUT_VENDOR)/usr/keylayout/qwerty.kl \
282    device/generic/goldfish/input/virtio_input_multi_touch_1.idc:$(TARGET_COPY_OUT_VENDOR)/usr/idc/virtio_input_multi_touch_1.idc \
283    device/generic/goldfish/input/virtio_input_multi_touch_2.idc:$(TARGET_COPY_OUT_VENDOR)/usr/idc/virtio_input_multi_touch_2.idc \
284    device/generic/goldfish/input/virtio_input_multi_touch_3.idc:$(TARGET_COPY_OUT_VENDOR)/usr/idc/virtio_input_multi_touch_3.idc \
285    device/generic/goldfish/input/virtio_input_multi_touch_4.idc:$(TARGET_COPY_OUT_VENDOR)/usr/idc/virtio_input_multi_touch_4.idc \
286    device/generic/goldfish/input/virtio_input_multi_touch_5.idc:$(TARGET_COPY_OUT_VENDOR)/usr/idc/virtio_input_multi_touch_5.idc \
287    device/generic/goldfish/input/virtio_input_multi_touch_6.idc:$(TARGET_COPY_OUT_VENDOR)/usr/idc/virtio_input_multi_touch_6.idc \
288    device/generic/goldfish/input/virtio_input_multi_touch_7.idc:$(TARGET_COPY_OUT_VENDOR)/usr/idc/virtio_input_multi_touch_7.idc \
289    device/generic/goldfish/input/virtio_input_multi_touch_8.idc:$(TARGET_COPY_OUT_VENDOR)/usr/idc/virtio_input_multi_touch_8.idc \
290    device/generic/goldfish/input/virtio_input_multi_touch_9.idc:$(TARGET_COPY_OUT_VENDOR)/usr/idc/virtio_input_multi_touch_9.idc \
291    device/generic/goldfish/input/virtio_input_multi_touch_10.idc:$(TARGET_COPY_OUT_VENDOR)/usr/idc/virtio_input_multi_touch_10.idc \
292    device/generic/goldfish/input/virtio_input_multi_touch_11.idc:$(TARGET_COPY_OUT_VENDOR)/usr/idc/virtio_input_multi_touch_11.idc \
293    device/generic/goldfish/display_settings_app_compat.xml:$(TARGET_COPY_OUT_VENDOR)/etc/display_settings_app_compat.xml \
294    device/generic/goldfish/display_settings_freeform.xml:$(TARGET_COPY_OUT_VENDOR)/etc/display_settings_freeform.xml \
295    device/generic/goldfish/display_settings.xml:$(TARGET_COPY_OUT_VENDOR)/etc/display_settings.xml \
296    device/generic/goldfish/data/etc/config.ini:config.ini \
297    device/generic/goldfish/wifi/simulated_hostapd.conf:$(TARGET_COPY_OUT_VENDOR)/etc/simulated_hostapd.conf \
298    device/generic/goldfish/wifi/wpa_supplicant.conf:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/wpa_supplicant.conf \
299    frameworks/native/data/etc/android.hardware.bluetooth_le.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth_le.xml \
300    frameworks/native/data/etc/android.hardware.bluetooth.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth.xml \
301    system/bt/vendor_libs/test_vendor_lib/data/controller_properties.json:vendor/etc/bluetooth/controller_properties.json \
302    frameworks/native/data/etc/android.hardware.wifi.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.xml \
303    frameworks/native/data/etc/android.hardware.wifi.passpoint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.passpoint.xml \
304    frameworks/native/data/etc/android.hardware.wifi.direct.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.direct.xml \
305    device/generic/goldfish/data/etc/handheld_core_hardware.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/handheld_core_hardware.xml \
306    device/generic/goldfish/camera/media_profiles.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_V1_0.xml \
307    frameworks/av/media/libstagefright/data/media_codecs_google_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_audio.xml \
308    frameworks/av/media/libstagefright/data/media_codecs_google_telephony.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_telephony.xml \
309    device/generic/goldfish/camera/media_codecs_google_video_default.xml:${TARGET_COPY_OUT_VENDOR}/etc/media_codecs_google_video.xml \
310    device/generic/goldfish/camera/media_codecs.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs.xml \
311    device/generic/goldfish/camera/media_codecs_performance.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_performance.xml \
312    frameworks/native/data/etc/android.hardware.touchscreen.multitouch.jazzhand.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml \
313    frameworks/native/data/etc/android.hardware.camera.ar.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.ar.xml \
314    frameworks/native/data/etc/android.hardware.camera.flash-autofocus.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.flash-autofocus.xml \
315    frameworks/native/data/etc/android.hardware.camera.concurrent.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.concurrent.xml \
316    frameworks/native/data/etc/android.hardware.camera.front.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.front.xml \
317    frameworks/native/data/etc/android.hardware.camera.full.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.full.xml \
318    frameworks/native/data/etc/android.hardware.camera.raw.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.raw.xml \
319    frameworks/native/data/etc/android.hardware.fingerprint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.fingerprint.xml \
320    frameworks/native/data/etc/android.hardware.vulkan.level-1.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.vulkan.level.xml \
321    frameworks/native/data/etc/android.hardware.vulkan.compute-0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.vulkan.compute.xml \
322    frameworks/native/data/etc/android.hardware.vulkan.version-1_1.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.vulkan.version.xml \
323    frameworks/native/data/etc/android.software.vulkan.deqp.level-2021-03-01.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.vulkan.deqp.level.xml \
324    frameworks/native/data/etc/android.software.opengles.deqp.level-2021-03-01.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.opengles.deqp.level.xml \
325    frameworks/native/data/etc/android.software.autofill.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.autofill.xml \
326    frameworks/native/data/etc/android.software.verified_boot.xml:${TARGET_COPY_OUT_PRODUCT}/etc/permissions/android.software.verified_boot.xml \
327    device/generic/goldfish/data/etc/permissions/privapp-permissions-goldfish.xml:$(TARGET_COPY_OUT_PRODUCT)/etc/permissions/privapp-permissions-goldfish.xml \
328    hardware/google/camera/devices/EmulatedCamera/hwl/configs/emu_camera_back.json:$(TARGET_COPY_OUT_VENDOR)/etc/config/emu_camera_back.json \
329    hardware/google/camera/devices/EmulatedCamera/hwl/configs/emu_camera_front.json:$(TARGET_COPY_OUT_VENDOR)/etc/config/emu_camera_front.json \
330    hardware/google/camera/devices/EmulatedCamera/hwl/configs/emu_camera_depth.json:$(TARGET_COPY_OUT_VENDOR)/etc/config/emu_camera_depth.json \
331