OnePlus One Fastboot fix

I own a second-hand OnePlus One and it is one of my favorite devices for Android development: ample RAM, a beautiful screen, light, and easy to grip. I use it as a testbed for Android and recently I had to flash Magisk on it.

The phone worked well until it was time to run fastboot flash boot magisk...

It reported <waiting for any device> and I realised that it wasn't being detected correctly when in fastboot mode because fastboot device would not return any connected devices. adb worked, so it wasn't an issue with my hardware. The solution is to point Windows 10/11 to the right driver and not:

  1. Install a driver from a sketchy website(!!!)
  2. Disable driver signing on Windows.
  3. Reinstalling the original ROM to get the drivers that only show up as a CD-ROM driver

Start in fastboot mode

Android will not be detected correctly

Browse My Computer for Drivers

Let me pick from available drivers

Select Universal Serial Bus devices

Under WinUSB device select ADB device

Accept the warning

Now it will show up in fastboot devices. This is because ADB uses the same drivers as fastboot, but when you boot in fastboot mode Windows may not detect the hardware correctly.

References

  1. https://community.oneplus.com/thread/804764