Android common ADB commands

Source: Internet
Author: User

1. Enter the phone command line mode

ADB shell

With multiple phones.

ADB- s + phone number + shell

2. Install APK

ADB install and then drag the apk file into the command line

Uninstall APK

ADB Uninstall + package name

3. Enter Root permission

ADB shell

Su

4. Kill the server

ADB kill-server

5. Tune Up server

ADB devices

Or

ADB start-server

6. ADB push command (write file to phone or read phone file)

Demo:adb pushd:\test.apk/system/app/Writing files

adb Push/system/app d:\ Read File

Note: ADB push is not an installation command, it is to copy a file to the directory specified by the phone, as long as there is sufficient permissions, you can copy the files to any directory, even in the/system/app/directory, as a system user program

7. Deleting apps

ADB remount//re-hangs the system partition to make the system partition writable

ADB shell

CD System/app

RM *.apk

8. Output all installed applications

ADB shell PM List packages-f

9. Analog Key input

ADB shell input keyevent +keyevent corresponds to the code

10. Recording Screen

ADB Shell Screenrecord/sdcard/demo.mp4

11. Start an activity

ADB shell am START-N package Name/package name + class name

12. Restart

ADB reboot

Http://www.cnblogs.com/wansho/p/5104336.html

Android common ADB commands

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.