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