shell DMESG will print out debug information for the kernel. 5. Publishing ports You can set any port number as the request port for the host to the emulator or device. Such as: ADB forward tcp:5555 tcp:8000 6. Send files from the computer to the device ADB Push Use the push command to copy files or folders on your computer to your device (mobile) 7. Download files from the device to the computer
the device (mobile phone) to the local computer.
Local Path on the computer
Remote path: Mobile Phone device or Simulator
11. view the device serial number in ADB get-serialno. On my PC, It is emulator-5554
12.ADB bugreport view bug report
13.ADB Shell
Logcat-B radio
In general, there are a lot of wireless communicati
second is the mobile phone.Note: the root user is used to start the ADB server and execute the ADB command. Otherwise, "No permissions" appears"ADB get-serialno Print Device serial numberADB version: list the version numbers of ADB.The output of adb get-state is usually offline | bootloader | deviceAdb help view all c
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
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:~]$
1 common command-line tools in the Android SDKThere are many command-line tools in the 2 starting and shutting down the ADB service (ADB start-server and ADB kill-server)After testing by the author, the ADB service is possible (this service can be found in the Windows process after the simulator has been running for a
After testing by the author, the ADB service is possible (this service can be found in the Windows process, which is used for the emulator or a real-time service connected via a USB cable), after the simulator has been running for a while. The ADB service needs to be re-closed and restarted. Of course, restarting eclipse may solve the problem. But that's more troublesome. If you want to close the
computer files to the specified path of the device
Chestnut: adb push C: \ Users \ hp \ Pictures \ xxx.jpg/sdcard
6. adb pull
Sends the specified file on the device to the specified path on the computer.
Chestnut: adb pull/sdcard/xxx.jpg C: \ Users \ hp \ Pictures
6. adb get-product
Obtain the device ID.
want to execute only one shell command, you can use the following way: ADB Shell [command] For example, the ADB shell DMESG will print out debug information for the kernel. 5. Publishing ports You can set any port number as the request port for the host to the emulator or device. Such as: ADB forward tcp:5555 tcp:8000 6. Send files from the computer to the devic
preserving data and caching directories-ADB Bugreport-return all information from the device that should is included in a bug report.ADB bugreport All information about the output device, included in the bug report.-ADB backup [-f [-system|-nosystem] [-Write an archive of the device ' s data to If no-f option is suppl
ObjectiveWelcome everyone I share and recommend useful code Snippets ~ ~StatementWelcome reprint, but please keep the original source of the article:CSDN:http://www.csdn.netrainy season o mo away:http://blog.csdn.net/luckkofBody[Description]How to turn on and off the ADB authentication mechanism (Google adb secure)[Keyword]ADB secure, ro.adb.secure,
above log information and MyApp Debug and above log informationADB logcat activitymanager:i Myapp:d *:sBugreport relatedBugreport will print out information such as Dumpsys,dumpstate and LogcatADB bugreport ADB bugreport > Bugreport.txt store bugreport in TXT fileMemory relatedGet the ranking of all process use memory
series of associated Simulators/devices:ADB Devices
In response, ADB develops the corresponding status information for each instance:Serial number-a string created by ADB, which uniquely identifies a simulator/device instance through its own control port The following is an example of a serial number:Emulator-5554There are three instance connection statuses:Offline-this instance is not connected to
/sdcard/foo.txt
7.Search Simulator/Device instanceObtains the list of running Simulators/devices and the status of each instance, for example:
D: \ unsetup \ android-sdk-windows-1.0_r1 \ tools> ADB Devices
List of devices attached
Ht843gz03305 Device
8.ViewBugReport
D: \ unsetup \ android-sdk-windows-1.0_r1 \ tools> ADB bugreport
====================
Using this ocmmand with no additional arguments 'll disconnect from all connected TCP/IP devices.
Device Commands: adb push ADB pull adb sync [ ( -L means list but don ' t copy ("adb help All") adb shell-run remote shell interactively
execute only one shell command, you can use the following way: ADB Shell [command] For example, the ADB shell DMESG will print out debug information for the kernel. 5. Publishing ports You can set any port number as the request port for the host to the emulator or device. Such as: ADB forward tcp:5555 tcp:8000 6. Send files from the computer to the device
and the status of each instance, such as:D:\UNSETUP\ANDROID-SDK-WINDOWS-1.0_R1\TOOLS>ADB devicesList of devices attachedht843gz03305 Device8. View bug reportsD:\UNSETUP\ANDROID-SDK-WINDOWS-1.0_R1\TOOLS>ADB Bugreport========================================================= = Dumpstate========================================================------SYSTEM LOG------04
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.
About the ADB implementati
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.