Introduction to the Android simulator adb command

Source: Internet
Author: User
Tags linux shell commands tmp folder

Contains important commands for Android emulator operations under the Tools folder of the SDK Adb,adb is all called Android Debug Bridge, which is the role of debug bridges
  • An important command that contains the Android emulator operation under the Tools folder of the SDK Adb,adb is all called Android Debug Bridge, which is the role of debug bridges. With ADB we can debug the Android program via DDMS in Eclipse, which is the Debug tool.

    ADB's way of working is a special use to listen to socket TCP 5554 and other ports to the IDE and QEMU communication, by default ADB will daemon the relevant network port, so when we run eclipse, the ADB process will run automatically.

    1. The ADB can easily execute Linux shell commands, such as the adb Shell dir is the listing directory, the root directory in Linux/instead of Windows C, D disk.

    2. Install the APK program to the emulator to execute the ADB install android123.apk, so that the installation package named Android123 will be installed in the Android emulator, provided that the android123.apk file needs to be placed in the Sdk\ Tools directory.

    3. Transfer files to emulator, use the ADB push android123.txt/tmp/android123.txt command to transfer the Android123.txt file under Sdk\tools to the/tmp/folder of the simulator, It is important to note that the contents of the/tmp/folder are emptied when the Android emulator restarts. In addition to explaining the use of DDMS in the ADT plug-in,

    4. Returning files from the Android emulator to your computer

    Through the ADB pull/tmp/android123.txt android123.txt command will be the emulator's TMP folder under the Android123.txt file back to the computer Sdk\tools directory.

    Android adb command In addition to the easy installation of apk files, PC and Android simulator for data transfer, there are some auxiliary features of Android Debug Bridge.

    1. If there are * Daemon not running found in eclipse. Starting it now * tips to end adb

    ADB kill-server

    2. Show Android Emulator status

    ADB devices port number and other information, after execution will display TCP port number ADB get-product acquisition device model ADB Get-serialno get serial number

    3. Wait for the device that is running

    ADB wait-for-device

    4. Port forwarding

    ADB forward adb forward tcp:5555 tcp:1234 for forwarding the default TCP 5555 port to port 1234

    5. View Bug reports

    ADB bugreport

Introduction to the Android simulator adb command

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.