What's in the data directory of a newly created Android app?
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app
gradle/wrapper
.gitignore
LICENSE
README.md
build.gradle
gradle.properties
gradlew
gradlew.bat
settings.gradle

README.md

What's in my data directory?

This is a companion repository to my "Android Studio 3.0 Profiler Injects Files Into Data Directory" blog post.

Logs the content of various data directories when onResume is called. You can analyze what's in the data directory of a fresh app by:

  • Reading these logs through logcat
  • Investigating the disk contents with "Device File Explorer"

Note that some directories are created by the calls to read the directories themselves just as the files directory.