Use of the ADB shell

Source: Internet
Author: User

In the Android real-mode database SQLite, the ADB shell is used to view the database, but may encounter insufficient permissions,

You can type the SU carriage return permission in the console from $ to # to get root permissions, provided that the phone opens the root permission statement,

ADB shell enters the phone,

Cd/data/data into the path,

CD ********** (your project package name,)/databases into the database

Type LS to view the database file, a. db file, a. db-journal file,

Type the SQLITE3 database name to open the database

. table queries How many tables are in the database

You can then enter an SQL statement to manipulate the table

Finally, exit or. Quit Edit the database

However, some phones do not support, unable to read the database, we recommend the use of virtual machines,

Use of the ADB shell

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.