Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 59302ac1 authored by Graciela Wissen Putri's avatar Graciela Wissen Putri
Browse files

[2/n] API to ignore activity size restrictions on virtual display

Adds an API for privileged actors with CREATE_VIRTUAL_DEVICE permission
to force app to full-screen on their virtual displays by ignoring fixed
orientation, aspect ratio and resizability of apps.

Large screen-specific app compat overrides will not apply to apps on
eligible virtual displays when this treatment is applied. This treatment
will be contained within the virtual displays of the virtual device.
User fullscreen override applied from Settings > App info > Aspect ratio
(experimental) will also not affect apps within the virtual display.

Developers can opt out of this treatment by setting
PROPERTY_COMPAT_ALLOW_ORIENTATION_OVERRIDE to false in their manifest.

Flag: com.android.window.flags.vdm_force_app_universal_resizable_api
Bug: 372848702
Bug: 337894172
Test: atest AppCompatAspectRatioOverridesTest
Change-Id: I893dd477594dac51b3b5882860a8d84df4778950
parent 8d4a96e4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment