When we opened Android device Monitor in Android Studio, we found that the data directory could not be opened,
When we went to click on the/data/directory and found nothing, what was the matter?
The reason is that we have insufficient permissions and the current user does not have permission to access the data directory.
1. Change the permissions of the/data directory
(1). In the SDK directory of Android Studio, locate the Platform-tools directory, and in this directory, hold down SHIFT and right mouse button and select the Command window to open
(2). Enter the adb shell command, and then enter Su, which allows the user to switch to root
(3). Then change the permissions of the/data/directory to 777 (which means anyone can access and modify it)
(4). We are refreshing the Android device monitor and finding that the data directory can be opened
You can also open the/data/data/< corresponding package name >/folder
2. Change the permissions of the simulator
After the above operation, we found that although we can successfully open the/data/data/< corresponding package name, but we also found that the inside of the file can not be exported to the local, as well as prompt US permission to deny
So we will change the permissions of the simulator.
1. Open the Platform-tools directory in the Command window and enter the ADB root
(2). In the input adb remount, if the display remount successed indicates that the operation was successful
At this point, the export file does not show permission denied.
Workarounds for emulator/data directories in Android-android Studio cannot be displayed