Table of Contents
- EXPERIMENTAL - Using ADB and Fastboot in WSL 2 (via usbipd)
EXPERIMENTAL - Using ADB and Fastboot in WSL 2 (via usbipd)
This guide outlines the steps to connect Android devices to WSL 2 using usbipd for both ADB and Fastboot modes.
Using Ubuntu directly is preferred, but this guide will help if WSL2 is the only option.
Overview
USBIPD is a Windows service that enables access to physical USB devices from within WSL 2. To support Android device flashing and debugging, USBIPD must be configured separately for both the ADB and Fastboot USB interfaces. During installation or device flashing, two USBIPD attachment sessions need to be active—one for ADB mode and one for Fastboot mode—to ensure seamless transitions between device states.
USBIPD will be slower than a direct Ubuntu install.
Prerequisites
- WSL 2 installed and running (Instructions)
- Install usbipd on Windows (Instructions)
- ADB and Fastboot (Android Platform Tools) installed inside WSL 2
Connect ADB Device
Step 1: Open PowerShell (Window 1)
Find BUSID
usbipd list
Example output:
Connected:
BUSID VID:PID DEVICE STATE
2-2 2ac1:20c9 Intel(R) USBIO Bridge Device Not shared
2-3 05c6:901d KONA-QRD _SN:29AD1D93, ADB Interface Shared
2-5 27c6:633c Goodix MOC Fingerprint Not shared
Bind Device Using BUSID
usbipd bind --busid 2-3
Find VID:PID
usbipd list
Example output after rebinding:
Connected:
BUSID VID:PID DEVICE STATE
2-2 2ac1:20c9 Intel(R) USBIO Bridge Device Not shared
2-3 18d1:d00d Android Shared
2-5 27c6:633c Goodix MOC Fingerprint Not shared
Attach Device to WSL 2
usbipd attach --wsl --hardware-id 18d1:d00d --auto-attach
Step 2: Verify in WSL 2
Open your WSL terminal and run:
Check USB Devices
lsusb
Verify ADB Connection
adb devices
Reboot Device into Bootloader (Fastboot)
From WSL:
adb reboot bootloader
Connect Fastboot Device
Step 3: Open PowerShell (Window 2)
Repeat the same steps for the Fastboot interface.
Find BUSID
usbipd list
Bind Device
usbipd bind --busid 2-3
Find VID:PID
usbipd list
Attach Device to WSL 2
usbipd attach --wsl --hardware-id 18d1:d00d --auto-attach
Step 4: Verify Fastboot in WSL 2
Check USB Devices
lsusb
Verify Fastboot Connection
fastboot devices
Upgrade VOXL SDK
You are now ready to Upgrade the SDK
Notes
- The VID:PID may change between ADB and Fastboot modes.
- You may need to repeat the bind/attach steps after rebooting the device.
- Using
--auto-attachensures the device reconnects automatically when replugged.