If you want to debug an Android application that needs USB tethering – say a FPV app – then you can use the following steps.
- You need to first connect the device to the same wifi network as your PC.
- Then start the USB tethering and provide internet to whatever you need – say a Raspberry PI running wifibroadcast or my RC software.
- Run this in a terminal:
adb connect 192.168.1.33:5555
where 192.168… is the WiFi IP of your device - That’s it. The device is now visible to Android Studio & QtCreator just like if it were connected by USB. I didn’t notice any slowdowns in deployment vs USB – but my app is rather small (a few MB)