Issues related to the use of Windows under ADB

Source: Internet
Author: User

Issues related to the use of Windows under ADB

Applicable environment:

Under the Windows xp,win7 can be done under this article, WIN8 did not experiment, but the operation settings are approximately the same, in addition to the 4th step, the location of Adb_usb.ini may be different, the other parts can be described in the article to operate.

The following issues should be noted for normal use of ADB under Windows:


1. Mobile phone to open debug mode

In Settings, open the developer options and turn on the USB debugging options




2. PC-mounted device driver


USB drivers for each device may vary, taking Spreadtrum for example.

Disconnect the device from the PC before installing the drive.

Spreadtrum USB drive androidsci-android-usb-driver-jungo-v4.zip, after decompression, there is a detailed driver installation instructions, distinguish between the first or The system, according to different systems to choose the appropriate driver, to install.

Mobile device side will also have the following tips,



after the program is installed, USB linked devices;

PC The end will prompt to find new hardware, is installing the driver, waiting for PC The end-installation drive is successful.

then, in Device Manager, there will be a new Android Phone

The following diagrams drive the status in Device Manager after a normal installation

Viewing device properties




You can view your device here VID Information


3. Modify adb_usb.ini

End the ADB process in Task Manager, or execute the ADB kill-server in the command-line window, and then make the following modifications to exclude its possible effects.

Locate or create a new adb_ under the directory that the simulator stores < For example: C:\Documents and settings\administrator\.android> Usb.ini file, while adding or writing the above device 0xVID (vid is the number followed by the above vid_, for example: 0x1782 (Spreadtrum USB device vid)


4. Restart the ADB service

If the ADB command tool path has been added to the environment variable of the system, you can do the following directly in the Open Command Line window, if the ADB command tool path is not added to the environment variable of the system, after opening the command line window, you can switch to the Platform-tools directory of the directory where the ADK is located ( The directory where the ADK's ADB command tool resides).

Then execute ADB devices in the Command line window

At this point, the ADB will be able to link the device normally


5. common commands for ADB

Adbkill-server #停止adb服务进程

Adbstart-server #打开adb Service Process

Adbdevices #显示链接到的设备

Adbshell #进入设备的shell模式

Adbversion #查看adb版本


6. Frequently asked questions

The common problem is not to find the device, the specific phenomenon is as follows

C:\USERS\CC>ADB deviceslist of Devices attachedc:\users\cc>adb devices* daemon not running. Starting it now on port 5037 * * Daemon started successfully *list of devices attached


There may be many reasons why the device cannot be found, except that the phone device side debug entry is not open, and almost all other reasons are PC the end of the environment configuration problems caused by the general can be as follows the idea of one-off experiment until resolved.

-------------------------------------------------


confirm this document individually 1~4 These four operations are completed

in General, this four-step operation is completed, the device can be connected, if not linked, in principle, please continue to check and operate the following

1. Turn off Some mobile phone software on your PC (similar to pea pods, phone assistants, etc.)

2. shutting down some of the ADB in the process may be other names, such as tadb , that encapsulate the adb functionality.

3. guaranteed only one android device

4. Disconnect the device and restart the ADB service

5. USB connection device, can find device

If you can't find your device yet, restart your computer and recheck the steps above.


----------------------------------

Welcome to browse and technical ExchangePlease respect the fruits of laborReprint Please indicate the source, thank you! http://blog.csdn.net/netwalk/article/details/38069383

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.