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

Usb debugging #5052

Open
zqualung opened this issue Jul 3, 2024 · 4 comments
Open

Usb debugging #5052

zqualung opened this issue Jul 3, 2024 · 4 comments

Comments

@zqualung
Copy link

zqualung commented Jul 3, 2024

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
Copy link
Collaborator

rom1v commented Jul 3, 2024

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: #4556

@zqualung
Copy link
Author

zqualung commented Jul 3, 2024

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

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

  • daemon not running; starting now at tcp:5037
  • daemon started successfully
    ERROR: Device is unauthorized:
    ERROR: --> (usb) 7591acf9 unauthorized
    ERROR: A popup should open on the device to request authorization.
    ERROR: Check the FAQ: https://github.com/Genymobile/scrcpy/blob/master/FAQ.md
    ERROR: Server connection failed

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
Copy link
Collaborator

rom1v commented Jul 3, 2024

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
Copy link

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: #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.

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

No branches or pull requests

3 participants