A list of common commands and applications used by the ADB in Android

Source: Internet
Author: User

This paper mainly introduces the commonly used commands and common directory of the ADB .
1. Common command of ADB
The ADB devices lists all connected Android devices.
The following command is for a single devices, if there are multiple devices, the following command will need to change ADB to Adb-s deviceId

The ADB shell enters the devices command line mode and goes to command line mode, which is the Linux command line.
ADB shell command enters devices command-line mode and runs command
ADB shell am start-n <package>/<package>.<activity>adb Command launcher
ADB shell am start-d-N <package>/<package>.<activity>adb command startup program debug mode

ADB push <local> <remote> transfer local files to device, such as install system APK, ADB push a.apk/system/app/
ADB pull <remote> <local> pulls files on device to local, such as copying a system application to D-disk, adb pull/system/app/a.apk d:\\

ADB install local Installation application
ADB uninstall <-k> package Uninstall app,-K for preserving app data and caching

ADB start-server start adb service, if it has been started, do not repeat boot
ADB kill-server stop ADB service

ADB remount mount devices with write access to devices
ADB reboot Restart device
ADB reboot-recovery Restart in brush mode
ADB root runs as root

2, Application of common directory
/data/data/package_name/Application Data directory, including cache, databases, LIB, shared_prefs, respectively, storage cache, database, LIB, sharedpreferences data
/data/system/dropbox Storage System FC, application FC, Application ANR, System boot log, log backup and so on. such as: [email protected] Indicates a point in time the ANR log, [email protected] for a point in time FC log.

You can use ADB pull to copy data locally,
ADB pull/data/data/cn.trinea.android.demo/databases/androiddemo d:\\ means copy database to D drive
ADB Pull/data/system/dropbox/d:\\systemnotes says that if a log is copied to the D drive

Related Blogs:
Android sqlite Command http://www.cnblogs.com/trinea/archive/2012/11/16/2773656.html
Devicemonitor Adb Connection Error: The remote host forced the shutdown of an existing connection workaround http://trinea.iteye.com/blog/1497145
Android AVD Manager does not recognize the real machine, adb driver resolves http://trinea.iteye.com/blog/1180522

The most common commands and applications of the ADB in Android

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.