USB Debugging can't be used on my Mi A1

ghale

Senior Member
Oct 20, 2007
299
30
28
South Italy
Hello people, I've a weird problem on my device.
Yesterday everything was ok. I've enabled USB debugging and I've used "adb" from terminal without issues.
Today, I can't connect with adb anymore.

If I use adb devices I can't see my device. If I try to Enable USB Debugging on my device, for a very short moment (about 2 seconds) I can see my device connected, then it disconnects.

I noticed this:


That icon appears for 2 seconds after I disable and re-enable USB debugging, then it disappears (of course the notification for USB connection appears for 2 seconds then disappears).

I've tried everything:
  • different cables
  • different PC and Mac
  • I've removed adb_keys from /data/misc/adb
  • I've removed adb kesy from .android folder on my PC/Mac
  • I've revoked USB authorisation
Nothing.

Is there a saint can help me fix this?

I don't want to hard reset device again.
Thanks,
ghale

PS: I don't know if it's important, but in Fastboot mode, I can list device with fastboot devices command.
 
Last edited:

Olystem

Senior Member
Sep 7, 2017
347
166
43
Hello people, I've a weird problem on my device.
Yesterday everything was ok. I've enabled USB debugging and I've used "adb" from terminal without issues.
Today, I can't connect with adb anymore.

If I use adb devices I can't see my device. If I try to Enable USB Debugging on my device, for a very short moment (about 2 seconds) I can see my device connected, then it disconnects.

I noticed this:


That icon appears for 2 seconds after I disable and re-enable USB debugging, then it disappears (of course the notification for USB connection appears for 2 seconds then disappears).

I've tried everything:
  • different cables
  • different PC and Mac
  • I've removed adb_keys from /data/misc/adb
  • I've removed adb kesy from .android folder on my PC/Mac
  • I've revoked USB authorisation
Nothing.

Is there a saint can help me fix this?

I don't want to hard reset device again.
Thanks,
ghale
Uninstall adb driver then install latest version

Sent from my [device_name] using XDA-Developers Legacy app
 

ghale

Senior Member
Oct 20, 2007
299
30
28
South Italy
Well, on Mac it's very simple, just download new adb and fastboot from Android developer portal and replace old ones.
No drivers needed. On pc is a bit different.