Friday, October 23, 2020

How to Test Your Apps Wireless on Android Phone

 How to Test Your Flutter Apps Wireless on Android Phone



adb.exe tcpip 5555
adb.exe connect 192.168.43.1:5555
...............................................................................................................................................................................................................................
Step :#1 [Pro Level ] 
  1. Connect your device to PC by USB cable to pc(one time requirement only) .
  2. Turn on usb debugging it will connect successfully(allow for connection in device for promoted message).
  3. Then type this Command in terminal  adb.exe tcpip 5555
  4. Now remove the USB cable and it's no longer required
  5. Make sure your phone and machine is connected in the same wifi
  6. Connect device with pc with wifi now type this command  adb.exe connect <your_ip>:5555

you're all done !!
...................................................................................................................................................................................................................................
Step :#1 [Beginner Level ] 
How to Access Developer Options and Enable USB Debugging on Android

To enable Developer Options, open the Settings screen, scroll down to the bottom, and tap About phone.




Tap the Build number field seven times to enable Developer Options. Tap a few times and you’ll see a toast notification with a countdown that reads.








How to Enable USB Debugging

To enable USB Debugging,  you’ll need to jump into the Developer options menu, scroll down to the Debugging section, and toggle the USB Debugging slider.




Allow USB debugging?  Ok






Almost done here. :)

.........................................................................................................................................................................................................................
You can now connect your device with USB. You can verify that your device is connected by executing adb devices from the android_sdk/platform-tools/ directory. If connected, you'll see the device name listed as a "device."
 adb.exe devices

Just for the info, the adb help says that
1. adb.exe usb                     
 



2. Allow it 


3. adb.exe tcpip <port>         
   adb.exe tcpip 5555    

4. Now Remove the USB cable and it's no longet require

5. How to find out th IP address 
open a command prompt and type ipconfig


6. How to connect ?
adb.exe connect <ip-address>:5555


7. How to Stop or restart android adb serive from command prompt 
  adb.exe kill-server



No comments:

Post a Comment