Eclipse connects Real Machine commissioning

Source: Internet
Author: User

First, the mobile phone to open the debug mode

Second, installation Adb.exe

  1, sure \android-sdk-windows\tools\ under the Adb.exe AdbWinApi.dll AdbWinUsbApi.dll three files, if not from \android-sdk-windows\platform- Copy below tools under Tools\

2, Windows words into the Android-sdk-windows\tools directory, such as the implementation of the installation of a bunch of English indicates the installation success

3, ADB devices command production to see if the device is displayed as

When using the ADB command, Android sometimes discovers that the state of the device is offline and is resolved as follows: Make sure that your device is in debug mode in the following ways.

method One: Perform #adb kill-server,#adb start-server, #adb devices to see if the device is still in the offline state, if so, try method two
Method Two: reboot the device, boot, execute: #adb devices If the device or offline , see method Three

Method Three: Restart your computer.

4, if the normal display: Run your program to select Mobile device can, for example, see if your phone is not running your debugging program

    






Three, the ADB Common Command Operation command

1. View device    ADB devices
This command is to view the currently connected device, the Android device connected to the computer, or the emulator will list the display

2. Installing the software adb install
ADB install <apk file path >: This command installs the specified APK file on the device
3. Uninstall software adb uninstall < software name > ADB uninstall-k < software name >
If you add the-K parameter, the software is uninstalled but the configuration and cache files are preserved.
4. Enter the shell of the device or simulator
The ADB shell can go into the shell environment of the device or emulator with the command above, and in this Linux shell you can execute a variety of Linux commands, and if you just want to execute a shell command, you can do the following:
ADB shell [command] such as: adb shell DMESG will print out the kernel debugging information.
5. Release port
You can set any port number as the request port for the host to the emulator or device. Such as:
ADB forward tcp:5555 tcp:8000
6, send files from the computer to the device
ADB Push < Local path > < remote path >
Use the push command to copy files or folders on your computer to your device (mobile)
7. Download files from the device to the computer
ADB pull < Remote path > < local path >
Use the pull command to copy files or folders on your device (phone) to your local computer
8. View Bug Reports
ADB bugreport
9. Record the wireless communication log
Generally speaking, the wireless communication log is very many, at run time not necessary to record, but we can still through the command, set the record:
ADB shell
Logcat-b Radio
10. Get the ID and serial number of the device
ADB get-product
ADB Get-serialno
ADB shell
Sqlite3

  

Eclipse connects Real Machine commissioning

Related Article

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.