Where are my Android application data files?

I wrote an application that reads and writes a couple of data files. When I call the getFilesDir () method, it returns /data/data/nel.prog.MyApp99/files (assuming my application is called MyApp99).

So how can I see this on my pc?

When I attach my phone as a debugging target for my (XP) PC, I create 2 external drives - one for the phone itself and one for the SD card, and I can not find this path in any! In XP, I set my β€œFolder” options to show hidden files and folders and not hide protected operating system files. I see a lot of things (i.e. a lot of files and folders on the phone and on the SD card). But I do not see the above path and the data files themselves.

Where are they and how do I access them? Thank you in advance!

+4
source share
2 answers

You can use adb (Android Debug Bridge) in your adk / tools directory to copy files or run a remote shell (and then a list of files / contents).

 adb pull <remote> <local> // copy files adb shell // start shell 

Update:

The above commands only work from a computer connected to an Android device.

To exchange files between applications on the device, you should check: http://developer.android.com/guide/topics/security/security.html#userid

+3
source

Your phone must be rooted in order to access the / data directory. After that, you can use this tool, for example DroidExplorer , to view this folder.

+2
source

Source: https://habr.com/ru/post/1340478/


All Articles