Tags: command Daquan IDE Class scree install folder USB adb push EnterHow to use the command:1, unzip the ADB package to the specified folder, including files include:adb.exe,adbwinapi.dll,adbwinusbapi.dll ; 2, open CMD (win+r) into the ADB path, start to execute the ADB com
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
is an odd number of 5555.If other Emulator is enabled, the other port group used is 5556,5557 until 5585.When the adb server is enabled, the connection to the simulator is established by finding the port between 5555-5585. After the connection is established, the adb commands can be used.
2. DDMS
When developing in Eclipse development tools, you can open the DDMS panel in the upper right corner. Debugging
status changes will be active to the connection to the client to send a new device list information (4 bytes 16 binary length + content). Doing so allows DDMS these tools to track the status of all connected devices in real time, without requiring the client to connect to the ADB server each time to obtain the corresponding information.Host:emulator:This is a special request that will be sent to the ADB se
Tags: Roi tool tle GUID title TOC statement USB apk In the Android development process, often need to see some information printing. Android test development (similar to Java's JUnit) is a good idea. But see Logcat is "kingly". Why do you say that? Let's say you've seen the Android source code and you should know that there are a lot of such statements like log**. So see Logcat will be more high-speed, direct to find the problem lies. To accelerate yo
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 tro
forward the user-entered instructions to the ADB server and wait for the ADBD or ADB server to answer.For many instructions, the ADB client sends instructions to the ADB server and ends, but for some instructions (such as ADB push Local_path remote_path),
devices will be able to send commands. However, if there is more than one device and no target device is specified, the command will be error-free because it does not know which device to send:
Figure 4-4-3 Sending a command to an error output without a specified device
ADB command-connects the target device via TCP.Sometimes you do not want to connect directly to your console via USB cable,
phones. It searches for an emulator or phone by scanning an odd number port between 5555-5585, and once the ADB daemon is discovered, it connects through this port. It is necessary to note that each simulator or phone uses a pair of ordered ports, an even number port for the console connection, an odd number port for the ADB connection, for example:
Emulator 1, console:5554
Emulator 1,
commands on the emulator or device. These commands are stored in the file system of the local emulator or device in 2 binary form:/system/bin/...Whether or not you fully enter the ADB remote shell of the simulator/device, you can shell command to execute the command.When not fully entering the remote shell, use the shell command to execute a command:adb [-d|-e|-s {When you do not use the remote shell side in the simulator/device, this uses the shell
Simulators2) install the software adb install and install the developed apk on your mobile phone. For example, adb install D: // aa.apk.3) uninstall the software adb uninstall 4) log on to the adb shellAdb shell
Add
Directly run the device command, which is equivalent to executing the remote command. For e
the development machine (local) and the simulator/device instance (remote) respectively.
The following is an example ::
adb push foo.txt /sdcard/foo.txt
Adb command list
The following table lists all commands supported by adb and describes their meanings and usage.
Category
Command
Description
Comments
Options
-d
Manage Abd only
and mobile phones). The output format is [serialNumber] [state].Adb get-state to view the current status of the simulator/facility.Note:Serial number [serialNumber] -- a string created by adb, which uses its own control port Uniquely identifies a simulator/device instance. Example of a serial number: emulator-5554----------- Send command to device series -----------Adb
by ADB and describes their meanings and usage.
Category
Command
Description
Comments
Options
-d
Manage Abd only through USB interface.
An error is returned if it is not just managed using a USB interface.
-e
The ADB is managed only through the simulator instance.
If i
emulator or device, use (command below)ADB push In these commands, and respectively, the path to the destination file/directory on your own development machine (local) and simulator/device instance (remote)Here's an example:ADB push Foo.txt/sdcard/foo.txtADB command ListThe following table lists all the commands supported by ADB and describes their meanings and how they are used.
Category
Step: Two Steps
One, USB connection:
The steps for using the MTP device in Ubuntu Mount are as follows:
1. Connect the MTP device to the PC
2. If you are using the MTP device for the first time, you can skip this step if you need to install the following software:
Copy Code code as follows:
$ sudo apt-get install MTPFS libfuse-dev Libmad0-dev
3. Mount MTP Equipment
Copy Code code as follows:
$ sudo mtpfs-
phone restart or directly unable to boot. Do not brush the machine solution.Start cmd and chase to the ADB directory.Enter the following command (shown in parentheses, not for none or unknown) (note case)ADB shell (should show shell# @android/or similar)ADB remount (should show remount succeed)adb shell chmod #权限代码 #/
emulator or device, use (command below)ADB push In these commands, and respectively, the path to the destination file/directory on your own development machine (local) and simulator/device instance (remote)Here's an example:ADB push Foo.txt/sdcard/foo.txtADB command ListThe following table lists all the commands supported by ADB and describes their meanings and how they are used.
Category
to copy files to a data file in an emulator/device instance, or from a data file. The install command copies only a. apk file to a specific location, and unlike the pull and push commands, you can copy any directory and file to any location of an emulator/device instance.To copy a file or directory from an emulator or device, using (The following life):ADB pull Copy a file or directory to an emulator or device, using (the following command)
, use the following (life):ADB pull To copy a file or directory to an emulator or device, use (command below)ADB push In these commands, and respectively, the path to the destination file/directory on your own development machine (local) and simulator/device instance (remote)Here's an example:ADB push Foo.txt/sdcard/foo.txtADB command ListThe following table lists all the commands supported by
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.