scrcpy
scrcpy copied to clipboard
Bug: after OS update, Honor Magic4 pro can't be mirrored with screen turned off using ScrCpy (closes right away), but can be via Android Studio
Environment
- OS: [e.g. Debian, Windows, macOS...] Windows
- scrcpy version: [e.g. 1.12.1] 2.4
- installation method: [e.g. manual build, apt, snap, brew, Windows release...] Extracted the ZIP file.
- device model: [HONOR] HONOR LGE-NX9
- Android version: [e.g. 10] Android 14
Describe the bug When launching without any parameters and without any key combination, it works fine. However, when I tell it to also turn off the display (either in parameter or using ALT+O combination), it closes the window of ScrCpy right away.
This is what I got from the console, after I used ALT+O:
PS C:\android\scrcpy> .\scrcpy-console.bat
scrcpy 2.4 <https://github.com/Genymobile/scrcpy>
INFO: ADB device found:
INFO: --> (usb) AJ3D022630001200 device LGE_NX9
C:\android\scrcpy\scrcpy-server: 1 file pushed, 0 skipped. 82.7 MB/s (69007 bytes in 0.001s)
[server] INFO: Device: [HONOR] HONOR LGE-NX9 (Android 14)
INFO: Renderer: direct3d
INFO: Texture: 1144x2488
Native registration unable to find class 'com/android/server/TrustedUIService'; aborting...
WARN: Device disconnected
Aborted
Press Enter to continue...
And this is what I got on logcat, filtered by errors:
This issue doesn't occur when using Android Studio to mirror the device and turning off the display. ScrCpy used to work fine with this device. The issue started only yesterday, as I've updated the OS.