Run/install/debug Android applications over Wi-Fi?

前端 未结 30 2309
[愿得一人]
[愿得一人] 2020-11-22 07:16

I thought there was a way to test your applications in development over Wi-Fi. Is this possible?

I\'d love to be able to untether my phone and develop wirelessly.

30条回答
  •  暗喜
    暗喜 (楼主)
    2020-11-22 07:59

    Note :- Android Phone must be rooted and no need of usb cable.

    Install wifi adb in android phone from playstore

    link :-https://play.google.com/store/apps/details?id=com.ttxapps.wifiadb

    For Windows

    I am using this technique , which is very easy.

    1) download adb :

    link : https://www.dropbox.com/s/mcxw0yy3jvydupd/adb-setup-1.4.3.exe?dl=0

    2) Run exe :- when you see blue screen press y enter .

    3) Now open your wifi adb apk , just grant root permission and must be remember you android phone and system on the same network by wifi or hotspot .

    4) Open Wifi adb apk , you will get some ip address like , adb connect 192.168.2.134:5555 Note this ip may be very from system to system , now put this information to your command prompt and hit Enter .

    5) Open cmd from anywhere enter adb connect 192.168.2.134:5555 .

    6) Finally you successfully connected to adb . it will show message like connected to 192.168.2.140:5555

    For Mac Os

    This is the easiest way and will provide automatic updates.

    1)Install homebrew

    ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
    

    2)Install adb

    brew cask install android-platform-tools
    

    3)Start using adb

    adb devices
    

    4) Open Wifi adb apk , you will get some ip address like , adb connect 192.168.2.134:5555 Note this ip may be very from system to system , now put this information to your terminal and hit Enter .

    5) Open terminal in mac os from anywhere enter adb connect 192.168.2.134:5555 .

    6) Finally you successfully connected to adb . it will show message like connected to 192.168.2.140:5555

    I hope its help you ,Thank You !

提交回复
热议问题