Skip to content

Instantly share code, notes, and snippets.

@nmelihsensoy
Last active February 6, 2022 13:01
Show Gist options
  • Select an option

  • Save nmelihsensoy/97ba8b03480418506cb1837e887b286b to your computer and use it in GitHub Desktop.

Select an option

Save nmelihsensoy/97ba8b03480418506cb1837e887b286b to your computer and use it in GitHub Desktop.
wsl adb connection
With using 'usbipd-win':
From Windows(Windows 11) :
usbipd wsl list
usbipd wsl attach --busid <DEVICE_BUSID>
if gives 'WSL Virtual Switch' error :
find interface that Windows and Wsl can ping each other then
From WSL(Ubuntu 20.04) :
usbip list -r <WINDOWS_IP>
sudo usbip attach -r <WINDOWS_IP> -b <DEVICE_BUSID>
From WSL(Ubuntu 20.04) :
lsusb
sudo adb kill-server
sudo adb start-server
adb devices
if device not shown :
From Android(Android 11) :
Developer Settings -> Default USB Configuration : PTP
With using adb over network:
From Windows(Windows 11) :
adb tcpip 5555
From WSL(Ubuntu 20.04) :
adb connect [device ip]:5555
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment