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

Mouse clicks do not work #70

Closed
Pong420 opened this issue Mar 15, 2018 · 41 comments
Closed

Mouse clicks do not work #70

Pong420 opened this issue Mar 15, 2018 · 41 comments

Comments

@Pong420
Copy link

@Pong420 Pong420 commented Mar 15, 2018

I am using Xiaomi max 2 on macOS High Sierra 10.13.3

scrcpy v1.0

dependencies:
 - SDL 2.0.8
 - libavcodec 57.107.100
 - libavformat 57.83.100
 - libavutil 55.78.100
@izayl
Copy link

@izayl izayl commented Mar 15, 2018

Xiaomi Mi 6 has the same issue

@izayl
Copy link

@izayl izayl commented Mar 15, 2018

@Pong420 Maybe this issue can fix. But I have not test it.

@Pong420
Copy link
Author

@Pong420 Pong420 commented Mar 15, 2018

@izayl It seems to not be working for me

@rom1v
Copy link
Collaborator

@rom1v rom1v commented Mar 15, 2018

Duplicate of #18.

Already fixed on v1.1.

@izayl
Copy link

@izayl izayl commented Mar 15, 2018

@rom1v I have pull the newest code of master. But the problem still exist.

@rom1v
Copy link
Collaborator

@rom1v rom1v commented Mar 15, 2018

scrcpy -v

?

@rom1v
Copy link
Collaborator

@rom1v rom1v commented Mar 15, 2018

Did you compile using prebuilt server v1.1?

@Pong420
Copy link
Author

@Pong420 Pong420 commented Mar 15, 2018

sorry, how to check prebuilt server version?

v1.1 still not work

scrcpy v1.1

dependencies:
 - SDL 2.0.8
 - libavcodec 57.107.100
 - libavformat 57.83.100
 - libavutil 55.78.100
@izayl
Copy link

@izayl izayl commented Mar 15, 2018

I find the reason of the issue,switch below option for obtain the permission of simulating Input

image

@rom1v
Copy link
Collaborator

@rom1v rom1v commented Mar 15, 2018

Did you compile everything, or downloaded the prebuilt server (the Android part)?

If you don't know, please give the result of:

mesonconf x

(from the scrcpy root directory)

@Pong420
Copy link
Author

@Pong420 Pong420 commented Mar 15, 2018

Solved, enable the permission of simulating Input work for me

Thanks all

@Pong420 Pong420 closed this Mar 15, 2018
@rom1v
Copy link
Collaborator

@rom1v rom1v commented Mar 15, 2018

@izayl Thank you very much! I added a question in the FAQ.

@moamahi
Copy link

@moamahi moamahi commented Jun 13, 2018

Ciao guys. Thank you so much for great work!
I'm on a vernee mix 2 (not a grat phone and probably a corner case).
I'm not able to click with left mouse. Only right. Unfortunately I can't find that option in my menu (doesn't exist at all). Is there a way for sending the option via ABD?
Using Windows (10 64bit)
I've tryed 1.0 1.1 1.2 (64bit) Vernee mix run android 7.0 security patch nov. 2017

@halilozercan
Copy link

@halilozercan halilozercan commented Oct 18, 2018

Nokia 8 does not have that option in developer settings. My problem turned out be a slightly weird one. If I move scrcpy window from the screen it started on to a different monitor, mouse inputs become unreponsive.

@rom1v
Copy link
Collaborator

@rom1v rom1v commented Oct 18, 2018

@saurabh02468
Copy link

@saurabh02468 saurabh02468 commented Jun 13, 2019

the screen off mirroring function does not work with either Ctrl+
o or terminal command …it says “unrecognised option”
help please.. my phone is poco F1

@rom1v
Copy link
Collaborator

@rom1v rom1v commented Jun 14, 2019

the screen off mirroring function does not work with either Ctrl+o or terminal command …it says “unrecognised option”

(please do not post on an unrelated issue)

You need scrcpy v1.9.

scrcpy --version
@xx299x
Copy link

@xx299x xx299x commented Aug 6, 2019

Xiaomi Mi 6 has the same issue

My Xiaomi Mi 6 no problem in windows.

@dottyunnan
Copy link

@dottyunnan dottyunnan commented Dec 22, 2019

I want to know recording MP4's format.

@Ggot
Copy link

@Ggot Ggot commented Jan 3, 2020

why my android OPPO R15 no USB debugging(Security settings) option? so I cannot click my simulating screen .

@mochadwi
Copy link

@mochadwi mochadwi commented Jan 16, 2020

thanks this happened in xiaomi smartphone, but also occurred in a few devices like Oppo @Pong420

@n-3rd23
Copy link

@n-3rd23 n-3rd23 commented Apr 15, 2020

thank you enabling USB debugging (security settings) worked on my phone mi 4

@mherweg
Copy link

@mherweg mherweg commented Apr 25, 2020

On a Redmi 6A I get the popup "Sign in with you Mi Account" :-(

@SapphireDrew
Copy link

@SapphireDrew SapphireDrew commented May 9, 2020

I find the reason of the issue,switch below option for obtain the permission of simulating Input

image

No such setting exists for me on Android 8.1. Device is a Motorola Moto G5 Plus.

Screenshot_20200508-201806

@Kein
Copy link

@Kein Kein commented May 20, 2020

In MIUI you are locked behind Mi Account link in order to enable ADBinput for keyboard and mouse. To bypass that (with root):

  1. Enable USB debugging
  2. Run any terminal as root
  3. setprop persist.security.adbinput 1
  4. That's all, nothing else is required

I dont believe root-less solution is possible because MIUI permission service will block any user-app trying to do the same.

@LosEagle
Copy link

@LosEagle LosEagle commented May 28, 2020

In MIUI you are locked behind Mi Account link in order to enable ADBinput for keyboard and mouse. To bypass that (with root):

1. Enable USB debugging

2. Run any terminal as root

3. `setprop persist.security.adbinput 1`

4. That's all, nothing else is required

I dont believe root-less solution is possible because MIUI permission service will block any user-app trying to do the same.

I'm assuming the permission service can't be safely disabled with adb, right?

@Kein
Copy link

@Kein Kein commented May 28, 2020

No, the security core cannot be uninstalled or disabled, it is rooted deep.

@ahmedsallam544
Copy link

@ahmedsallam544 ahmedsallam544 commented Jul 3, 2020

how to enable this setting on Xiaomi Note 7 ?
this screen does not appear

@iqfareez
Copy link

@iqfareez iqfareez commented Aug 22, 2020

I find the reason of the issue,switch below option for obtain the permission of simulating Input

image

It need simcard to be inserted :((

@VBK007
Copy link

@VBK007 VBK007 commented Aug 24, 2020

Bro I have not above usb debugging security setting in Relame U1
I want to control through keybord and mouse help???

@Kein
Copy link

@Kein Kein commented Aug 24, 2020

Read the thread

@Gojan444
Copy link

@Gojan444 Gojan444 commented Aug 26, 2020

Man I have a Redmi 8 MIUI11 with Android 10
Click/Mouse doesn't work, I have enabled the developer options (the security options too) but the simulated entry doesn't appear.
If I Root my phone, can I access that option?
Thank you very much also in advance, you have done a great job with scrcpy, making life easier for hundreds (if not thousands) of people, I love you.
I really want to make PC control work 😢

image

@rom1v
Copy link
Collaborator

@rom1v rom1v commented Aug 26, 2020

the security options too

Then it should work. What's the output in the console?

@Gojan444
Copy link

@Gojan444 Gojan444 commented Aug 26, 2020

Then it should work. What's the output in the console?

Hi man, yesterday at the time of my comment the console did not show anything different, scrcpy showed the image and even some keyboard shortcuts (alt +) in my windows worked well.
So today I tried to restart both my PC and my SmartPhone, and then I got the "adb push" returned with value 1 Error.
I tried to fix it (by closing scrcpy and restart my xiaomi a couple times) and then Control (click) works well 😄 !
So forgive me for my earlier comment, I am happy that it finally works well, thank you very much!

@enzonun
Copy link

@enzonun enzonun commented Aug 26, 2020

I find the reason of the issue,switch below option for obtain the permission of simulating Input

image

thanks this works for me!

@Mixterix-AL
Copy link

@Mixterix-AL Mixterix-AL commented Jan 10, 2021

I find the reason of the issue,switch below option for obtain the permission of simulating Input

image

It does not work on Xiaomi Redmi Note 9S Android 10, when I try to activate the option, it is never activated, and I cannot use Scrycpy

@truebit
Copy link

@truebit truebit commented Jan 18, 2021

On Oppo,turn on "Disable permission monitoring" in "Developer options"/"APPS" section.

@matthewstrasiotto
Copy link

@matthewstrasiotto matthewstrasiotto commented Mar 15, 2021

Everyone using a Xiaomi device -

@Mixterix-AL @ahmedsallam544

There is a way to enable keyboard input that is much easier than rooting your device, but you might be adverse to this for privacy reasons.

Others have discussed rooting your device, which, in my opinion, unless you really want root for other reasons, is probably overkill, and likely exposes your device to more threat vectors & vulnerabilities.

Easy fix - Do as they say & sign into your Mi account

The simple solution is to do what your manufacturer is telling you - "Sign in with your Mi account".

Personally, I find the constraint odd - If I'm activating devtools & running adb, chances are I have a good idea of whatever it is I want to do, and I've already dismissed one or two warning dialogues already- but, personally, I take it on good faith that the manufacturer is trying to protect me from myself.

It's odd, however, since this is maybe the only setting I've encountered that's locked behind a Xiaomi account.

Pros and cons for using a Mi account instead of rooting

I don't think anyone in this thread has explained why they are reluctant to follow the "easy" fix, and make an account

  • ✔️It's fairly convenient to make a Mi Account
    • Mi Accounts support SSO via Google + Facebook, so you probably won't even need to manage another credential.
    • Chances are you're already logged into Google
  • Once you sign into your Mi account, and enable the setting, you can immediately sign back out and the setting remains active
    • ⚠️ #70 (comment) :

      Cant un-upload all the personal data they already fetched from your phone on the sign-up process.

  • ✔️ rooting may expose your device to security vulnerabilities & exploits.
    I haven't looked into the state of this any time recently, but generally speaking, this holds true.
  • ⚠️ Xiaomi is beholden to the Chinese state government, who do have a vested interest in knowing as much as possible about as many people possible. It's not an exaggeration to say they comprise one of the 3 largest threat actors in the world (The other two are the USA & Russia)
    • ⚠️ Mi Account's privacy policy acknowledges this explcitly, in terms that are fairly broad
      image
      • 1.2 You are fully informed that we may collect and use personal information without your consent if:
        • 1.2.1 The personal information is vital to national security and defense;
    • ⚠️ Personally, I can't reason with what the Chinese government considers "Vital to national security and defense".
    • I'm also unsure of the constraints of "we may collect [...] personal information".
      • There is certain personal information explicitly discussed in the terms of the agreement, but the terminology of "collect" is broad & I'm unclear on the extent of this.

All this being said, your mileage may vary.
You're essentially making a series of Security/Convenience tradeoffs in activating the settings that allow scrcpy to function.

  • You activate adb for convenience of screen mirrroring at the cost of security.
  • You activate input simulation & permission interaction via adb for the convenience of keyboard input at the cost of security
    • To accomplish this you choose to root your phone (opening it to potential vulnerabilities), or give some amount of data to Xiaomi, at the cost of privacy.

Personally, I signed into a Mi account, activated the setting, and signed out of the account again & everything seems to be working just fine. There was no consent screen when I used Google's SSO, so it appears that I may have already made an account in the past (I don't remember).

I'm not clear on how much data was collected from me, what of that data is retained

@Kein
Copy link

@Kein Kein commented Mar 15, 2021

Personally, I signed into a Mi account, activated the setting, and signed out of the account again & everything seems to be working just fine.

Cant un-upload all the personal data they already fetched from your phone on the sign-up process.

@matthewstrasiotto
Copy link

@matthewstrasiotto matthewstrasiotto commented Mar 15, 2021

Personally, I signed into a Mi account, activated the setting, and signed out of the account again & everything seems to be working just fine.

Cant un-upload all the personal data they already fetched from your phone on the sign-up process.

Great point @Kein .

For me personally, given the SSO process didn't seem to activate an OAuth consent screen, it looked like maybe I'd already made this arguable mistake at some point in the span of my Pocofone ownership

@matthewstrasiotto
Copy link

@matthewstrasiotto matthewstrasiotto commented Mar 15, 2021

@Kein , I updated my comment with a more in-depth discussion of the tradeoffs.

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

Successfully merging a pull request may close this issue.

None yet