Some common commands of the ADB

Source: Internet
Author: User
Tags memory usage

If you want to use ADB directly in the DOS interface, you need to add tools and Platform-tools in the ANROIDSDK installation directory and add it to the environment variable path.

View current devices (including real machines and emulators): ADB devices

Start/close adb service: adb start-server and ADB kill-server

Installer (when there is only one device): adb install **.apk

Written in the program (only one device): adb uninstall Com.*.* (package name)

Start logcat:adb logcat/adb logcat>< file path >

Restart device: ADB reboot


Uploading files to the device: ADB push <pc-side file path > < mobile-side file path >

Download file to PC: ADB pull < Mobile end file path > <pc side file path >


Select a device to execute the command:

D: Real machine e: simulator S: Serial number

ADB [-d|-e|-s < serial number;] <command>

Enter Shell interface: adb shell


Shell operations (as with the Linux shell command):

PS: View the current process status (sometimes using this to get the PID of the application name we know)

ls: List of files in the presentation directory

DF: Disk Management Directory

Top: View current Resource Usage

Kill: End Process or application

Dumpstate: System Resource Information

Procrank: Memory usage monitoring

Dumpsys: System Resource Information

Some common commands of the 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.