Android ADB command

Source: Internet
Author: User

Recently, you can summarize some of the commonly used ADB commands and commands to access SQLite.

1. List all Android versions
Android list targets

2. List all AVD (simulator)
Android List AVD

3. Start DDMS
Ddms

4. Displays all the emulators currently running:
ADB devices

5. copy files to the phone
ADB push <windows source file path > < mobile target path >

6. export files from your phone
ADB Pull < Phone source file path > < system directory path >

7. Install the App
ADB install [-r] [-s] <apk file path >

-R Forced installation

-S mount to SDcard

8. Uninstall the App
ADB Uninstall < package name >
ADB uninstall–k < package name > plus-k parameter for uninstalling software but preserving configuration and caching files

9. Restart ADB
ADB kill-server
Abd Start-server

10. View ADB command Help information
ADB Help

11. View the log information on the command line
ADB logcat-s label Signature

12. Remove the System application:
ADB remount (re-mount the system partition so that the system partition is re-writable).
ADB shell
CD System/app
RM *.apk

13. Get Administrator Privileges
ADB root

14. Start Activity:
ADB shell am START-N package Name/package name + class name (-N class name,-a action,-d date,-m mime-type,-c category,-e Extended data, etc.).

15. Enter the shell mode of the simulator:
ADB shell

16. Accessing the database SQLite3
ADB shell
#ls
#cd xx/xx//Enter the specified folder
#sqlite3 xx.db//Enter XX database
Sqlite>.tables//List What tables XX databases have
Sqlite>.header On|off//Output If column name is displayed
Sqlite>select * from table name;
Sqlite>.separator ""//Set the delimiter between each column at output
Sqlite>.quit//Exit Sqlite3

17. Exit the Shell
#exit

Android ADB command

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.