Genymobile / scrcpy

Display and control your Android device
Apache License 2.0
105.44k stars 10.24k forks source link

USB Debugging #4914

Open Gabriel-githud opened 1 month ago

Gabriel-githud commented 1 month ago

Environment

When I Try Use Scrcpy It Says: scrcpy 2.4 https://github.com/Genymobile/scrcpy INFO: Killing adb server (if any)... ERROR: Could not find any USB device

And Trying A Phone With USB Debugging Enabled But Not Authorised It Works?

Commands: scrcpy --otg

Any Fixes?

Gabriel-githud commented 1 month ago

Also Enabling It Won't Work Due To My Screen Being Broken

rom1v commented 1 month ago

On Windows: https://github.com/Genymobile/scrcpy/blob/master/FAQ.md#otg-issues-on-windows And if USB debugging is enabled, then it will conflict with adb.

If you have access to a computer with Linux or macOS, use it, it should work out-of-the-box.

And Trying A Phone With USB Debugging Enabled But Not Authorised It Works?

If USB debugging is already enabled but not authorized:

  1. plug your device over USB.
  2. run scrcpy --otg.
  3. type your PIN and press Enter.
  4. press Tab, Enter, Tab, Tab, Enter to validate the USB debugging popup (replace Enter by Space on some devices).
  5. USB debugging should now be authorized (scrcpy OTG should close due to USB reconfiguration).
  6. run scrcpy normally (with scrcpy --turn-screen-off to avoid performance issues with a broken screen due to vsync).
Gabriel-githud commented 1 month ago

On Windows: https://github.com/Genymobile/scrcpy/blob/master/FAQ.md#otg-issues-on-windows And if USB debugging is enabled, then it will conflict with adb.

If you have access to a computer with Linux or macOS, use it, it should work out-of-the-box.

And Trying A Phone With USB Debugging Enabled But Not Authorised It Works?

If USB debugging is already enabled but not authorized:

1. plug your device over USB.

2. run `scrcpy --otg`.

3. type your PIN and press Enter.

4. press Tab, Enter, Tab, Tab, Enter to validate the USB debugging popup (replace Enter by Space on some devices).

5. USB debugging should now be authorized (scrcpy OTG should close due to USB reconfiguration).

6. run scrcpy normally (with `scrcpy --turn-screen-off` to avoid performance issues with a broken screen due to vsync).

I've got the correct drivers and all but when trying to unlock it just doesn't want to also my phone screen is black and I can't do anything about it any fixes?

Gabriel-githud commented 1 month ago

And I just figured out it's a pattern not a PIN any way to unlock it now?

exciar commented 1 month ago

And I just figured out it's a pattern not a PIN any way to unlock it now?

you have to authorize your device to your pc for usb debugging to work

I think you're just gonna have to have your screen replaced, sorry

lmehdi49 commented 2 weeks ago

i only have swiping to unlock and it doesn't enable te usb debugging (my screen is black but touch is working)