Genymobile / scrcpy

Display and control your Android device
Apache License 2.0
112.34k stars 10.74k forks source link

Unable to control S23 Ultra (Read-Only Mode) / Can't use mouse & Keyboard #4615

Open homeo26 opened 9 months ago

homeo26 commented 9 months ago

Environment


Issue Description:

NOTE: I don't have USB debugging (Security Settings) setting on my Samsung S23 Ultra


Ask:

rom1v commented 9 months ago

installation method: [apt-> updated using pull request]

What do you mean?

What is the full output in the console?

homeo26 commented 9 months ago

installation method: [apt-> updated using pull request]

What do you mean?

What is the full output in the console?

rom1v commented 9 months ago

Run scrcpy -Vverbose, and press some keys and click with the mouse, then copy the whole console output.

homeo26 commented 9 months ago
VERBOSE: input: touch [id=finger] move position=637,1685 pressure=1.000000 action_button=000000 buttons=000001
VERBOSE: input: touch [id=finger] move position=729,1685 pressure=1.000000 action_button=000000 buttons=000001
VERBOSE: input: touch [id=finger] move position=827,1685 pressure=1.000000 action_button=000000 buttons=000001
VERBOSE: input: touch [id=finger] move position=924,1685 pressure=1.000000 action_button=000000 buttons=000001
VERBOSE: input: touch [id=finger] move position=1016,1685 pressure=1.000000 action_button=000000 buttons=000001
VERBOSE: input: touch [id=finger] move position=1089,1680 pressure=1.000000 action_button=000000 buttons=000001
VERBOSE: input: touch [id=finger] move position=1148,1675 pressure=1.000000 action_button=000000 buttons=000001
VERBOSE: input: touch [id=finger] move position=1189,1670 pressure=1.000000 action_button=000000 buttons=000001
VERBOSE: input: touch [id=finger] up   position=1189,1670 pressure=0.000000 action_button=000001 buttons=000000
VERBOSE: [Audio] Buffering: target=2400 avg=3748.159180 cur=3772 compensation=-1348
VERBOSE: input: touch [id=finger] down position=121,1687 pressure=1.000000 action_button=000001 buttons=000001
...
rom1v commented 9 months ago

OK, so everythings looks fine (except that your device does not react).

Focus some text area / text field on your device, and execute from your computer:

adb shell input text hello

Does it inject "hello"?

gazhay commented 9 months ago

Having the same issue - scrcpy is detecting interaction but the phone does not reply.

adb shell input text hello works

Nothing Phone 2 - OS 2.5.2 Android 14

Chuckaluphagus commented 9 months ago

Having the same issue - scrcpy is detecting interaction but the phone does not reply.

adb shell input text hello works

Nothing Phone 2 - OS 2.5.2 Android 14

I am having this input issue as well. "adb shell input text hello" works properly. I'm on a Pixel 6 Pro, running Android 14.

Please let me know of you'd like further information, happy to help.

rom1v commented 9 months ago

adb shell input text hello works

If you run scrcpy --prefer-text, are you able to enter text ("hello") manually?