Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for multiple simulated displays #76

Open
4nric opened this issue Apr 15, 2021 · 3 comments
Open

Support for multiple simulated displays #76

4nric opened this issue Apr 15, 2021 · 3 comments

Comments

@4nric
Copy link

4nric commented Apr 15, 2021

Android 10+ can simulate up to 4 displays with Force Desktop mode enabled. scrcpy can be used to access them separately. Currently, I open apps to a specific display manually through adb because Taskbar currently only launches apps on one specific display (or sometimes unpredictable).

Sample to simulate 4 displays with Full HD resolution and 160 dpi:

adb shell settings put global overlay_display_devices "1920x1080/160;1920x1080/160;1920x1080/160;1920x1080/160"

To list available displays:

adb shell dumpsys display | findstr "mDisplayId="

Sample to launch an app manually (-S: force-closed first) in full screen to a specific display:

adb shell am start-activity -S --display (#) --windowingMode 1 com.android.chrome

@browntownington
Copy link

@4nric what's your question exactly?

@puspamadak
Copy link

@4nric Thanks for this trick. Now I can finally multitask on my Android. Can you tell me how to stop chrome & launch another activity?

@diejuse
Copy link

diejuse commented Dec 7, 2024

Android 10+ can simulate up to 4 displays with Force Desktop mode enabled. scrcpy can be used to access them separately. Currently, I open apps to a specific display manually through adb because Taskbar currently only launches apps on one specific display (or sometimes unpredictable).

Sample to simulate 4 displays with Full HD resolution and 160 dpi:

adb shell settings put global overlay_display_devices "1920x1080/160;1920x1080/160;1920x1080/160;1920x1080/160"

To list available displays:

adb shell dumpsys display | findstr "mDisplayId="

Sample to launch an app manually (-S: force-closed first) in full screen to a specific display:

adb shell am start-activity -S --display (#) --windowingMode 1 com.android.chrome

How can I interact with other display?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants