Android ADB Common Commands

Source: Internet
Author: User

1. ADB helps obtain

Command: Adb–help

Description: After executing this command, you can view all the commands supported by ADB.

2. App security loading and unloading

The command details are as follows, and the following will explain your usual scenes.

2.1 Installing an APK

Command: ADB install package

Description: Package refers to the APK bundle file to be installed.

2.2 Overlay Install an APK

Command: ADB install–r package

Description: Package refers to the APK bundle file to be installed.

2.3 Uninstalling an APK

Command: ADB uninstall PackageName

Description: PackageName refers to the package name of the app that needs to be uninstalled.

-K: Represents the Save data and cache folder.

3. File transfer

The command details are as follows, and the following will explain your usual scenes.

3.1 Local file transfer to Android device

The fact is that the files on the computer are copied to the Android device, the file here also includes folders.

Command: ADB push Localfilepath RemotePath

Description: Localfilepath is the absolute path of the file that the computer is going to transfer to the Android device. RemotePath refers to the location of the path on the Android device where the file will be stored.

3.2 Files on your Android device to your local computer

Command: ADB [-a] remotefilepath LocalPath

Note: A: This parameter is based on the actual situation, can be added without adding. Refers to saving file timestamps and patterns. Remotefilepath refers to the absolute path of files on an Android device. LocalPath refers to the location where the local computer will be saved.

4. View Current Activity

Command: adb shell Dumpsys Activity Top | Find "ACTIVITY"

Description: View the activity that is currently being displayed.

5.ADB command launches specified activity

Command: ADB shell am start com.android.dialer/. Dialtactsactivity

Note: This command can start the corresponding activity directly.

Android ADB Common Commands

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.