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
the System application: ADB remount (re-mount the system partition so that the system partition is re-writable). ADB shell CD System/app RM *.apk 21. Get Administrator Privileges: ADB root 22. Start activity: ADB shell am START-N package Name/package name + class name (-N class name,-a action,-d date,-m mime-type,-c c
Label:
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 se
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
This article describes how to connect to Android's adbd over a network, especially a wireless network.Principle:ADB server: A service process on the computer with the process name adbADB daemon:android A service process on the phone, the process is named adbdADB client: You can think of a terminal window on your computer, and the process name is adbYour instructions are communicated between ADB server,serve
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
System application: ADB remount (re-mount the system partition so that the system partition is re-writable). ADB shell CD System/app RM *.apk 21. Get Administrator Privileges: ADB root 22. Start activity: ADB shell am START-N package Name/package name + class name (-N class name,-a action,-d date,-m mime-type,-c categ
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 your development. Of course. Android provides
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
mv (MV) temperature:213 indicates that the current battery temperature is 21.3 degrees, in units of 0.1 degrees. 213*0.1=21.3 degree Technology:li-poly says the battery is powered by a lithium battery adb shell dumpsys wifi command ADB shell Dumpsys WiFi is to view the current WiFi connection situation Wi-Fi is disabled: current WiFi is off (disabling-current wifi is off, enabled-current wifi is enabled,
writable ).
Adb shell
Cd system/app
Rm *. apk
21. Get administrator permissions:
Adb root
22. Start Activity:
Adb shell am start-n package name/package name + class name (-n class name,-a action,-d date,-m MIME-TYPE,-c category, -e ).
23. Release Port:
You can set any port number as the request port from the host to the simulator or device. For example:Adb forwa
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
I. Definition and function:ADB full name Android Debug Bridge, is to play the role of the Debug bridge. is a tool in the Android SDK that allows you to manipulate the Android emulator or the real andriod device directly, by default the ADB process will run automatically when we run eclipse. Of course, we can also use some of the commands that we have on the outside to manipulate the simulator or the real device. A
ADB supports two ways to connect to the Android system, USB mode and network mode. Normal phone and tablet are set to USB by default.The Android system has a service (ADBD) running on the bottom, which is used to connect and manage everyone's computer-side ADB commands.This service will listen to one of the USB connections or networks depending on the configuration of the phone at startup.The properties of
Configure the ADB command on your MacWhen you use the ADB command in Mac OS, you should configure the variables as follows:First, the terminal input CD ~Second, enter touch. Bash_profile returnTouch: If not, create a file, if any, update the file timeThird, input open-e. bash_profileOpen: Opening fileThe file will open in TextEdit after the carriage return (if the environment variable is not configured, it
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
example:ADB forward TCP: 5555 TCP: 8000
24. copy a file:
You can copy files to or from a device,Copy a file or directory to the device or simulator:ADB push Example: ADB push test.txt/tmp/test.txtCopy a file or directory from a device or simulator:ADB pull For example, ADB pull/addroid/lib/libwebcore. So.
25. Search for simulator/device instances:
Obtain the list of running Simulators/devices and th
if the command-line prompt is turned # ?Some phone root can not be adb root command to let adbd with root permission to execute, such as some models of Samsung, will be prompted adbd cannot run as root in production builds , you can install ADBD Insecure, and then adb root try.Accordingly, you can use the command if you want to restore adbd to non-root permissions adb
.
04-12 16:59:47. 671 D/showtrack (23968): myoverlay: darw .. mdefcaption = I'm here.
04-12 16:59:47. 681 D/showtrack (23968): myoverlay: darw .. mdefcaption = I'm here.
9.Record wireless communication logsIn general, there are a lot of wireless communication logs and there is no need to record them during operation, but we can still set the record through the command:
D: \ unsetup \ android-sdk-wind
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.