Android 17 App launcing issue
Environment
- OS: NixOS (Linux)
- Scrcpy version: 4.1
- Installation method: Nix (nixpkgs)
- Device model: Google Pixel 11 Pro XL
- Android version: 17
Describe the bug
When using --new-display, the secondary display launcher is visible but tapping app icons does nothing — apps do not launch on the virtual display or the main display. force_desktop_mode_on_external_displays does not survive reboots on Android 17, and the Developer Options toggles for freeform windows / force desktop mode on secondary displays no longer exist in Android 17's Window Management section.
Workaround: Using an alternate task launcher --no-vd-system-decorations --start-app=com.binary.hyperdroid (HyperDroid launcher) allows apps to launch successfully,
Command used:
scrcpy --new-display --select-usb --flex-display --mouse=uhid --keyboard=uhid --keep-active
scrcpy debug output:
scrcpy 4.1 <https://github.com/Genymobile/scrcpy>
INFO: ADB device found:
INFO: --> (usb) 66140DLDV004PZ device
Pixel_11_Pro_XL
DEBUG: Device serial: 66140DLDV004PZ
INFO: ADB device found:
INFO: --> (usb) 66140DLDV004PZ device Pixel_11_Pro_XL
DEBUG: Device serial: 66140DLDV004PZ
DEBUG: Using server:
/nix/store/dphnh0jid8cyinaxfw1n64zwd2syqmxa-scrcpy-4.1/share/scrcpy/scrcpy-server
[server] INFO: Device: [Google] google Pixel 11 Pro XL (Android 17)
DEBUG: Server connected
[server] DEBUG: Using audio encoder: 'c2.android.opus.encoder'
[server] DEBUG: Using video encoder: 'c2.google.hevc.encoder'
[server] INFO: New display: 1280x960/160 (id=2)
INFO: Renderer: vulkan
``
adb logcat (ActivityTaskManager + ActivityManager warnings, captured while tapping an app
in the launcher):09-25 11:45:45.817 1400 3452 I ActivityTaskManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 xflg=0x4 pkg=com.google.android.apps.photos cmp=com.google.android.apps.photos/.home.HomeActivity bnds=[560,1595][776,1847]} with LAUNCH_SINGLE_TOP from uid 10274 (com.google.android.apps.nexuslauncher) (sr=268413521) (BAL_ALLOW_VISIBLE_WINDOW) result code=0 09-25 11:45:47.312 1400 3873 I ActivityTaskManager: moveTaskToBack: Task{cfcaca1 #2306 type=standard A=10236:com.google.android.apps.photos} 09-25 11:48:18.855 1400 2221 E ActivityManager: Can't use null intent with direct IIntentSender call 09-25 11:49:08.650 1400 1931 E ActivityManager: Can't use null intent with direct IIntentSender call 09-25 11:49:17.276 1400 10155 E ActivityManager: Can't use null intent with direct IIntentSender call 09-25 11:51:19.550 1400 10155 W ActivityTaskManager: setRunningRemoteTransition: no process for null 09-25 11:52:21.902 1400 1572 E ActivityTaskManager: Abort starting home on DefaultTaskDisplayArea@230425435 recursively.
Source: Genymobile/scrcpy