A way to use your Android device directly from terminal.
Step 1
Download links:
ADB: https://developer.android.com/studio/releases/platform-tools- GUI for
ADB: https://github.com/Genymobile/scrcpy/releases
Step 2
Slam all the files into a folder.
Step 3
Add necessary path from windows (Ex: /mnt/c/adb) to Wsl 2 local PATH.
Step 4
Use the aliases available in ~/.bashrc file for GUI ADB and ADB
More info at this link: https://www.youtube.com/watch?v=HAJaNuFIvnU
adb start-server
adb kill-server
adb shell
gui