I have an app that writes to text files onto Internal storage. I'd like to take a close look on my computer.
I ran a Toast.makeText to display the path, it says: /data/data/mypackage
But when I go to Android Studio's Android Device Monitor application, I don't see /data/data in the File Explorer. So where are my files?
I know they exist because I can find the on adb shell. I need to translate /data/data to a path visible on File Explorer, so that I can download them easily. Thanks!
You can only check that if you have a rooted phone, because these folders are private to applications and usual access is restricted to such folders. I would advise if you dont have a rooted phone then make a copy of your internal folders and write them to your SDCard to check the contents. The other way is to root your phone or use an Emulator.
Here is the code you can use to write a copy on your External SDCard:
You can use the
adb console
. Just writeadb root
and thenadb connect <IP>
After that you can open the data folder.
I think you're using API 24 or above, You must to create a new virtual device wihch does not API 24+
The
/data/data
folder is shown in my Android Device Monitor's File Explorer (Android Studio 1.4). At least for virtual devices.See this. Because /data/data is internal storage for the application itself, only apps with the same user id can acess it (or unless you have a rooted device).