Genymobile / scrcpy

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

Usb debugging #5052

Open zqualung opened 4 days ago

zqualung commented 4 days ago

HI folks, running a xiaomi 12t pro android 14 Black screen, sometimes will light up with static and some touchscreen functionality from what it looks like, but I don't know because the static is just moving around. anyway. I have been trying to enable usb debugging blindly through scrcpy using this method and it works I can connect, BUT. I enter my pin code, press enter/space. Then I press tab, enter, tab, tab, enter. and my f****ng flashlight turns on. really funny but absolutely infuriating at the same time. can anyone help please?

rom1v commented 4 days ago

I have been trying to enable usb debugging blindly through scrcpy using this method

This method only allows to validate the authentication popup when USB debugging is enabled but not authorized.

Enabling USB debugging is more difficult.

If you have another identical phone, you can try this PR: https://github.com/Genymobile/scrcpy/pull/4556

zqualung commented 4 days ago

this is what i get when i try to run with screen off

scrcpy 2.5 https://github.com/Genymobile/scrcpy

but it doesnt open the app or let me control the phone via usb here, only when i run scrcpy --otg. I do have usb debugging enabled but i need to authorize it when blindly

rom1v commented 4 days ago

ERROR: Device is unauthorized: ERROR: --> (usb) 7591acf9 unauthorized

Oh ok. Then the method should be the correct one to validate the authorization popup.

If this does not work, the exact sequence of keys to press are probably different on your specific device/ROM (due to vendor-specific changes). If you have a similar working phone, enable USB debugging but don't authorize, then try scrcpy --otg on that phone to find the correct sequence of keys.

NotSaqlain commented 7 hours ago

I have been trying to enable usb debugging blindly through scrcpy using this method

This method only allows to validate the authentication popup when USB debugging is enabled but not authorized.

Enabling USB debugging is more difficult.

If you have another identical phone, you can try this PR: https://github.com/Genymobile/scrcpy/pull/4556

You say enabling USB debugging is is more difficult but that means it's still possible. Right? It would really me helpful if you could give some suggestions cause i have really important data in my phone.