Share via


Android Device Monitor File Explorer - cannot open folder

Question

Monday, July 30, 2018 11:04 AM

I want to check the files I have been using in my application so I open the Android Device Monitor in Visual Studio 2017, but I cannot open the data folder;

How do I fix this?

All replies (11)

Tuesday, July 31, 2018 10:00 AM

@GeoffreyPayne

The data need root access. Do you have root access of your device?


Tuesday, July 31, 2018 11:13 AM

I am using an emulator. I have simply downloaded it without consideration for permissions. So if by default I do not have access then that explains it. How do I change the permissions? I found a work around with is is use Android Studio.


Wednesday, August 1, 2018 2:25 AM

@GeoffreyPayne

You could root your emulator with adb command.
Click the Adb Command Prompt button. In the Command Prompt, using adb root command to root your emulator. If you get the root access, the $ will become #.

You could refer to follow link for more infomation: https://stackoverflow.com/questions/5095234/how-to-get-root-access-on-android-emulator


Wednesday, August 1, 2018 8:03 AM

Well the good news is that after doing that I can open the data folder. The bad new is that after navigation to the subfolders Users and 0 I cannot get any further. So I probably need to do something similar again, but I am not sure what.


Thursday, August 2, 2018 5:33 AM

@GeoffreyPayne

The bad new is that after navigation to the subfolders Users and 0 I cannot get any further. So I probably need to do something similar again, but I am not sure what.

I think you should go to /data/data instead of /data/users/0. Please try it.


Thursday, August 2, 2018 7:44 AM

I am clear from inspecting the data via my breakpoints that the directory is /data/user/0/com.companyname.Sir.Mobile/files. I looked in the /data/data folder anyway and there is no sign of the log.txt there.


Friday, August 3, 2018 5:42 AM

@GeoffreyPayne

How do you create the log.txt? Please close this thread, for example, mark a reply as the answer, and start a new thread for your new issue. Thanks for your cooperation.


Friday, August 3, 2018 7:34 AM

The question has not yet been answered. From Visual Studio, in Android Device Monitor I can navigate to /data/user/0 and no further. And this after I have run the Adb commands recommended in a previous answer. From Android Studio I can use the Device File Explorer and I can navigate to the folder I want; /data/user/0/com.companyname.Sir.Mobile/files

Now either this is a bug in VS which needs to be fixed, or it is a feature that needs to be documented. Or it is something else that I cannot think of.


Wednesday, January 15, 2020 11:26 AM

When I am using commands to get root access, It does not converts $ to #. What can be the issue?


Wednesday, January 15, 2020 11:27 AM

@Geoffrey When I am using commands to get root access, It does not convert $ to #.(means not able to get root access) What can be the issue?


Thursday, April 23, 2020 5:58 AM

Optionally, you can pull your file by the following command, in despite Monitor can show it, command example: adb pull /data/user/0/com.companyname.Sir.Mobile/files