Connect to an Android device over wifi
Yesterday, when I try to download the database files from my device, so I connected my device from my computer, but the usb cable is not…
Yesterday, when I try to download the database files from my device, so I connected my device from my computer, but the usb cable is not stable, the device always disconnected. I remember that the Android Studio can connect with the device over wifi, so I want to give it a try.
In order to enable connect Android device over wifi, the android system should be Android 11 or higher, and my system is 11, so thanks God, that I can connect it with wifi.
Enable wireless debugging
The Developer options
on my device which is Redmi Note 9S
, it’s located at Settings > Additional settings > Developer options
, on Debugging section, there is an option Wireless debugging
, turn on the option, then select Pair device with QR code
, and on Android Studio select Pair Devices Using Wi-Fi
under device list, like below:
It will show a dialog with an QR code, scan with the device, and input the pairing code on the machine.
After pair the device, on the device list, the device will list on the device list like the picture above, so I can get the database files from my device from Device File Explorer
and select my device, it’s more stable than using the USB cable.
You can also try this setting if your Android device has system Android 11 or higher.