WSL and ADB
- Installing USBPID
- Installing ADB in WSL
- Launching an ADB shell
Open Powershell as admin and run the following:
winget install --interactive --exact dorssel.usbipd-win
List your USB devices:
usbipd list
E.g:
BUSID VID:PID DEVICE STATE
1-10 1f3a:1007 Tina Not shared
List your USB devices:
usbipd bind --busid 1-10
List your USB devices:
usbipd attach --wsl --busid 1-10
mattpc@MattPC:~$ lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 002: ID 1f3a:1007 Allwinner Technology Tina
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Open your WSL2 terminal and update your package list:
sudo apt update
Install ADB:
sudo apt install adb
Check if ADB is installed correctly by running:
adb version
Android Debug Bridge version 1.0.41
Version 34.0.5-10900879
Installed as /usr/bin/adb
Running on Windows 10.0.22621
Ensure your Android device is connected to your computer via USB. Check if your device is recognized by running:
adb devices
List of devices attached
20080411 device
You can now launch an ADB shell to interact with your device:
adb shell
root@MIYOO282:/#
mattpc@MattPC:~$ adb shell
BusyBox v1.27.2 () built-in shell (ash)
_____ _ __ _
|_ _||_| ___ _ _ | | |_| ___ _ _ _ _
| | _ | || | | |__ | || || | ||_'_|
| | | || | || _ | |_____||_||_|_||___||_,_|
|_| |_||_|_||_|_| Tina is Based on OpenWrt!
----------------------------------------------
Tina Linux (Neptune, 5C1C9C53)
----------------------------------------------
root@MIYOO282:/# exit
mattpc@MattPC:~$
----------------------------------------------