简体   繁体   中英

Sending ADB command from Android Studio

I'm trying to save a screenshot using an ADB command with Android Studio, so even if my phone is not connected to my computer, it can still use ADB commands... I can't find any solution on the inte.net... Is it possible? How can I do it?

You can use WIFI ADB, For that you need to have the Phone and Your Computer on the same.network.

To connect using WIFI ADB.

  1. Connect your Phone to Computer using USB
  2. Open CMD/Terminal/Android Studio>Terminal
  3. Type adb tcpip 5555 (make sure you only have your device connected and emulators closed) hit enter.
  4. Then type adb <phone-ip>:5555 and hit enter

Find Phone IP address

WIFI ADB App. Check ReadMe. Avoid Installing the IntelliJ Plugin

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM