Android advanced adb command, android advanced adb
Use the command line to execute the android adb command. The steps are as follows:
1. Find adb in the ADT sdk, as shown below:
2. Run cmd to start the command line and drag the adb executable file into the command line
Android adb Usage Details, androidadb
This article mainly introduces how to use adb in a windows program. It does not introduce adb commands.
1) Start the adb process and obtain the output from the pipeline.
I don't know the disadvantages of this method. It is a variety of problems. However, I have asked a lot of frien
debugging mode, connect the USB mode first:$ adb tcpip 5555
3.2 adb shell AMAM is activity Manager.This command is used to perform some system actions, such as starting a specified activity, ending a process, sending a broadcast, changing screen properties, and so on. Debugging tool.
instruction
Description
Notes
start
to start activity according
example is as follows:ADB wait-for-device Shell GetpropIt is necessary to note that these commands do not start the ADB until all the systems start up, so no other commands can be executed until all the systems start up, for example, when the install is used, the Android package needs to be fully booted, for example:ADB wait-for-device Install The above command is only connected to the emulator/device connection on which the
I have summarized the problems and methods that are often difficult to solve in Android. Through exploration, it is generally a newly installedProgramThe ADB port is used for the moment. Services will be started when the new version of peas are clipped to the background, leading to the failure of ADB to start normally.
1. Error:Build failedD: \ workspace \ Ganji \ build. xml: 144: the following error o
Brief introductionTo do Android-related work will basically use the ADB, a brief introduction of the ADB pull and adb pushExport files from your phoneADB pull Import files to your phoneADB push At the command-line invocation, you first want to cut into the ADB directory, and then you can directly invoke the
Label:When we use Android Studio, there are times when the ADB fails to open or starts.ADB startup failure Reason: There are other programs that occupy the ADB default boot port number (like I have encountered, every time as long as the early start of the cool dog music, ADB will start failure ~ This is to let us concentrate on writing code, do not listen to the
is, the lit state is false, which is the black screen State other features adb shell Dumpsys activity------- --------View Actvitymanagerservice All information adb shell Dumpsys activity Activities----------View activity component information adb shell Dumpsys Activity Services-----------View service component informa
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 client, running on PC (for DDMS, that is, IDE)
2) adb daemon (daemon
Several commonly used adb commands, commonly used adb commands
The entire process of adb is Android Debug Bridge, which literally means Android debugging Bridge. Is a set provided by the android system.
Tools Help us recommend a channel to connect to the android device, and then send some instructions on the computer to complete the work.
The Options settings-
Steps
Open 运行 and enter cmd the command line or shortcut key windows+r , then enter cmd
Enter your sdk installation directory, as mine is C:\FeatherTools\Android\sdk , and go to the directory whereplatform-tools
Input adb kill-server , killadb
Input adb start-server , appears to successful indicate success
C:\FEATHERTOOLS\ANDROID\SDK\PLATFORM-TOOLS>
ADB is not connected to a virtual machine, even if the adb kill-server command is executed?If your error message is that ADB server didn ' t ack this way, the 5037 port is occupied.Just find the process that occupies the port and kill it.The following are the specific practices:Address below: http://104zz.iteye.com/blog/1681183The following conditions occurADB se
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 cmd command and enter the CD D:\Android\sdk\pla
1. Use ADB to get application information, version information of an APK in the phone, adb shell Dumpsys package com.sy.a2682. List all adb shell Dumpsys 3. Launch apk adb shell am star with ADB T-n Com.sy.a268/com.sy.a268.mainactivity4. Randomly generates an event to an app
1. The ADB (Android Debug bridge) means Android Debug bridge.is a command-line tool in Android that can communicate with Android devices or emulators.ADB is a C/S architecture application, consisting of three parts:1) ADB client, running on PC (for DDMS, IDE work)2) adb daemon (daemon), running on emulator (for interacting with VMS in emulator);3)
Tags: android adbADB server port Open cmd Run ADB Nodaemon server first to see what the ADB server port is
C:\Users\xxxx>adbnodaemonserver cannotbind‘tcp:5037‘
Then execute the next Netstat-ano | Findstr "5037"
C:\Users\xxxxxx>netstat-ano|findstr"5037"tcp127.0.0.1:50370.0.0.0:0LISTENING4236 tcp127.0.0.1:5037127.0.
, connect the device through USB;
The PC will prompt you to find the new hardware, and the driver is being installed. Wait until the driver is successfully installed on the PC.
Then there will be a new AndroidPhone in the Device Manager.
The following figure shows the status of the Device Manager after the driver is installed.
View device Properties
You can view the VID of a device here.
3. Modify adb_usb.ini
End the adb process in the task
phone.
You can view the specific commands of the mobile phone system as follows:
Getprop: view all information about the machine. getprop ro. serialno: view the machine's SN getprop ro. carrier: Check the CID of the machine. getprop ro. view the machine Board Sub-code getprop ro in hardware. view the SPL (Hboot) version number of bootloader5. Release Port
You can set any port number as the request port from the host to the simulator device. For example:
a
ADB (Android Debug Bridge) is a tool in the Android SDK that needs to be configured with environment variables before it can be used. The role of the Debug bridge, you can manage the Android device. (also called Debug tool)---------View Device Connection status-----------adb get-serialno get the ID and serial number of the device ADB devices queries the devices c
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.