xref: /aosp_15_r20/prebuilts/android-emulator/darwin-x86_64/lib/advancedFeatures.ini (revision d870e0501505f2fc9999364ffe386a6b6151adc1)
1*d870e050SAndroid Build Coastguard Worker#-------------------------------------------------------------------------------
2*d870e050SAndroid Build Coastguard Worker# Advanced emulator features
3*d870e050SAndroid Build Coastguard Worker#-------------------------------------------------------------------------------
4*d870e050SAndroid Build Coastguard Worker
5*d870e050SAndroid Build Coastguard Worker# GLPipeChecksum----------------------------------------------------------------
6*d870e050SAndroid Build Coastguard Worker# For every GL call that transfers between host and guest, GLPipeChecksum = on
7*d870e050SAndroid Build Coastguard Worker# will compute a checksum consisting of some function of the actual bit vector
8*d870e050SAndroid Build Coastguard Worker# corresponding to the GL command, verifying that the same checksum shows up
9*d870e050SAndroid Build Coastguard Worker# on both the host and guest. Violations of the checksum (mismatches) result
10*d870e050SAndroid Build Coastguard Worker# in an abort() and crash report being sent.
11*d870e050SAndroid Build Coastguard Worker#
12*d870e050SAndroid Build Coastguard Worker# Currently, the checksum is mainly making sure that the command itself and all
13*d870e050SAndroid Build Coastguard Worker# arrays passed through the pipe are of proper length.
14*d870e050SAndroid Build Coastguard WorkerGLPipeChecksum = on
15*d870e050SAndroid Build Coastguard Worker# ------------------------------------------------------------------------------
16*d870e050SAndroid Build Coastguard Worker
17*d870e050SAndroid Build Coastguard Worker# GrallocSync-------------------------------------------------------------------
18*d870e050SAndroid Build Coastguard Worker# Most apps that display images do so through OpenGL, but there are some apps
19*d870e050SAndroid Build Coastguard Worker# that write directly to gralloc color buffers. In our goldfish-driver gralloc
20*d870e050SAndroid Build Coastguard Worker# implementation, which represents gralloc color buffers as host OpenGL color
21*d870e050SAndroid Build Coastguard Worker# buffers.
22*d870e050SAndroid Build Coastguard Worker#
23*d870e050SAndroid Build Coastguard Worker# For example, in the camera app, the emulated webcam driver will pull frames
24*d870e050SAndroid Build Coastguard Worker# to a gralloc color buffer directly, and then in another thread or process,
25*d870e050SAndroid Build Coastguard Worker# the color buffer representing the camera frame preview could be posted
26*d870e050SAndroid Build Coastguard Worker# onscreen.
27*d870e050SAndroid Build Coastguard Worker#
28*d870e050SAndroid Build Coastguard Worker# These operations aren't guaranteed to have their order preserved when arriving
29*d870e050SAndroid Build Coastguard Worker# from the guest, and if executed on the host in the wrong order, we could
30*d870e050SAndroid Build Coastguard Worker# end up with out of order webcam frames, for instance.
31*d870e050SAndroid Build Coastguard Worker#
32*d870e050SAndroid Build Coastguard Worker# GrallocSync = on adds synchronization to the host for this use case where apps
33*d870e050SAndroid Build Coastguard Worker# directly write to gralloc color buffers and then post them.
34*d870e050SAndroid Build Coastguard Worker# Gralloc sync disabled for now because it is making CTS sad.
35*d870e050SAndroid Build Coastguard WorkerGrallocSync = off
36*d870e050SAndroid Build Coastguard Worker# ------------------------------------------------------------------------------
37*d870e050SAndroid Build Coastguard Worker
38*d870e050SAndroid Build Coastguard Worker# GLAsyncSwap-------------------------------------------------------------------
39*d870e050SAndroid Build Coastguard Worker# OpenGL apps in the guest present their contents indirectly through
40*d870e050SAndroid Build Coastguard Worker# SurfaceFlinger. The goldfish driver's implementation of eglSwapBuffers is
41*d870e050SAndroid Build Coastguard Worker# based on queuing the finished frame (buffer) to SurfaceFlinger.
42*d870e050SAndroid Build Coastguard Worker# SurfaceFlinger then acquires that finished buffer from the OpenGL app,
43*d870e050SAndroid Build Coastguard Worker# does the actual posting to the display (which may involve a call in turn
44*d870e050SAndroid Build Coastguard Worker# to eglSwapBuffers, esp. if we are not using hardware composer),
45*d870e050SAndroid Build Coastguard Worker# and releases the buffer, allowing the OpenGL app to dequeue a fresh
46*d870e050SAndroid Build Coastguard Worker# buffer for whatever to draw next.
47*d870e050SAndroid Build Coastguard Worker#
48*d870e050SAndroid Build Coastguard Worker# The problem is that when we are using host GPU, the rubber meets the road #
49*d870e050SAndroid Build Coastguard Worker# in the host not the guest (what the user sees is not due to any concrete
50*d870e050SAndroid Build Coastguard Worker# action inside the guest, but due to the host GPU communicating with the host
51*d870e050SAndroid Build Coastguard Worker# display), so it's not always clear what a "finished frame" means. In
52*d870e050SAndroid Build Coastguard Worker# particular, the frame is not necessarily finished when the buffer is queued
53*d870e050SAndroid Build Coastguard Worker# in the guest, depending on host driver quirks. So, posting unfinished or
54*d870e050SAndroid Build Coastguard Worker# even older buffers to SurfaceFlinger will result in out of order frames.
55*d870e050SAndroid Build Coastguard Worker#
56*d870e050SAndroid Build Coastguard Worker# GLAsyncSwap = off pretends this issue doesn't exist and it's up to the host
57*d870e050SAndroid Build Coastguard Worker# driver to properly synchronize upon calling rcFlushWindowColorBuffer.
58*d870e050SAndroid Build Coastguard Worker# GLAsyncSwap = on uses the host GL driver's fence commands and fence fd's in
59*d870e050SAndroid Build Coastguard Worker# the guest in order to have explicit signals of buffer swaps complete. This
60*d870e050SAndroid Build Coastguard Worker# preserves frame ordering at a slight performance cost, but the cost is less
61*d870e050SAndroid Build Coastguard Worker# than that of other solutions like calling glFinish() on the host.
62*d870e050SAndroid Build Coastguard Worker# Disabled by default for now
63*d870e050SAndroid Build Coastguard WorkerGLAsyncSwap = off
64*d870e050SAndroid Build Coastguard Worker# ------------------------------------------------------------------------------
65*d870e050SAndroid Build Coastguard Worker
66*d870e050SAndroid Build Coastguard Worker# EncryptUserData---------------------------------------------------------------
67*d870e050SAndroid Build Coastguard Worker# CTS requires that userdata be encrypted, at least for api23 and later. However
68*d870e050SAndroid Build Coastguard Worker# for non Google images or older system images, this is not required or not
69*d870e050SAndroid Build Coastguard Worker# implemted. Emulator will enable this feature only if the system says it supports
70*d870e050SAndroid Build Coastguard Worker# encryption. It is on by default on the host, and according to the current rule,
71*d870e050SAndroid Build Coastguard Worker# a feature is only on if both host and guest support it; so it effectively leaves
72*d870e050SAndroid Build Coastguard Worker# to guest to decide.
73*d870e050SAndroid Build Coastguard WorkerEncryptUserData = on
74*d870e050SAndroid Build Coastguard Worker# ------------------------------------------------------------------------------
75*d870e050SAndroid Build Coastguard Worker
76*d870e050SAndroid Build Coastguard Worker# RefCountPipe------------------------------------------------------------------
77*d870e050SAndroid Build Coastguard Worker# RefCount Pipe is a different approach to simplify the Color Buffer management
78*d870e050SAndroid Build Coastguard Worker# on host. In guest, the handle returned by gralloc allocator can be passed around
79*d870e050SAndroid Build Coastguard Worker# between processes through Binder. Android system ensures that the handle on both
80*d870e050SAndroid Build Coastguard Worker# calling and receiving end willl be properly closed. Thus, when gralloc allocates
81*d870e050SAndroid Build Coastguard Worker# buffer for the first time, we establish a Refcount pipe between guest and host,
82*d870e050SAndroid Build Coastguard Worker# and assign its fd to the handle. In the desturctor of the handle, close the fd.
83*d870e050SAndroid Build Coastguard Worker# Guest kernel will decide when to really close the fd and thus trigger the pipe's
84*d870e050SAndroid Build Coastguard Worker# closing on host. On the host side, we only need to destroy the color buffer
85*d870e050SAndroid Build Coastguard Worker# immediately and not worry about any reference counting at all. This approach will
86*d870e050SAndroid Build Coastguard Worker# not only simplify the the logic between guest and host, but also reduce memory leaks.
87*d870e050SAndroid Build Coastguard WorkerRefCountPipe = on
88*d870e050SAndroid Build Coastguard Worker# ------------------------------------------------------------------------------
89*d870e050SAndroid Build Coastguard Worker
90*d870e050SAndroid Build Coastguard Worker# IntelPerformanceMonitoringUnit------------------------------------------------
91*d870e050SAndroid Build Coastguard Worker# Some CTS tests (mainly SimplePerf) require that the CPU expose some kind of
92*d870e050SAndroid Build Coastguard Worker# counters that can be used to measure CPU performance in cycles,
93*d870e050SAndroid Build Coastguard Worker# cache hit/miss, etc.
94*d870e050SAndroid Build Coastguard Worker# However, the use of this on the vCPU requires that the guest kernel be in
95*d870e050SAndroid Build Coastguard Worker# a fairly recent state, otherwise the emulator will kernel panic on startup.
96*d870e050SAndroid Build Coastguard WorkerIntelPerformanceMonitoringUnit = on
97*d870e050SAndroid Build Coastguard Worker# ------------------------------------------------------------------------------
98*d870e050SAndroid Build Coastguard Worker
99*d870e050SAndroid Build Coastguard Worker# GLDMA-------------------------------------------------------------------------
100*d870e050SAndroid Build Coastguard Worker# Video playback can approach 1080p60 and be solid 720p60 if we map guest memory
101*d870e050SAndroid Build Coastguard Worker# to host and use it to perofrm color buffer updates, and perform YV12->RGB
102*d870e050SAndroid Build Coastguard Worker# on the host as well, in an OpenGL shader.
103*d870e050SAndroid Build Coastguard WorkerGLDMA = on
104*d870e050SAndroid Build Coastguard Worker# ------------------------------------------------------------------------------
105*d870e050SAndroid Build Coastguard Worker
106*d870e050SAndroid Build Coastguard Worker# GLESDynamicVersion------------------------------------------------------------
107*d870e050SAndroid Build Coastguard Worker# This feature attempts to detect the maximum supported GLES version depending on
108*d870e050SAndroid Build Coastguard Worker# which OpenGL function pointers have been found on the GL libraries used
109*d870e050SAndroid Build Coastguard Worker# on the host system. Different platforms / hardware + video driver setups can
110*d870e050SAndroid Build Coastguard Worker# have different support.
111*d870e050SAndroid Build Coastguard Worker# For example, OS X is not known to support GLES 3.1.
112*d870e050SAndroid Build Coastguard Worker# If this feature is set to "off", the max supported GLES version is assumed to
113*d870e050SAndroid Build Coastguard Worker# be <= 2 and also depend on the system image only (some images only support ES 1).
114*d870e050SAndroid Build Coastguard WorkerGLESDynamicVersion = off
115*d870e050SAndroid Build Coastguard Worker# ------------------------------------------------------------------------------
116*d870e050SAndroid Build Coastguard Worker
117*d870e050SAndroid Build Coastguard Worker# Wifi -------------------------------------------------------------------------
118*d870e050SAndroid Build Coastguard Worker# This feature indicates that the system image and the emulator support Wifi.
119*d870e050SAndroid Build Coastguard Worker# When this is enabled the network configuration of the system image will be
120*d870e050SAndroid Build Coastguard Worker# significantly different and the emulator will send different network setup
121*d870e050SAndroid Build Coastguard Worker# information via RIL.
122*d870e050SAndroid Build Coastguard WorkerWifi = on
123*d870e050SAndroid Build Coastguard Worker
124*d870e050SAndroid Build Coastguard Worker# ForceANGLE--------------------------------------------------------------------
125*d870e050SAndroid Build Coastguard Worker# This feature attempts to default the renderer to ANGLE, but can be itself
126*d870e050SAndroid Build Coastguard Worker# overridden by:
127*d870e050SAndroid Build Coastguard Worker# -gpu command line argument
128*d870e050SAndroid Build Coastguard Worker# UI setting
129*d870e050SAndroid Build Coastguard Worker# The override (and others) are done through the UI, so the user is aware
130*d870e050SAndroid Build Coastguard Worker# and if the user changes to a setting other than "auto", the user setting
131*d870e050SAndroid Build Coastguard Worker# is respected.
132*d870e050SAndroid Build Coastguard WorkerForceANGLE = off
133*d870e050SAndroid Build Coastguard Worker# ------------------------------------------------------------------------------
134*d870e050SAndroid Build Coastguard Worker
135*d870e050SAndroid Build Coastguard Worker# ForceSwiftshader--------------------------------------------------------------
136*d870e050SAndroid Build Coastguard Worker# This feature attempts to default the renderer to Swiftshader. Otherwise,
137*d870e050SAndroid Build Coastguard Worker# same behavior as ForceANGLE.
138*d870e050SAndroid Build Coastguard WorkerForceSwiftshader = off
139*d870e050SAndroid Build Coastguard Worker# ------------------------------------------------------------------------------
140*d870e050SAndroid Build Coastguard Worker
141*d870e050SAndroid Build Coastguard Worker# PlayStoreImage ---------------------------------------------------------------
142*d870e050SAndroid Build Coastguard Worker# The playstore image has CTS requirements that emulator should check and ensure
143*d870e050SAndroid Build Coastguard Worker# Guest image will indicate whether it has it or not;
144*d870e050SAndroid Build Coastguard WorkerPlayStoreImage = on
145*d870e050SAndroid Build Coastguard Worker# ------------------------------------------------------------------------------
146*d870e050SAndroid Build Coastguard Worker
147*d870e050SAndroid Build Coastguard Worker# LogcatPipe ---------------------------------------------------------------
148*d870e050SAndroid Build Coastguard Worker# The pipe based logcat is meant to replace the 'adb shell logcat'
149*d870e050SAndroid Build Coastguard Worker# Guest image will indicate whether it has it or not;
150*d870e050SAndroid Build Coastguard WorkerLogcatPipe = on
151*d870e050SAndroid Build Coastguard Worker# ------------------------------------------------------------------------------
152*d870e050SAndroid Build Coastguard Worker
153*d870e050SAndroid Build Coastguard Worker# Hypervisor feature flags. Assumed mutually exclusive. If all flags are off,
154*d870e050SAndroid Build Coastguard Worker# then we have:
155*d870e050SAndroid Build Coastguard Worker# Mac/Win: HAXM
156*d870e050SAndroid Build Coastguard Worker# Linux: KVM
157*d870e050SAndroid Build Coastguard Worker# If a flag is on, then attempts are made to detect host support, and if there
158*d870e050SAndroid Build Coastguard Worker# is support, then the hypervisor in question is actually used.
159*d870e050SAndroid Build Coastguard WorkerHYPERV = off
160*d870e050SAndroid Build Coastguard WorkerHVF = on
161*d870e050SAndroid Build Coastguard WorkerKVM = off
162*d870e050SAndroid Build Coastguard WorkerHAXM = off
163*d870e050SAndroid Build Coastguard Worker
164*d870e050SAndroid Build Coastguard Worker# FastSnapshotV1 ---------------------------------------------------------------
165*d870e050SAndroid Build Coastguard Worker# Enable the new implementation of snapshotting in the emulator and use it for
166*d870e050SAndroid Build Coastguard Worker# quick boot.
167*d870e050SAndroid Build Coastguard WorkerFastSnapshotV1 = on
168*d870e050SAndroid Build Coastguard Worker# ------------------------------------------------------------------------------
169*d870e050SAndroid Build Coastguard Worker
170*d870e050SAndroid Build Coastguard Worker# ScreenRecording --------------------------------------------------------------
171*d870e050SAndroid Build Coastguard Worker# Enables the host-side screen recording feature.
172*d870e050SAndroid Build Coastguard WorkerScreenRecording = on
173*d870e050SAndroid Build Coastguard Worker# ------------------------------------------------------------------------------
174*d870e050SAndroid Build Coastguard Worker
175*d870e050SAndroid Build Coastguard Worker# VirtualScene -----------------------------------------------------------------
176*d870e050SAndroid Build Coastguard Worker# Enables the host-side virtual scene feature.
177*d870e050SAndroid Build Coastguard WorkerVirtualScene = on
178*d870e050SAndroid Build Coastguard Worker
179*d870e050SAndroid Build Coastguard Worker# VideoPlayback
180*d870e050SAndroid Build Coastguard Worker# Enables the camera video playback feature.
181*d870e050SAndroid Build Coastguard WorkerVideoPlayback = off
182*d870e050SAndroid Build Coastguard Worker
183*d870e050SAndroid Build Coastguard Worker# system as root  --------------------------------------------------------------
184*d870e050SAndroid Build Coastguard Worker# Guest feature: when this is on, emulator should use system partition as root fs
185*d870e050SAndroid Build Coastguard Worker# instead of using ramdisk as root fs.
186*d870e050SAndroid Build Coastguard WorkerSystemAsRoot = on
187*d870e050SAndroid Build Coastguard Worker
188*d870e050SAndroid Build Coastguard Worker# IgnoreHostOpenGLErrors--------------------------------------------------------
189*d870e050SAndroid Build Coastguard Worker# Don't query the host for OpenGL errors. Only use if rendering is OK for you
190*d870e050SAndroid Build Coastguard Worker# already. Should decrease jank in UI by quite a bit.
191*d870e050SAndroid Build Coastguard WorkerIgnoreHostOpenGLErrors = off
192*d870e050SAndroid Build Coastguard Worker
193*d870e050SAndroid Build Coastguard Worker# GenericSnapshotsUI------------------------------------------------------------
194*d870e050SAndroid Build Coastguard Worker# Show the generic snapshots UI.
195*d870e050SAndroid Build Coastguard WorkerGenericSnapshotsUI = on
196*d870e050SAndroid Build Coastguard Worker
197*d870e050SAndroid Build Coastguard Worker# AllowSnapshotMigration--------------------------------------------------------
198*d870e050SAndroid Build Coastguard Worker# Skip snapshot file consistency checks, allowing for snapshot migration.
199*d870e050SAndroid Build Coastguard WorkerAllowSnapshotMigration = off
200*d870e050SAndroid Build Coastguard Worker
201*d870e050SAndroid Build Coastguard Worker# WindowsOnDemandSnapshotLoad---------------------------------------------------
202*d870e050SAndroid Build Coastguard Worker# On-demand snapshot load for Windows.
203*d870e050SAndroid Build Coastguard WorkerWindowsOnDemandSnapshotLoad = on
204*d870e050SAndroid Build Coastguard Worker
205*d870e050SAndroid Build Coastguard Worker# Windows Hypervisor Platform---------------------------------------------------
206*d870e050SAndroid Build Coastguard Worker# Allow WHPX
207*d870e050SAndroid Build Coastguard WorkerWindowsHypervisorPlatform = on
208*d870e050SAndroid Build Coastguard Worker
209*d870e050SAndroid Build Coastguard Worker# Device Tree Blob--------------------------------------------------------------
210*d870e050SAndroid Build Coastguard WorkerKernelDeviceTreeBlobSupport = on
211*d870e050SAndroid Build Coastguard Worker
212*d870e050SAndroid Build Coastguard Worker# Dynamic partition support --------------------------------------------------------------
213*d870e050SAndroid Build Coastguard WorkerDynamicPartition = on
214*d870e050SAndroid Build Coastguard Worker
215*d870e050SAndroid Build Coastguard Worker# Location UI v2----------------------------------------------------------------
216*d870e050SAndroid Build Coastguard WorkerLocationUiV2 = on
217*d870e050SAndroid Build Coastguard Worker
218*d870e050SAndroid Build Coastguard Worker# SnapshotAdb-------------------------------------------------------------------
219*d870e050SAndroid Build Coastguard WorkerSnapshotAdb = off
220*d870e050SAndroid Build Coastguard Worker
221*d870e050SAndroid Build Coastguard Worker# QuickbootFileBacked-----------------------------------------------------------
222*d870e050SAndroid Build Coastguard WorkerQuickbootFileBacked = on
223*d870e050SAndroid Build Coastguard Worker
224*d870e050SAndroid Build Coastguard Worker# HWComposer Host Composition---------------------------------------------------
225*d870e050SAndroid Build Coastguard WorkerHostComposition = on
226*d870e050SAndroid Build Coastguard Worker
227*d870e050SAndroid Build Coastguard Worker# On-demand RAM load for snapshots----------------------------------------------
228*d870e050SAndroid Build Coastguard Worker# Currently disabled due to issues with MemoryWatch and host side
229*d870e050SAndroid Build Coastguard Worker# EFAULT's and recent guest kernels + Linux KVM
230*d870e050SAndroid Build Coastguard WorkerOnDemandSnapshotLoad = off
231*d870e050SAndroid Build Coastguard Worker
232*d870e050SAndroid Build Coastguard Worker# WifiConfigurable--------------------------------------------------------------
233*d870e050SAndroid Build Coastguard WorkerWifiConfigurable = off
234*d870e050SAndroid Build Coastguard Worker
235*d870e050SAndroid Build Coastguard Worker# Vulkan------------------------------------------------------------------------
236*d870e050SAndroid Build Coastguard Worker# If enabled, the guest Vulkan HAL (if installed) will activate.
237*d870e050SAndroid Build Coastguard WorkerVulkan = off
238*d870e050SAndroid Build Coastguard Worker
239*d870e050SAndroid Build Coastguard Worker# CarVHalTable--------------------------------------------------------------
240*d870e050SAndroid Build Coastguard Worker# if enabled, Car Vhal Table will show in extended window -> CarData
241*d870e050SAndroid Build Coastguard WorkerCarVHalTable = on
242*d870e050SAndroid Build Coastguard Worker
243*d870e050SAndroid Build Coastguard Worker# VirtioInput-------------------------------------------------------------------
244*d870e050SAndroid Build Coastguard Worker# VirtioInput is a guest side feature which indicates that CONFIG_VIRTIO_INPUT is
245*d870e050SAndroid Build Coastguard Worker# enabled in kernel. If enabled, emulator will use virtio input device instead of
246*d870e050SAndroid Build Coastguard Worker# goldfish_events to implement multi-touch functionality.
247*d870e050SAndroid Build Coastguard WorkerVirtioInput = on
248*d870e050SAndroid Build Coastguard Worker
249*d870e050SAndroid Build Coastguard Worker# IpDisconnectOnLoad------------------------------------------------------------
250*d870e050SAndroid Build Coastguard Worker# Reset IP connection state when loading from snapshots
251*d870e050SAndroid Build Coastguard WorkerIpDisconnectOnLoad = off
252*d870e050SAndroid Build Coastguard Worker
253*d870e050SAndroid Build Coastguard Worker# VulkanSnapshots---------------------------------------------------------------
254*d870e050SAndroid Build Coastguard Worker# Reset IP connection state when loading from snapshots
255*d870e050SAndroid Build Coastguard WorkerVulkanSnapshots = off
256*d870e050SAndroid Build Coastguard Worker
257*d870e050SAndroid Build Coastguard Worker# MultiDisplay------------------------------------------------------------------
258*d870e050SAndroid Build Coastguard Worker# MultiDisplay is a guest side feature
259*d870e050SAndroid Build Coastguard WorkerMultiDisplay = on
260*d870e050SAndroid Build Coastguard Worker
261*d870e050SAndroid Build Coastguard Worker# VulkanNullOptionalStrings-----------------------------------------------------
262*d870e050SAndroid Build Coastguard Worker# When we want to encode null optional vulkan strings as actual nulls instead of
263*d870e050SAndroid Build Coastguard Worker# empty strings
264*d870e050SAndroid Build Coastguard Worker# Requires guest support as well.
265*d870e050SAndroid Build Coastguard Worker# On Fuchsia, hardcoded to on.
266*d870e050SAndroid Build Coastguard WorkerVulkanNullOptionalStrings = on
267*d870e050SAndroid Build Coastguard Worker
268*d870e050SAndroid Build Coastguard Worker# DynamicMediaProfile-----------------------------------------------------------
269*d870e050SAndroid Build Coastguard Worker# Enables changing the media_codecs_google_video.xml to link to another file by
270*d870e050SAndroid Build Coastguard Worker# setting a boot property ro.kernel.qemu.mediaprofile.video to the location of the
271*d870e050SAndroid Build Coastguard Worker# configuration file.
272*d870e050SAndroid Build Coastguard WorkerDynamicMediaProfile = off
273*d870e050SAndroid Build Coastguard Worker
274*d870e050SAndroid Build Coastguard Worker# YUV420888toNV21---------------------------------------------------------------
275*d870e050SAndroid Build Coastguard Worker# YUV420888toNV21 is a guest side feature which unifies the pixel format
276*d870e050SAndroid Build Coastguard Worker# HAL_PIXEL_FORMAT_YCbCr_420_888 as NV21 in gralloc and camera HAL
277*d870e050SAndroid Build Coastguard WorkerYUV420888toNV21 = on
278*d870e050SAndroid Build Coastguard Worker
279*d870e050SAndroid Build Coastguard Worker# YUVCache---------------------------------------------------------------
280*d870e050SAndroid Build Coastguard Worker# YUVCache is a guest side feature which asks the host to cache the
281*d870e050SAndroid Build Coastguard Worker# HAL_PIXEL_FORMAT_YCbCr_420_888 and HAL_PIXEL_FORMAT_YV12 frame.
282*d870e050SAndroid Build Coastguard WorkerYUVCache = on
283*d870e050SAndroid Build Coastguard Worker
284*d870e050SAndroid Build Coastguard Worker# KeycodeForwarding-------------------------------------------------------------
285*d870e050SAndroid Build Coastguard Worker# KeycodeForwarding is a guest side feature which emulator host will capture the keypress
286*d870e050SAndroid Build Coastguard Worker# and forward Liunx keycode to Android system.
287*d870e050SAndroid Build Coastguard WorkerKeycodeForwarding = on
288*d870e050SAndroid Build Coastguard Worker
289*d870e050SAndroid Build Coastguard Worker# VulkanIgnoredHandles----------------------------------------------------------
290*d870e050SAndroid Build Coastguard Worker# Change in the Vulkan protocol to ignore handles in some situations
291*d870e050SAndroid Build Coastguard Worker# (VkWriteDescriptorSet, and others)
292*d870e050SAndroid Build Coastguard Worker# Requires guest support
293*d870e050SAndroid Build Coastguard WorkerVulkanIgnoredHandles = on
294*d870e050SAndroid Build Coastguard Worker
295*d870e050SAndroid Build Coastguard Worker# VirtioGpuNext-----------------------------------------------------------------
296*d870e050SAndroid Build Coastguard Worker# Whether virtio-gpu-next is supported. Requires guest support.
297*d870e050SAndroid Build Coastguard WorkerVirtioGpuNext = on
298*d870e050SAndroid Build Coastguard Worker
299*d870e050SAndroid Build Coastguard Worker# Mac80211hwsimUserspaceManaged-------------------------------------------------
300*d870e050SAndroid Build Coastguard Worker# Do not create mac80211_hwsim radios by the kernel on boot, create radios from
301*d870e050SAndroid Build Coastguard Worker# userspace instead.
302*d870e050SAndroid Build Coastguard WorkerMac80211hwsimUserspaceManaged = on
303*d870e050SAndroid Build Coastguard Worker
304*d870e050SAndroid Build Coastguard Worker# HasSharedSlotsHostMemoryAllocator---------------------------------------------
305*d870e050SAndroid Build Coastguard Worker# Host supports AddressSpaceSharedSlotsHostMemoryAllocatorContext
306*d870e050SAndroid Build Coastguard WorkerHasSharedSlotsHostMemoryAllocator = on
307*d870e050SAndroid Build Coastguard Worker
308*d870e050SAndroid Build Coastguard Worker# CarVHalReplay--------------------------------------------------------------
309*d870e050SAndroid Build Coastguard Worker# if enabled, sensor replay will be visible in extended window on Automotive AVDs.
310*d870e050SAndroid Build Coastguard WorkerCarVhalReplay = on
311*d870e050SAndroid Build Coastguard Worker
312*d870e050SAndroid Build Coastguard Worker# HardwareDecoder--------------------------------------------------------------
313*d870e050SAndroid Build Coastguard Worker# if enabled, emulator will add qemu.hwcodec.avcdec=2 and qemu.hwcodec.vpxdec=2
314*d870e050SAndroid Build Coastguard Worker# to the kernel command line to tell guest the two decoders can be enabled
315*d870e050SAndroid Build Coastguard WorkerHardwareDecoder = on
316*d870e050SAndroid Build Coastguard Worker
317*d870e050SAndroid Build Coastguard Worker# NoDelayCloseColorBuffer------------------------------------------------------
318*d870e050SAndroid Build Coastguard Worker# Used in conjunction with RefCountPipe = off, in systems where the guest
319*d870e050SAndroid Build Coastguard Worker# properly associates a color buffer with an OS handle, so we can safely
320*d870e050SAndroid Build Coastguard Worker# clean up the color buffer immediately.
321*d870e050SAndroid Build Coastguard WorkerNoDelayCloseColorBuffer = off
322*d870e050SAndroid Build Coastguard Worker
323*d870e050SAndroid Build Coastguard Worker# NoDeviceFrame----------------------------------------------------------------
324*d870e050SAndroid Build Coastguard Worker# Don't show the device frame, regardless of AVD config or Qt setting.
325*d870e050SAndroid Build Coastguard WorkerNoDeviceFrame = off
326*d870e050SAndroid Build Coastguard Worker
327*d870e050SAndroid Build Coastguard Worker# VirtioGpuNativeSync----------------------------------------------------------
328*d870e050SAndroid Build Coastguard Worker# Use virtio-gpu instead of goldfish sync for syncfd support.
329*d870e050SAndroid Build Coastguard Worker# TODO: test with goldfish
330*d870e050SAndroid Build Coastguard WorkerVirtioGpuNativeSync = off
331*d870e050SAndroid Build Coastguard Worker
332*d870e050SAndroid Build Coastguard Worker# VirtioWifi--------------------------------------------------------------------
333*d870e050SAndroid Build Coastguard Worker# if enabled, emulator will add ro.kernel.qemu.virtiowifi to the kernel command line
334*d870e050SAndroid Build Coastguard Worker# to tell the geust that VirtioWifi kernel driver will be used instead of mac80211_hwsim.
335*d870e050SAndroid Build Coastguard WorkerVirtioWifi = on
336*d870e050SAndroid Build Coastguard Worker
337*d870e050SAndroid Build Coastguard Worker# VulkanShaderFloat16Int8-------------------------------------------------------
338*d870e050SAndroid Build Coastguard Worker# Enables struct defs for VK_KHR_shader_float16_int8.
339*d870e050SAndroid Build Coastguard WorkerVulkanShaderFloat16Int8 = on
340*d870e050SAndroid Build Coastguard Worker
341*d870e050SAndroid Build Coastguard Worker# CarRotary--------------------------------------------------------------
342*d870e050SAndroid Build Coastguard Worker# if enabled, Car rotary controller will be visible in extended window on Automotive AVDs.
343*d870e050SAndroid Build Coastguard WorkerCarRotary = on
344*d870e050SAndroid Build Coastguard Worker
345*d870e050SAndroid Build Coastguard Worker# ModemSimulator--------------------------------------------------------------
346*d870e050SAndroid Build Coastguard Worker# turn on the modem simulator, instead of the legacy modem
347*d870e050SAndroid Build Coastguard WorkerModemSimulator = on
348*d870e050SAndroid Build Coastguard Worker
349*d870e050SAndroid Build Coastguard Worker# TvRemote
350*d870e050SAndroid Build Coastguard Worker# When enabled, the dpad is replaced with a remote specific to Android TV devices.
351*d870e050SAndroid Build Coastguard WorkerTvRemote = on
352*d870e050SAndroid Build Coastguard Worker
353*d870e050SAndroid Build Coastguard Worker# GuestUsesAngle--------------------------------------------------------------
354*d870e050SAndroid Build Coastguard Worker# Whether or not the guest is using ANGLE as its OpenGL driver.
355*d870e050SAndroid Build Coastguard WorkerGuestUsesAngle = off
356*d870e050SAndroid Build Coastguard Worker
357*d870e050SAndroid Build Coastguard Worker# VirtioVsockPipe--------------------------------------------------------------
358*d870e050SAndroid Build Coastguard Worker# The virtio-vsock device is a drop-in replacement for the goldfish_pipe device.
359*d870e050SAndroid Build Coastguard WorkerVirtioVsockPipe = on
360*d870e050SAndroid Build Coastguard Worker
361*d870e050SAndroid Build Coastguard Worker# VirtioMouse------------------------------------------------------------------
362*d870e050SAndroid Build Coastguard Worker# If enabled, the emulator will create mouse input events for guests, otherwise
363*d870e050SAndroid Build Coastguard Worker# it creates multi-touch events.
364*d870e050SAndroid Build Coastguard WorkerVirtioMouse = on
365*d870e050SAndroid Build Coastguard Worker
366*d870e050SAndroid Build Coastguard Worker# VirtconsoleLogcat-------------------------------------------------------------
367*d870e050SAndroid Build Coastguard Worker# If enabled, it replaces LogcatPipe with the forhvc1 chardev consifured to
368*d870e050SAndroid Build Coastguard Worker# stdio or to a file.
369*d870e050SAndroid Build Coastguard WorkerVirtconsoleLogcat = on
370*d870e050SAndroid Build Coastguard Worker
371*d870e050SAndroid Build Coastguard Worker# VulkanQueueSubmitWithCommands-------------------------------------------------
372*d870e050SAndroid Build Coastguard Worker# Use deferred command submission and global sequence number synchronization with Vulkan.
373*d870e050SAndroid Build Coastguard WorkerVulkanQueueSubmitWithCommands = on
374*d870e050SAndroid Build Coastguard Worker
375*d870e050SAndroid Build Coastguard Worker# VulkanBatchedDescriptorSetUpdate----------------------------------------------
376*d870e050SAndroid Build Coastguard Worker# Use batched descriptor set updates.
377*d870e050SAndroid Build Coastguard WorkerVulkanBatchedDescriptorSetUpdate = on
378*d870e050SAndroid Build Coastguard Worker
379*d870e050SAndroid Build Coastguard Worker# Minigbm---------------------------------------------------------------
380*d870e050SAndroid Build Coastguard Worker# Minigbm is a guest side feature which use the minigbm for gralloc. It asks the host
381*d870e050SAndroid Build Coastguard Worker# camera to legacy operation
382*d870e050SAndroid Build Coastguard WorkerMinigbm = on
383*d870e050SAndroid Build Coastguard Worker# GnssGrpcV1-------------------------------------------------
384*d870e050SAndroid Build Coastguard Worker# Use grpc based gnss implementation
385*d870e050SAndroid Build Coastguard WorkerGnssGrpcV1 = on
386*d870e050SAndroid Build Coastguard Worker
387*d870e050SAndroid Build Coastguard Worker# AndroidbootProps--------------------------------------------------------------
388*d870e050SAndroid Build Coastguard Worker# AndroidbootProps2-------------------------------------------------------------
389*d870e050SAndroid Build Coastguard Worker# If enabled, the boot userspace properties (e.g. `qemu=1` or
390*d870e050SAndroid Build Coastguard Worker# `qemu.opengles.version=123456`) are passed in the ramdisk instead of
391*d870e050SAndroid Build Coastguard Worker# the kernel command line (which is deprecated for these purposes).
392*d870e050SAndroid Build Coastguard Worker# AndroidbootProps2 does not populate `qemu` and `androidboot.hardware` on the
393*d870e050SAndroid Build Coastguard Worker# host side since they are constants.
394*d870e050SAndroid Build Coastguard WorkerAndroidbootProps = on
395*d870e050SAndroid Build Coastguard WorkerAndroidbootProps2 = on
396*d870e050SAndroid Build Coastguard Worker
397*d870e050SAndroid Build Coastguard Worker# DeviceSkinOverlay-------------------------------------------------------------
398*d870e050SAndroid Build Coastguard Worker# Apply overlay for each enabled devices (pixel devices)
399*d870e050SAndroid Build Coastguard WorkerDeviceSkinOverlay = on
400*d870e050SAndroid Build Coastguard WorkerAndroidbootProps = off
401*d870e050SAndroid Build Coastguard Worker
402*d870e050SAndroid Build Coastguard Worker# BluetoothEmulation-------------------------------------------------------------
403*d870e050SAndroid Build Coastguard Worker# If enabled, it will enable the bluetooth emulation stack.
404*d870e050SAndroid Build Coastguard WorkerBluetoothEmulation = off
405*d870e050SAndroid Build Coastguard Worker
406*d870e050SAndroid Build Coastguard Worker# DeviceStateOnBoot-------------------------------------------------------------
407*d870e050SAndroid Build Coastguard Worker# If enabled, it will generate device_state_configratio.xml and send to guest.
408*d870e050SAndroid Build Coastguard WorkerDeviceStateOnBoot = on
409*d870e050SAndroid Build Coastguard Worker
410*d870e050SAndroid Build Coastguard Worker# HWCMultiConfigs--------------------------------------------------------------
411*d870e050SAndroid Build Coastguard Worker# If enabled, will config multiple configs in hwcompser HAL
412*d870e050SAndroid Build Coastguard WorkerHWCMultiConfigs = on
413*d870e050SAndroid Build Coastguard Worker
414*d870e050SAndroid Build Coastguard Worker# AsyncComposeSupport ---------------------------------------------------
415*d870e050SAndroid Build Coastguard Worker# If enabled, hwcomposer will be able to use asynchronous render control
416*d870e050SAndroid Build Coastguard Worker# commands to compose and post frame buffers.
417*d870e050SAndroid Build Coastguard WorkerAsyncComposeSupport = off
418*d870e050SAndroid Build Coastguard Worker
419*d870e050SAndroid Build Coastguard Worker# VirtioSndCard-----------------------------------------------------------------
420*d870e050SAndroid Build Coastguard Worker# Enables the virtio-snd audio card and disables the Intel HDA one
421*d870e050SAndroid Build Coastguard WorkerVirtioSndCard = on
422*d870e050SAndroid Build Coastguard Worker
423*d870e050SAndroid Build Coastguard Worker# VirtioTablet-----------------------------------------------------------------
424*d870e050SAndroid Build Coastguard Worker# If enabled, the emulator will create tablet input events for guests, otherwise
425*d870e050SAndroid Build Coastguard Worker# it creates multi-touch events. Cannot be used with VirtioMouse.
426*d870e050SAndroid Build Coastguard WorkerVirtioTablet = on
427*d870e050SAndroid Build Coastguard Worker
428*d870e050SAndroid Build Coastguard Worker# VirtioGpuFenceContexts--------------------------------------------------------
429*d870e050SAndroid Build Coastguard Worker# If enabled, virtio-gpu fence on multiple timelines will be supported.
430*d870e050SAndroid Build Coastguard Worker# Currently this feature doesn't work because the qemu doesn't support this
431*d870e050SAndroid Build Coastguard Worker# feature yet, while crosvm and the gfxstream renderer backend has already
432*d870e050SAndroid Build Coastguard Worker# supported this feature.
433*d870e050SAndroid Build Coastguard WorkerVirtioGpuFenceContexts = off
434