In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article introduces the relevant knowledge of "Android DebugBridge Analysis of ADB". In the operation of actual cases, many people will encounter such a dilemma. Then let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
1. The function of ADB:
ADB is an acronym for Android Debug Bridge (Android debugging Bridge), which is used to control the operation of a mobile phone through computer code scripts (or computer programs, etc.).
2. Whether ADB is installed or not:
To determine whether ADB is installed successfully (including the "environment variable" configured here), simply press win+R, type cmd enter, enter the adb version command in the pop-up command window, and enter enter. If ADB is successfully installed, the version information is printed.
3. Identify other environmental issues:
Due to a variety of reasons (including the fact that the data line is actually a root charging line, poor contact caused by ash accumulation in the USB interface, etc.), the phone cannot actually connect with ADB. To determine whether ADB can connect to the phone, enter the adb devices command in the cmd command window and press enter. If the link is successful, the following will be printed:
List of devices attached (several devices are linked, a few lines will appear below) cw93hr2 devicee83zz93 deviceae3r1h0 device
4. Install ADB:
@ 1-if you have Android Studio, you will be reminded of some problems with installing ADB and virtual machines during installation. In general, Android Studio installs ADB in the platform-tools folder under its SDK, finds it, and adds it to the environment variable.
@ 2-if you don't have Android Studio (usually for APP development), you can download one. Or if you want to use ADB alone, you can go to the Android website (this URL sometimes needs to climb over the wall) to download Android platform-tools, extract it when the download is complete, and add this folder to the environment variable.
@ 3-if you don't have wall climbing software, please click this link to download the Android platform-tools I downloaded from Android's website in October 2019 (version 29.0.4).
5. Use ADB:
There are many instructions about the use of ADB, including screenshot, click, swipe, home key, return key, switch, and so on.
These instructions can be executed as system instructions cmd after adding environment variables, or can be called using packages such as os, starting with adb, for example:
Adb shell input keyevent 4 (4 for return key) View other keystrokes represent digits
Adb shell input tap 500500 (click on the point on the screen with coordinates 500500)
Adb shell swipe 200200 300300 (slide the screen from the point of coordinate 200200 to the point of 300300)
Adb shell screencap-p / sdcard/autojump.png (screenshot, commonly used with the following sentence)
Adb pull / sdcard/01.png (and downloaded to a locally specified file, commonly used with the previous sentence)
This is the end of "Android DebugBridge Analysis of ADB". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.