When we enable USB Debugging, there is automatically a popup that asks whether you want to authorize the PC to access the phone via USB Debugging. How do I enable it without the popup? Is there a command line query using which I can say "no prompt" or something like that?

Here is an image of the popup I am referring to:


Thanks for the help.

  • 1
    Tick the checkbox, and the next time you connect to the very same computer there won't be a popup. That's a security measure so "Mr. Hacker" cannot simply adb pull content from your device. – Izzy Nov 2 '17 at 7:32
  • I want a command to allow this device by default. No touches on the screen. – Zac Nov 2 '17 at 18:09
  • So whatever computer it connects to, it should be allowed by default – despite of the implicated security risk? Not sure if that's possible, especially on a non-rooted device. Besides: those two "touches" have to be applied only on the first connection to a "new" computer – but I guess that was clear from the description on the checkbox. – Izzy Nov 2 '17 at 18:13
  • I understand that, I am basically looking for a command like --rsa_id=xyz that I can pass to authenticate in one step without touch. (For scripting purposes). Isn't my question or explanation clear? – Zac Nov 2 '17 at 18:47
  • What you want to achieve is clear, however the confirmation is a critical protection mechanism preventing lost phones from being hacked. Is the used ROM a custom ROM or is there an custom app with root permissions running on the phone? – Robert Nov 2 '17 at 19:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.