scrcpy icon indicating copy to clipboard operation
scrcpy copied to clipboard

Scrcpy can not access clipboard when adbd running in root

Open SkipM4 opened this issue 4 months ago • 2 comments

My device is running LineageOS 23 userdebug so "adb root" could make adbd running in root mode But scrcpy can not copy texts from device's clipboard If adbd is running in normal user it could read and write clipboard Is this a bug?or is it normal?

SkipM4 avatar Dec 08 '25 08:12 SkipM4

It is a known issue that copy/paste does not work with root: #5275 #4127

rom1v avatar Dec 08 '25 11:12 rom1v

This issue has a fix in my PR #6518 already; I actively recreated the direct Binder interface to IClipboard to subvert Java context checks when the server is ran as UID 1000 (system user).

Giantvince1 avatar Dec 09 '25 21:12 Giantvince1