-
Install terminal on android device (something like 'termux')
-
From terminal:
$: su
$: setprop service.adb.tcp.port 5555
$: adb tcpip 5555
- Go to desktop (or dev machine). Find available devices through network:
$: ifconfig # check ip and mask
# if nmap installed
$: nmap -sn 192.168.1.0/24 #
# or with ping and arp
$: ping 192.168.1.255 -b # broadcast ip, wait few seconds
$: arp -a
- Connect from dev machine:
$: adb connect 192.168.0.12:5555 # ip of android device (if you can't figure out which ip is your device, just try to connect to all of them)
- Go to AndroidStudio and open ADV manager, now your device should be available