- root
- termux
- make sure your device is rooted
- open
termux - write
suend enter it will give you root permission - write
and enter, you can change 7777 to whathever (make sure your port not used)
setprop service.adb.tcp.port 7777
- for now you have done change port adb but you need restart the adb
- for that write
it will give you output like this
ps -ef | grep adbdfor example my adb process id is 11566shell 11566 1 10 09:11:55 ? 00:02:03 adbd --root_seclabel=u:r:su:s0 root 12958 12937 28 09:32:11 /debug_ramdisk/.magisk/pts/0 00:00:00 grep adbd - write
to terminate adb
kill 11566 - from now you can try access adb via ethernet
- if you don't know your ip address you can write
you can see
ifconfig
eth0 - and now you can try connect your device
using command like this
and boom done
adb connect xxx.xxx.xxx.xxx:7777