OSDN Git Service

Only create custom database paths.
authorJeff Sharkey <jsharkey@android.com>
Mon, 1 Feb 2016 17:16:01 +0000 (10:16 -0700)
committerJeff Sharkey <jsharkey@android.com>
Mon, 1 Feb 2016 17:17:57 +0000 (10:17 -0700)
commitc4bab9843ab936f9a9f134e2088a5bd891eb55c2
tree9f9c6bd783a953490c68535a400216fde536f5a6
parente6cb0974b3465852702e3132b0f0503690a435d2
Only create custom database paths.

If the getDatabasePath() caller is using the default getDatabasesDir()
path, that method already handles possible path creation, so no
need for us to retry.

Also fix two small bugs that would have NPE'ed when listing files in
a directory that wasn't created.

Bug: 26895777
Change-Id: Iced16b05cfe95062717da8d0414c48daefcb5648
core/java/android/app/ContextImpl.java
core/java/android/os/FileUtils.java