command
Perform
ADB shell
Access to the Android operating system command-line mode, so you can manage and query the Android operating system directory and execute related commands.
Because the Android operating system is one of the Linux operating systems, the shell commands are the same as the Linux operating system, such as the LS command displays the file directory, the CD command changes the file directory, the mkdir command creates the direc
and precedence. You can modify the output format of the log so that a specific metadata field can be displayed. Information about the formatted output log can be obtained through the-v option.Brief-display Priority/tag and PID of originating process (the default format).Process-display PID only.Tag-display the Priority/tag only.Thread-display Process:thread and Priority/tag only.Raw-display the raw log message with and no other metadata fields.Time-display the date, invocation time, Priority/ta
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
the simulator/device to send commands to manage the adb (for example, "emulator-5556 ").
If no number is specified, an error is returned.
General
devices
View the list of all devices connected to simulators/devices.
View Querying for Emulator/Device Instances for more information.
help
View All commands supported by adb ..
version
View the version serial num
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
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
command installs the specified APK file on the device. Uninstall software * ADB uninstallSoftware name>* adb uninstall-kSoftware name>If you add the-K parameter, the software is uninstalled but the configuration and cache files are preserved. Login Device Shell * adb shell This command will log into the device's shell. * adb
-supported commands
Version
Version number of the output adb
Debug items
Logcat [
Output log information on the screen
Bugreport
To report a bug, output dumpsys,dumpstate and logcat data on the screen
Jdwp
Output valid JDWP process information
You can use the forward jdwp:ADB forward tcp:8000 jdwp:4
This question is a long story, is a lot of stories, in a month black night, under the direction of the leadership, the individual in the company's development of a computer for a, then feel very depressed, with a handy computer suddenly changed, opened a new computer, found already configured the JDK environment, installed good eclipse, suddenly feel good happiness , eliminating unnecessary trouble, so import project projects, into the project development. It was a pleasant thing, but suddenly e
The difference between the use of ADB push and adb install in Android is reproducedThis article is submitted by Yingchun Shi (@ three vulgar little Women). Reprint please specify the original address.In the actual development of Android, the ADB command is often used, and the installation application can use ADB push o
Tags: android using SP for file on problem BS ADLinuxUnder Ubuntu system, ADB is not an internal commandWorkaround:1, sudo gedit~/.bashrc2. Add the following two sentences to the file opened aboveExport android_home=/home/jason/develop_sdk/android-sdk-linux_86Export path= $PATH: $ANDROID _home/toolsThe latest SDK should be changed to: $PATH: $ANDROID _homoe/platform-toolsNote: "/home/jason/develop_sdk/android-sdk-linux_86" is the path to the SDK.(Expo
report:
adb bugreport
27, record wireless communication log:
in general, the wireless communication log is very much, not necessary to record at run time, but we can still through the command, set records: ADB shell logcat-b Radio
28, get the ID and serial number of the device:
ADB get-product
Tags: parameter cache folder replication Reader UI Test SDK UIL PortMobile test how can not understand the ADB command, the use of ADB command can improve efficiency * View Device ADB devices * Check if the phone is rooted ADB root * Check the package name on the device adb
Linux under the ADB drive problemLinux under the use of mobile phone USB debugging mode to connect ADB to the Android program debugging, configuration driver without windows to intuitive.The first step is to confirm that the phone is connected to the computer, LSUSB check the device record.[Email protected]:~$ LsusbBus 007 Device 009:id 18d1:4e12Bus 007 Device 001:id 1d6b:0002 Linux Foundation 2.0 root HubB
Tags: adb server didnt ack cannot bind tcp5037 failed to start DaemWhen we use several different sources of ADB in the system, it is particularly easy to come up with the error described in the title:ADB server is an out of date. The reason for this error is that the port that our ADB is bound to is occupied by other services, or that there are multiple services
Configure adb environment variables and adb Environment Variables
Reprinted please indicate the source: http://www.cnblogs.com/cnwutianhao/p/6557571.html
Android Developers often use the adb command to push, pull, install, and view databases. Record the adb configuration process for future use.
Before configuring
Connect adb with wifi and adb with wifi
Generally, USB is used to connect a computer to an Android device. However, wifi can also be used to connect to an Android device through a standard TCP/IP connection.
Step 1: Set --- WiFi --- advanced to view the IP address of the current WiFi;
Run the following command:
Complete.
Wifi key display adb cannot c
Tags: android test automation adb
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 i
Android adb and Android adb
Reference: http://blog.csdn.net/veryitman/article/details/6437090
1.Go to shell
Enter DeviceShellAdb shell
2. Install apk
Adb install
3. Copy files from the device to the Local Computer
Adb pull
For example, adb pull/sdcard/360/test.txt d: \ m
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.