Common ADB shell commands and database query methods in Android

Source: Internet
Author: User

The Common commands of ADB shell in Android and the methods for viewing application database information under cmd are as follows:

CMD -- ADB shell: Enter the shell command interface of the simulator.

Ls displays all the file directories in the simulator. The data folder stores all the data in the mobile phone simulator. The sdcard directory is the mobile phone SD card directory.

CD/data enters the simulator data directory, and LS displays the folder information, including folders such as app and data. The app stores Android applications and data stores data.

CD/data enters the data directory, and LS displays the main package of all applications in the current Simulator

CD/mypackage enter the main package of an application. ls displays its directory, including Lib, database XX. dB (if any), and database information databases.

If you want to view the information in the database table by running the command, run CD to enter the databases folder, which contains all databases A. DB and B. DB in the current application.

Sqlite3 A. DB enters the SQLite database command line, where you can use SQL statements to add, delete, modify, and query Databases

. Tables: displays all tables in the current database

Execution sequence from top to bottom ~

Source

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.