ADB - Connect to android device remotely using adb with wifi on linux
step1)Connect you computer to an android device remotely using adb with wifi
step2)enable developer options and enable ADB orver network
step3)install adb on linux pc
step4)connect phone using usb, then check device:
1sudo adb devices
step5)press "ok" to trust device popup on android
step6)run
1sudo adb tcpip 5555
step7)turn on linuxPc hotspot and connect to android
step8)type
1sudo adb shell
step9)then run 'ifconfig' on the shell to get connected ip address
step10)exit the shell and run
1sudo adb connect 10.42.0.65
(10.42.0.65 is my current wlp2s0 ip)
step11)relog into adb shell and type 'ping google.com' to test network connections
(you can also run 'su' to get root permissions)