Android Rookie Learning Note 2----about ADB

Source: Internet
Author: User

Adb:android Debug Bridge Android Debug

Path: Adt-bundle directory/sdk/platform-tools/adb.exe

Common ADB commands:

ADB devices list of all launched emulators

ADB Start-server launches ADB service

ADB kill-server stop ADB service

After the ADB shell can execute the Linux shell command

adb [–s emulator name] install application. APK with multiple emulators at run time, you must use-s to specify which emulator to install on

ADB Uninstall application Complete package name

ADB pull phone/emulator file system path local computer path to export files from the emulator or phone to your local computer

such as: ADB pull/data/data/cn.csc.demo/test.xml e:/tmp

ADB push Local computer path phone/emulator file system path for pushing local files to the phone or simulator

CTRL + F11 To switch between the simulator and the screen

In addition, Adt-bundle directory/sdk/tools/android.bat also has several common commands

Android list: Used to list all installed Android versions and emulators

Android List AVD: List all emulators without the need to start the emulator

Android list target: List all installed Android platform

To run adb,android commands, there are several ways to do this:

1) Winkey + ràcmd: Switch to ADB or android.bat in the command line, enter ADB or Android related commands to run

2) in the Explorer into the ADB or android.bat directory, hold down the SHIFT key, and then press the right mouse button in the blank, select "Open Command Window Here" in the popup menu, then enter the ADB or Android related commands in the Open command window

3) Add the path of Adb.exe and Android.bat to the system environment variable path, and after you open cmd, you can run the relevant command under any path.

Of course, these commands are graphically structured in eclipse and are relatively simple

About ADB a wrong resolution process:

Error Description:

ADB connection error: The remote host forced the shutdown of an existing connection

Every time you try to re-union 11 times, the error occurs in a loop

Resolution process:

First, the Internet to search for other people's solutions, according to other people's plans to do, did not solve the problem. But I understand the general cause of the problem.

There are roughly two types of summaries: 1) Adb.exe processes in other applications conflict with ADT's adb.exe process

2) Adb.exe its own bug, said that the maximum number of mobile phone running process is 64 limit

View emulator process, not up to 64, so my computer's problems should belong to the first reason

However, there was no pea pod or anything, and no other ADB process was found in the process list.

So, in the C disk to find files named Adb.exe file, found Alibaba, Lu Master, adsafe (shielded web ads, pop windows, online video ads artifact) have adb.exe files

Since only Adsafe is currently running, it should be its adb.exe conflict with ADT's ADB. After closing the Adsafe, the error did not appear again.

Android Rookie Learning Note 2----about ADB

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.