Android Studio Solutions for the Data folder in the real-machine debug DDMS

Source: Internet
Author: User

Due to the development of the time to open to view the contents of the database, in Eclipse database files by default in the/data/data/application package name/databases/database name, and with Android Studio Open Ddms under Find when found clicking on the Data drop-down button did not react (as shown) and then looked for a long time to find that the permissions issue, you need to modify the permissions of the file:

The above is unmodified, you can see the Data folder read and write permissions only for users within the user group Open, not open to other users, so we only need to give read and write permissions to other users, the following steps are as follows:

1, enter the Android SDK installation directory, find Platform-tools Click to go in, press SHIFT and click the right mouse button to select the command line to open (as shown):

Click to eject the command box as shown:

2, enter the ADB shell enter, and then enter the SU carriage return into the root mode of access, as shown in:

3, enter Chmod-r 777/data/return. (-R is to do this for all folders under the directory, or you can not enter-R, direct chmod 777/data/is the same)

Go back to DDMS and you will find the Data folder open, you can read and write files, as shown in:

But found that the database outer layer of data can not be opened, continue to root, know the database folder/data/data/application package name/databases/database names can be opened (as shown):

Go back to DDMS and you'll find the/data/data/app package name/databases folder can be opened, as shown in:

Android Studio Solutions for the Data folder in the real-machine debug DDMS

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.