Use of Android---adb (Android Debug Bridge)

Source: Internet
Author: User

Android---ADB (Android Debug Bridge) using a simple introduction to ADB:ADB full name Android Debug Bridge, Android debugging Bridges. Connecting the bridge is the connection between your computer and your phone, allowing you to run Linux commands on your computer to manage your phone, and also to load and unload software. Ii. Common directives of the ADB:ADB devices                  # List all the devices
    Reset adb                      # If you restart ADB. If the device fails to connect in the DDMS, it can be restarted to resolve
    ADB kill-server               # Kill ADB Debug Bridge
    ADB start-server            # start ADB Debug bridge
    ADB shell                       # If the computer has only one simulator or only one phone, then enter the shell of the device, you can execute the Linux command at this time
    ADB Shell [command]                  # Executing Linux commands, such as adb shell LS, is the list of all files under the connected device
    ADB bugreport                            # View Bug reports
    ADB install <apk file path >        # This command installs the specified APK file on the device
    ADB uninstall < software name >              # Uninstall Software
    ADB uninstall-k < software name >         # If you add the-K parameter to uninstall the software but retain the configuration and cache files
    ADB Push < Local path > < remote path >                  # Use the push command to copy files or folders on your computer to your device (mobile)
    ADB pull < Remote path > < local path >                   # Use the pull command to copy files or folders on your device (phone) to your local computer
Third, the ADB environment variable settings:in the past to use ADB, we need to go to the Platform-tools directory under the SDK directory, drag adb.exe to the Command window before you can enter the command. But this is very inconvenient, every time to use the ADB, all this is very troublesome, how to do?
Workaround: Configure the environment variables. Add the full path to the ADB directory in path so that we can use the ADB in any path
Iv. using the ADB to install the APK file into the emulator
    • Ready to install APK file
    • Copy the files to the Adt-bundle Sdk/platform-tools folder

    • Launch simulator
    • Install the APK file using the adb install apkname command

    • Viewing results in the emulator

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

Use of Android---adb (Android Debug Bridge)

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.