-
-
Notifications
You must be signed in to change notification settings - Fork 11k
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
Copy from mobile to compute doesn't work #1606
Comments
After I recompile the server with
What should i do? |
What is the result of |
The ROM is probably modified by the vendor and shell has no rights to read clioboards 😕 |
|
And is there any ways to make the shell have rights to read clipboard? |
And after i change the parameters in /system/default.prop
To:
The adb shell would not get root by default. And the return info of
And the copy function works well. However, the same uid=2000, why the later have the rights to read clipboard? |
I guess the package name must match the user id. Maybe try keep user id 0 and change the package name (
|
I have no idea to change the package name in code. After change to
, no response when copy text on mobile. And I dont know the name of |
Using rooted LineageOS device, I have the same issue:
Here's the output of ja3gxx / # uname -a
Linux localhost 3.4.67-g9d55dec #1 SMP PREEMPT Fri Oct 12 18:42:26 CEST 2018 armv7l
ja3gxx / # id
uid=0(root) gid=0(root) groups=0(root),1004(input),1007(log),1011(adb),1015(sdcard_rw),1028(sdcard_r),3001(net_bt_admin),3002(net_bt),3003(inet),3006(net_bw_stats),3009(readproc) context=u:r:su:s0
ja3gxx / # whoami
root
ja3gxx / # getprop ro.build.flavor
lineage_ja3gxx-userdebug |
Meet this problem when testing my implementation, it prints
Found this from logcat
This reminded me that MIUI has a privacy protection feature that prevents apps from reading clipboard (In Settings -> Privacy protection -> Protection tab -> Privacy protection lab -> Protect clipboard) If I turned it off, clipboard synchronization will work. It doesn't show any notifications when Scrcpy tries to read the clipboard, just returns empty string. Maybe it only handles "real" Android Apps, not sure if it's possible to workaround it. |
Ran adb as non-root can fix this issues.
|
@rom1v If the shell has root access, can't it grant the required permissions to itself? |
Environment
Describe the bug
Copy from mobile to compute doesn't work. I copy texts with long press on mobile device, while nothing copied when I would like to paste to compute with Ctrl+v.
On errors, please provide the output of the console (and
adb logcat
if relevant).Thanks for your help.
The text was updated successfully, but these errors were encountered: