My USB-connected Android phone (a Redmi Note 4, not that it matters) is not being displayed by adb devices
. I'm aware of this question on the subject. But in my case the odd thing is that the device is visible in Chrome devtools, and I can "Inspect" webviews. Obviously, I've set USB debugging on on the device. All my Windows USB drivers are installed properly. I've done adb kill-server && adb start-server
. I've put the device into MTP/PTP USB mode. I've tried any number of combinations of cables and ports and sequences of plugging in and unplugging and turning USB debugging on and off again. The device is visible under "Portable Devices" in Device Manager.
Things were working fine up until a few days ago. I can think of nothing obvious that changed in the meantime.
After first posting this question, things started working again by accident--I cannot remember the sequence of things I did. Then just recently, the problem reared its ugly head again.
What could account for this state of affairs?