به نام خداوند مهربان

Android wireless debugging

جمعه, ۱۴ بهمن ۱۴۰۱، ۰۵:۰۴ ب.ظ

In this approach, we will use the ADB (Android Debug Bridge)tool available in Platform-Tools inside the Android SDK.

If you’re working on Windows, check that the environment variables path is set to the Platform-Tools (xxx/Users/Library/Android/sdk/platform-tools/)As you’ve configured the paths, just execute your commands type adb in the terminal or at the command prompt, which gives you the list of options.

Remember, we need to be connected over the same Wi-Fi network in the system and mobile. Let’s get started.

 

Step 1. Connect the device to the system via USB for initial setup

To check whether it’s properly connected, open the built-in terminal and run the command adb devices. This gives you the list of devices currently connected.

 

step1

Step 2. Set the target device to listen for a TCP/IP connection on port 5555

adb tcpip 5555

 

step2

Step 3. Find the IP address of the Android device

For example, on a Nexus device, you can find the IP address at Settings > About the tablet (or About phone) > Status > IP address.

Step 4. Connect to the device by its IP address

adb connect IP_Address

Step 5. Remove the USB cable and test your connection by typing the initial command

adb devices
 

 

That’s it, we’re done. We can run and debug wirelessly now.

If the adb connection is ever lost:

  1. Make sure that your host is still connected to the same Wi-Fi network your Android device is.

  2. Reconnect by executing the adb connect step again.

  3. If that doesn’t work, reset your adb host:

adb kill-server

 

 

 

 

 

 

  • حسن دلدار

android

debugging

wireless

نظرات  (۰)

هیچ نظری هنوز ثبت نشده است

ارسال نظر

ارسال نظر آزاد است، اما اگر قبلا در بیان ثبت نام کرده اید می توانید ابتدا وارد شوید.
شما میتوانید از این تگهای html استفاده کنید:
<b> یا <strong>، <em> یا <i>، <u>، <strike> یا <s>، <sup>، <sub>، <blockquote>، <code>، <pre>، <hr>، <br>، <p>، <a href="" title="">، <span style="">، <div align="">
تجدید کد امنیتی