Detailed explanation of adb's principle and its total restart, and detailed explanation of adb's principle restart
1. adb (Android Debug Bridge) indicates the android debugging Bridge.
It is a command line tool in the android system that can communicate with android devices or simulators.
ADB is a C/S architecture application, which consists of three parts:
1) adb
reboot bootloader // restart to bootloader, that is, the brush Mode
ADB reboot recovery // restart to recovery, that is, the recovery mode.
------------------ Send command to device --------------------------------------
adb [-d|-e|-s
-D sends a command to the USB-connected device-e sends the command to the simulator device-S
ADB Problems
connected device (the Android device or emulator that connects your computer). 2.ADB Install ADB install the Several parameters: -R Forced installation -D (True, only one true machine in multiple devices applies) -E (emulator, available in multiple devices with only one emulator) -S (Specify device, followed by ser
I have no intention of reading this article today. I want to use the simulator and ADB commands when I don't know how to operate SQLite at the time. I can't do it when I use a mobile phone. I am busy with the operating system today, and I want to add it to my favorites for the moment. Try again in ~
The full name of ADB is Android debug Bridge. It connects your computer to your mobile phone so that you can
shell ls: list the directories of devices.Eg: adb device connection operationAdb shellAdb-s xxxx shell
2. Upload the file: adb pushDownload file: adb pull/Tmp/... indicates the path of the file to be operated in the linux environment of the device.Eg: adb push key data/app uploads the key file to the user directory.A.
In the process of development or testing, we can manage multiple devices through the ADB in the general format of:adb [-e |-D |-s With the environment variables in place, enter ADB help in the command window or enter ADB directly, and all the option descriptions and subcommands will be listed.Here are some of the commands that are commonly used:12 [xuxu:~]$
Issue background: Install apk is reported error:protocol faultThe following problems occur:Solution One,Windows:Task Manager, see the ADB process, shut down, and then restart ADB start-server.Linux (my machine is Ubuntu system)Execute commandGnome-system-monitorOpen the Task Manager and turn off the ADB.Solution Two:1, after starting the simulator,2. Enter the cm
Tags: specify Bubuko system network body LED bat shell cat. com ADB tool (full name: Android Debug Bridge) is an Android generic debugging tool that provides instructions for debugging Android-related operations ADB devices Directive ADB devices instructions to obtain information about the device or emulator that is currently connected Such as: The first messa
the details, find the process whose PID is 3324, right-click the process to end, and then retry adb to check whether the connection is successful.
After adb successfully connects to the device, you can start to use the command,Common adb commands
1. adb install [optional pa
Adb related operations, adb related
1 adb send Broadcast
Adb shell am broadcast-a com. android. launcher4.launcherReceiver -- es path "/mnt/sdcard/xx.apk" -- ei action 1 -- ei versionCode 21
How to Use the ADB command to view mobile phone-related information Parameters
Ge
~/name. IMG (-skin 1280x800) 5. Delete the AVD (simulator): Android Delete AVD--name name 6. Create SDcard: Mksdcard 1024M ~/name. img 7. AVD (simulator) Location: Linux (~/.ANDROID/AVD) Windows (C:\Documents and SETTINGS\ADMINISTRATOR\.ANDROID\AVD) 8. Start Ddms: Ddms 9. Displays all the emulators currently running: ADB devices 10. Execute a command on a simulator: Abd-s Simulator number Command 11. Install
clip.
[ADB kill-server] kills the server process of ADB.
[ADB start-server] starts the server process of ADB.
[ADB devices] view the android terminal that establishes the connection.
[Android list] displays all android Terminals
[Ddms] Start ddms
Tags: android test automation adb Monkey
Heaven Zhuhai Branch Rudder note : Originally this series is to prepare a book, details please see the earlier blog "to seek partners to write the deep understanding of Monkeyrunner" books. But for many reasons, there is no wish. So the draft is shared here, so mistakes are unavoidable. If necessary, please refer to the following, the forwarding of the word also keep the end of each article source and
ADB full name Android Debug Bridge, is a tool in the Android SDK, with this tool can directly operate the management of Android simulator or real andriod device (mobile phone), so in fact, work can give us a lot of help, The following is a summary of the ADB commands commonly used in previous work:
ADB help, listing all option descriptions and subcommands
1. Query for several Android devices to connect to ADB server >ADB devices List of devices attached 0123456789ABCDEF device 2. Install a apk to the Android device >adb install-r b:test6577pinyinime.apk 2509 kb/s (1284852 bytes in 0.499s) Pkg:/data /local/tmp/pinyinime
(-skin 1280x800) 5. Delete the AVD (simulator): Android Delete AVD--name name 6. Create SDcard: Mksdcard 1024M ~/name. img 7. AVD (simulator) Location: Linux (~/.ANDROID/AVD) Windows (C:\Documents and SETTINGS\ADMINISTRATOR\.ANDROID\AVD) 8. Start Ddms: Ddms 9. Displays all the emulators currently running: ADB devices 10. Execute a command on a simulator: Abd-s Simulator number Command 11. Install the appli
Heaven Zhuhai Branch Rudder note : Originally this series is to prepare a book, details please see the earlier blog "to seek partners to write the deep understanding of Monkeyrunner" books. But for many reasons, there is no wish. So the draft is shared here, so mistakes are unavoidable. If necessary, please refer to the following, the forwarding of the word also keep the end of each article source and other information.
The ADB server is processe
ADB, short for Android debug bridge, is a tool in the android SDK. It can be used to directly manage Android simulators or real Android devices (such as G1 mobile phones ).Its main functions include:
* Run the shell (command line) of the device)* Manage port ing between simulators and devices* Upload/download files between computers and devices
* Install the local APK software on the simulator or Android de
Tags: parameters arm system Services Uninstall ... Way Activity Open winFirst, the ADB commonly used commands: (Do not need to enter the device, that is: do not need to execute adb shell)
ADB devices list all connected devices
ADB kill-server close adb
Use adb to transfer files between your computer and mobile phone, and use the adb mobile phone to transfer files
First, you need the root mobile phone.
Then, "Win + R" opens the cmd window. The following example describes how to copy d: \ 1.txt to the/system/directory.
Adb push source (localpath) dest (mobilepath)
D: \> adb
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.