• 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/64bitonly/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    MultiDisplayProvider \
68    libGoldfishProfiler
69
70ifneq ($(BUILD_EMULATOR_OPENGL),false)
71PRODUCT_PACKAGES += \
72    libGLESv1_CM_emulation \
73    lib_renderControl_enc \
74    libEGL_emulation \
75    libGLESv2_enc \
76    libvulkan_enc \
77    libGLESv2_emulation \
78    libGLESv1_enc \
79    libEGL_angle \
80    libGLESv1_CM_angle \
81    libGLESv2_angle \
82    libfeature_support_angle.so
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 4\
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)
125#disable the following as it does not support gnss yet
126#PRODUCT_PACKAGES += android.hardware.gnss-service.example
127PRODUCT_PACKAGES += android.hardware.gnss@2.0-service.ranchu
128endif
129
130ifneq ($(EMULATOR_VENDOR_NO_SENSORS),true)
131PRODUCT_PACKAGES += \
132    android.hardware.sensors@2.1-service.multihal \
133    android.hardware.sensors@2.1-impl.ranchu
134# TODO(rkir):
135# add a soong namespace and move this into a.h.sensors@2.1-impl.ranchu
136# as prebuilt_etc. For now soong_namespace causes a build break because the fw
137# refers to our wifi HAL in random places.
138PRODUCT_COPY_FILES += \
139    device/generic/goldfish/sensors/hals.conf:$(TARGET_COPY_OUT_VENDOR)/etc/sensors/hals.conf
140endif
141
142PRODUCT_PACKAGES += \
143    android.hardware.drm@1.0-service \
144    android.hardware.drm@1.0-impl \
145    android.hardware.drm@1.4-service.clearkey \
146
147PRODUCT_PACKAGES += \
148    android.hardware.power-service.example \
149
150PRODUCT_PROPERTY_OVERRIDES += ro.control_privapp_permissions=enforce
151PRODUCT_PROPERTY_OVERRIDES += ro.hardware.power=ranchu
152PRODUCT_PROPERTY_OVERRIDES += ro.crypto.volume.filenames_mode=aes-256-cts
153PRODUCT_VENDOR_PROPERTIES += graphics.gpu.profiler.support=true
154
155PRODUCT_PROPERTY_OVERRIDES += persist.sys.zram_enabled=1 \
156
157PRODUCT_PACKAGES += \
158    android.hardware.dumpstate@1.1-service.example \
159
160# Prevent logcat from getting canceled early on in boot
161PRODUCT_PROPERTY_OVERRIDES += ro.logd.size=1M \
162
163ifneq ($(EMULATOR_VENDOR_NO_CAMERA),true)
164PRODUCT_PACKAGES += \
165    android.hardware.camera.provider@2.4-service_64 \
166    android.hardware.camera.provider@2.4-impl \
167    camera.ranchu \
168    camera.ranchu.jpeg \
169    android.hardware.camera.provider@2.7-service-google \
170    libgooglecamerahwl_impl \
171    android.hardware.camera.provider@2.7-impl-google
172endif
173
174ifneq ($(EMULATOR_VENDOR_NO_SOUND),true)
175PRODUCT_PACKAGES += \
176    android.hardware.audio.service \
177    android.hardware.audio@6.0-impl.ranchu \
178    android.hardware.soundtrigger@2.2-impl.ranchu \
179    android.hardware.audio.effect@6.0-impl \
180
181PRODUCT_COPY_FILES += \
182    device/generic/goldfish/audio/policy/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration.xml \
183    device/generic/goldfish/audio/policy/primary_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/primary_audio_policy_configuration.xml \
184    frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/r_submix_audio_policy_configuration.xml \
185    frameworks/av/services/audiopolicy/config/audio_policy_volumes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_volumes.xml \
186    frameworks/av/services/audiopolicy/config/default_volume_tables.xml:$(TARGET_COPY_OUT_VENDOR)/etc/default_volume_tables.xml \
187    frameworks/av/media/libeffects/data/audio_effects.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.xml \
188
189endif
190
191PRODUCT_PACKAGES += \
192    android.hardware.gatekeeper@1.0-service.software
193
194# WiFi: vendor side
195PRODUCT_PACKAGES += \
196	mac80211_create_radios \
197	createns \
198	dhcpclient \
199	execns \
200	hostapd \
201	hostapd_nohidl \
202	netmgr \
203	wifi_forwarder \
204	wpa_supplicant \
205
206PRODUCT_PACKAGES += \
207    android.hardware.usb@1.0-service
208
209# Thermal
210PRODUCT_PACKAGES += \
211	android.hardware.thermal@2.0-service.mock
212
213# Atrace
214PRODUCT_PACKAGES += \
215	android.hardware.atrace@1.0-service
216
217# Vibrator
218PRODUCT_PACKAGES += \
219	android.hardware.vibrator-service.example
220
221# Authsecret
222PRODUCT_PACKAGES += \
223    android.hardware.authsecret@1.0-service
224
225# Identity
226PRODUCT_PACKAGES += \
227    android.hardware.identity-service.example
228
229# Input Classifier HAL
230PRODUCT_PACKAGES += \
231    android.hardware.input.classifier@1.0-service.default
232
233# lights
234PRODUCT_PACKAGES += \
235    android.hardware.lights-service.example
236
237# power stats
238PRODUCT_PACKAGES += \
239    android.hardware.power.stats@1.0-service.mock
240
241# Reboot escrow
242PRODUCT_PACKAGES += \
243    android.hardware.rebootescrow-service.default
244
245# Extension implementation for Jetpack WindowManager
246PRODUCT_PACKAGES += \
247    androidx.window.sidecar
248
249PRODUCT_PACKAGES += \
250    android.hardware.biometrics.face@1.0-service.example
251
252PRODUCT_PACKAGES += \
253    android.hardware.contexthub@1.1-service.mock
254
255
256PRODUCT_PROPERTY_OVERRIDES += \
257    debug.stagefright.c2inputsurface=-1 \
258    debug.stagefright.ccodec=4
259
260# Enable Incremental on the device via kernel driver
261PRODUCT_PROPERTY_OVERRIDES += ro.incremental.enable=yes
262
263
264PRODUCT_COPY_FILES += \
265    device/generic/goldfish/data/etc/dtb.img:dtb.img \
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/wifi/init.wifi.sh:$(TARGET_COPY_OUT_VENDOR)/bin/init.wifi.sh \
276    device/generic/goldfish/init.ranchu.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.ranchu.rc \
277    device/generic/goldfish/init.system_ext.rc:$(TARGET_COPY_OUT_SYSTEM_EXT)/etc/init/init.system_ext.rc \
278    device/generic/goldfish/fstab.ranchu:$(TARGET_COPY_OUT_VENDOR)/etc/fstab.ranchu \
279    device/generic/goldfish/ueventd.ranchu.rc:$(TARGET_COPY_OUT_VENDOR)/ueventd.rc \
280    device/generic/goldfish/input/goldfish_rotary.idc:$(TARGET_COPY_OUT_VENDOR)/usr/idc/goldfish_rotary.idc \
281    device/generic/goldfish/input/qwerty2.idc:$(TARGET_COPY_OUT_VENDOR)/usr/idc/qwerty2.idc \
282    device/generic/goldfish/input/qwerty.kl:$(TARGET_COPY_OUT_VENDOR)/usr/keylayout/qwerty.kl \
283    device/generic/goldfish/input/virtio_input_multi_touch_1.idc:$(TARGET_COPY_OUT_VENDOR)/usr/idc/virtio_input_multi_touch_1.idc \
284    device/generic/goldfish/input/virtio_input_multi_touch_2.idc:$(TARGET_COPY_OUT_VENDOR)/usr/idc/virtio_input_multi_touch_2.idc \
285    device/generic/goldfish/input/virtio_input_multi_touch_3.idc:$(TARGET_COPY_OUT_VENDOR)/usr/idc/virtio_input_multi_touch_3.idc \
286    device/generic/goldfish/input/virtio_input_multi_touch_4.idc:$(TARGET_COPY_OUT_VENDOR)/usr/idc/virtio_input_multi_touch_4.idc \
287    device/generic/goldfish/input/virtio_input_multi_touch_5.idc:$(TARGET_COPY_OUT_VENDOR)/usr/idc/virtio_input_multi_touch_5.idc \
288    device/generic/goldfish/input/virtio_input_multi_touch_6.idc:$(TARGET_COPY_OUT_VENDOR)/usr/idc/virtio_input_multi_touch_6.idc \
289    device/generic/goldfish/input/virtio_input_multi_touch_7.idc:$(TARGET_COPY_OUT_VENDOR)/usr/idc/virtio_input_multi_touch_7.idc \
290    device/generic/goldfish/input/virtio_input_multi_touch_8.idc:$(TARGET_COPY_OUT_VENDOR)/usr/idc/virtio_input_multi_touch_8.idc \
291    device/generic/goldfish/input/virtio_input_multi_touch_9.idc:$(TARGET_COPY_OUT_VENDOR)/usr/idc/virtio_input_multi_touch_9.idc \
292    device/generic/goldfish/input/virtio_input_multi_touch_10.idc:$(TARGET_COPY_OUT_VENDOR)/usr/idc/virtio_input_multi_touch_10.idc \
293    device/generic/goldfish/input/virtio_input_multi_touch_11.idc:$(TARGET_COPY_OUT_VENDOR)/usr/idc/virtio_input_multi_touch_11.idc \
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/device_state_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/devicestate/device_state_configuration.xml \
297    device/generic/goldfish/data/etc/config.ini:config.ini \
298    device/generic/goldfish/wifi/simulated_hostapd.conf:$(TARGET_COPY_OUT_VENDOR)/etc/simulated_hostapd.conf \
299    device/generic/goldfish/wifi/wpa_supplicant.conf:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/wpa_supplicant.conf \
300    frameworks/native/data/etc/android.hardware.bluetooth_le.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth_le.xml \
301    frameworks/native/data/etc/android.hardware.bluetooth.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth.xml \
302    system/bt/vendor_libs/test_vendor_lib/data/controller_properties.json:vendor/etc/bluetooth/controller_properties.json \
303    frameworks/native/data/etc/android.hardware.wifi.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.xml \
304    frameworks/native/data/etc/android.hardware.wifi.passpoint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.passpoint.xml \
305    frameworks/native/data/etc/android.hardware.wifi.direct.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.direct.xml \
306    device/generic/goldfish/data/etc/handheld_core_hardware.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/handheld_core_hardware.xml \
307    device/generic/goldfish/camera/media_profiles.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_V1_0.xml \
308    frameworks/av/media/libstagefright/data/media_codecs_google_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_audio.xml \
309    frameworks/av/media/libstagefright/data/media_codecs_google_telephony.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_telephony.xml \
310    device/generic/goldfish/camera/media_codecs_google_video_default.xml:${TARGET_COPY_OUT_VENDOR}/etc/media_codecs_google_video.xml \
311    device/generic/goldfish/camera/media_codecs.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs.xml \
312    device/generic/goldfish/camera/media_codecs_performance.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_performance.xml \
313    device/generic/goldfish/camera/media_codecs_performance_c2.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_performance_c2.xml \
314    frameworks/native/data/etc/android.hardware.touchscreen.multitouch.jazzhand.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml \
315    frameworks/native/data/etc/android.hardware.camera.ar.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.ar.xml \
316    frameworks/native/data/etc/android.hardware.camera.flash-autofocus.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.flash-autofocus.xml \
317    frameworks/native/data/etc/android.hardware.camera.concurrent.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.concurrent.xml \
318    frameworks/native/data/etc/android.hardware.camera.front.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.front.xml \
319    frameworks/native/data/etc/android.hardware.camera.full.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.full.xml \
320    frameworks/native/data/etc/android.hardware.camera.raw.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.raw.xml \
321    frameworks/native/data/etc/android.hardware.fingerprint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.fingerprint.xml \
322    frameworks/native/data/etc/android.hardware.vulkan.level-1.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.vulkan.level.xml \
323    frameworks/native/data/etc/android.hardware.vulkan.compute-0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.vulkan.compute.xml \
324    frameworks/native/data/etc/android.hardware.vulkan.version-1_1.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.vulkan.version.xml \
325    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 \
326    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 \
327    frameworks/native/data/etc/android.software.autofill.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.autofill.xml \
328    frameworks/native/data/etc/android.software.verified_boot.xml:${TARGET_COPY_OUT_PRODUCT}/etc/permissions/android.software.verified_boot.xml \
329    device/generic/goldfish/data/etc/permissions/privapp-permissions-goldfish.xml:$(TARGET_COPY_OUT_PRODUCT)/etc/permissions/privapp-permissions-goldfish.xml \
330    hardware/google/camera/devices/EmulatedCamera/hwl/configs/emu_camera_back.json:$(TARGET_COPY_OUT_VENDOR)/etc/config/emu_camera_back.json \
331    hardware/google/camera/devices/EmulatedCamera/hwl/configs/emu_camera_front.json:$(TARGET_COPY_OUT_VENDOR)/etc/config/emu_camera_front.json \
332    hardware/google/camera/devices/EmulatedCamera/hwl/configs/emu_camera_depth.json:$(TARGET_COPY_OUT_VENDOR)/etc/config/emu_camera_depth.json \
333