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