Preface: Just started to learn Android (adhere to 1 notes a day ^_^), more practical command is the ADB, so the first to learn these, mainly with the real machine debugging, simulator is genymotion, so emulator temporarily not need ha, can follow up1. View simulator/Connection device:By default, all ADB clients communicate with the ADB service using a 5037 port n
Song ZhihuiAndroid Debug brideg (ADB) is a multi-purpose command-line tool. You can communicate with an Android virtual machine or connect to a real machine. It also provides access to advanced command-line operations on the device shell. It is a client-server program that contains the following three parts:
A client that runs on your development device. You can invoke a client from the shell with the ADB
Some ADB commands are often used in my work. Today I have summarized some common commands of Android ADB, hoping to help you a bit:
1. Install the APK package: Tools> ADB install xxx.apk enter
2. Uninstall the APK package: Tools> ADB uninstall com.cn. Android [package name]
3. 1. View logcat information: Tools>
Reprinted please indicate the source: http://blog.csdn.net/xiaanming/article/details/9401981
ADB server didn't ack can be annoying to many new friends. I used to have this problem when I first started Android, but I am Baidu or Google, I don't know how to solve this problem. Many new friends in the group will ask this question. To be honest, I don't have the ultimate solution to this problem (the best way to solve this problem, haha ), I did not take
I have summarized some ADB commands. If any omission exists, I hope the people passing by will make up the information. Thank you ~
1.Android SDK deployment and Configuration
Put the androidsdk folder directly in a drive letter
2.Add ADB environment variable
Add path values to the path where the worker is located, such as D: \ androidsdk \ platform-tools, D: \ androidsdk \ tools (or directly put the two E
ADB outputs the following status information for each device:
L serial number (serialnumber)-a string created by ADB that uniquely identifies a simulator or mobile phone device using the Console port number. The format isEmulator-5554
L state-connection status. The value is:
N offline-not connected or not responding
N device-already connected to the service provider. Note that this status does not indicate
After debugging multiple mobile phones in the company, two mobile phones are connected to the computer through USB at the same time for comparison. Suddenly I found that the serial numbers of the two mobile phones were identical when I used the ADB devices command. Because this is the same machine in the company .... This makes it impossible to connect at the same time.
Apuser @ yaochuanliubt :~ /Mywork/4.1-3.4/kernel/ARCH/ARM/configs $
The tools folder of the SDK contains the android operation's Important Command ADB. The ADB is called (Android debug bridge is the function of debugging bridge. Through ADB, We can debug the android program through ddms in eclipse. To put it bluntly, the debug tool is a major feature of Android, which is very convenient for developers.
Then, we need to know that
The ADB tool is a tool for connecting Android phones, easy to use, development and testing are often used in everyday work, and today I'll take a record of what I'm using.1, equipment environment preparation, one PC, Android phone, using the Xiaomi mobile phone. USB data cable, pay attention to the quality of the data line, almost the quality of the data line is sometimes not connected, network environment is wifi, download
The ADB tool is a tool for connecting Android phones, easy to use, development and testing are often used in everyday work, and today I'll take a record of what I'm using.1, equipment environment preparation, one PC, Android phone, using the Xiaomi mobile phone. USB data cable, pay attention to the quality of the data line, almost the quality of the data line is sometimes not connected, network environment is wifi, download
Tags: public key Check HTTP achievement strong computer font on ACKUnanthorized issues when using adbADB devices a unanthorized issue when ADB starts up.
Check if USB debugging is turned on.
Reseat the USB cable for an authorization prompt
Restart adb:adb kill-server and adb start-server
If none of the above methods are possible, use the following steps
Delete Adbkey and adbke
Encountered a problem description:Run the Android console output[2012-07-18 16:18:26-] The connection to ADB are down, and a severe error has occured.[2012-07-18 16:18:26-] You must restart ADB and Eclipse.[2012-07-18 16:18:26-] Please ensure this adb is correctly located at ' D:\java\sdk\platform-tools\adb.exe ' and can be executed.Solve the problem:Baidu Google
Tags: des android io ar os sp for strong filewhat is ADB?: ADB's all called Android Debug Bridge, is the role of the Debug bridge. With ADB we can debug the Android program via DDMS in Eclipse, which is the Debug tool. ADB has a special way of working, using ports such as the socket TCP 5554 to communicate with the IDE and QEMU, by default
1. Uninstall the installation package
Adb uninstall package
To retain the package data and cache directory, You need:
Adb uninstall-k package
2. Installation package
Adb install package
Of course, this package should be under the directory of adb
3. Last filename to sdcard
Recently, due to the large number of built-in partners, many Android mobile phones of many manufacturers in my Ubuntu system cannot be correctly identified. After some hard work, I checked the SDK, now we have sorted out the ADB driver configuration methods in Linux and solutions to the problems encountered in them and contributed them to you.
In Linux, you can connect to ADB in Mobile USB debugging mode fo
ADB shell commandTo put it simply, the ADB command is a command that comes with the ADB program, while the ADB shell is a command from the Android system that is called, and these commands are placed in the System/bin directory of the Android device, as in the command line. Command:[Email protected]:/#
The prerequisite for the ADB command is to configure the Platform-tools path in the configuration environment variable or to switch to the Platform-tools directory of the SDK in the command-line program (CMD.EXE). I habitually direct the ADB command directly in the Android Studion de terminal window (I have configured the Platform-tools path to the environment variable).
1. Install the application
Label:
Android4.2 Source Android-17\com\android\commands Directory is more than the previous version of a settings command to view the Settingscmd.java file, at the end of the command to help information:private static void Printusage () {System.err.println ("usage:settings [--user NUM] Get namespace key");SYSTEM.ERR.PRINTLN ("Settings [--user NUM] put namespace key value");System.err.println ("\ n ' namespace ' is one of {system, secure, global}, case-insensitive");System.err.print
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.