Workarounds for emulator/data directories in Android-android Studio cannot be displayed

Source: Internet
Author: User

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

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.