ADB frequently used several commands (notes)

Source: Internet
Author: User

The prerequisite for the ADB command is to configure the Platform-tools path in the configuration environment variable or to switch to the Platform-tools directory of the SDK in the command-line program (CMD.EXE). I habitually direct the ADB command directly in the Android Studion de terminal window (I have configured the Platform-tools path to the environment variable).


1. Install the application

ADB install-r application. APK (this needs to include the path of the APK)

For example: ADB install-r e://test.apk

2. Push writes a file to the phone

ADB push <local> <remote>

ADB push D://test.apk/system/app

Note: This is to push the test.apk file under the D packing directory to the System/app directory of the phone, although some file paths may require root to push the file to the appropriate folder.

3. Pull to get files from a folder on your phone

ADB pull <remote> <local>

ADB Pull/system/app D:/file.txt

Transfer file.txt files from your phone's System/app folder to your computer's D-Packing directory

4. View system drive letter

ADB Shell DF

5. Output all installed applications

ADB shell PM List packages-f

6. Restart

ADB reboot

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.