In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Original articles, welcome to reprint. Reprint please indicate: reproduced from IT Story Association, thank you!
Original link address: "docker practice" python's docker crawler technology-the use of Android ADB, a mobile automation control tool (15)
Adb (Android Debug Bridge), the debugger bridge on Android platform, is the bridge between Android phone and PC. Through adb, you can manage and operate simulators and devices, such as installing software, checking device hardware and software parameters, system upgrade, running shell commands, and so on.
# adb
First of all, you need to turn on developer mode before you can use adb operation simulator or mobile phone.
Adb start
Adb start-server
Simulator setup
Click on the tablet
Click the version number many times to open developer mode
Click to enter-developer options
Turn on these four options: USB debugging, allow analog position, display touch operation, pointer position.
Adb connection Simulator adb devices
Caused by inconsistencies in versions.
Solutions to problems with inconsistent versions
1. Copy the adb.exe,AdbWinUsbApi.dll,AdbWinApi.dll under the Night Simulator bin directory to the newly created adb_bak directory.
Copy the adb.exe,AdbWinUsbApi.dll,AdbWinApi.dll under 2.sdk 's platform-tools directory to the Night God simulator bin directory.
3.。 The Night God simulator nox_adb.exe is changed to copy the adb.exe under the platform-tools directory of nox_adb.exe-bak,sdk to the nox_adb.exe under the Night God simulator bin directory.
4. Restart the Night God Simulator
Adb devices
5.USB is connected to a real Android, but why unauthorized? The reason is that when only one computer is connected to usb, the phone has a prompt whether to allow usb connection. You have to agree.
Enter the simulator and the real machine
If it is a real machine, it starts with $.
Adb-s 10d4e4387d74 shell
Virtual machine # beginning
Adb-s 127.0.0.1 62001 shell
Virtual machine, viewing packages that have been installed
Adb-s 127.0.0.1 adb 62001 shelllscd / data/app
On the other hand, all the packages in the system
Adb shell pm list package
The virtual machine uninstalls the application by command
Adb-s 127.0.0.1 62001 uninstall package name
If the simulator is not in the devices list, adb devices adb connect 127.0.0.1purl 62001
From the file push to the Android adb push file path adb push C:\ Users\ liming\ Desktop\ aa\ 99.jpg / sdcard
Pull the files from the Android machine to the local adb pull Android machine path file path (do not put it in the root directory, you will get an error) adb pull / sdcard/99.jpg C:\ Users\ liming\ Desktop\ aa\ 98.jpg
Screenshot command adb shell screencap / sdcard/test.png! [] (https://upload-images.jianshu.io/upload_images/11223715-a60d58652d6029c7.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)PS: basic adb commonly used commands from list acquisition, list display, pull files, push files, screenshot commands, and so on.
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
Planning what you want to buildAn application A progranning libray A set of system configuration fil
© 2024 shulou.com SLNews company. All rights reserved.