diff options
| author | Jeff Sharkey <jsharkey@android.com> | 2012-09-07 23:16:01 -0700 |
|---|---|---|
| committer | Jeff Sharkey <jsharkey@android.com> | 2012-09-11 23:11:14 -0700 |
| commit | b049e212ab7fe8967893c202efcb30fecfdb82fb (patch) | |
| tree | cd6150a7e6152ff4d761a25f1d9d41b0bd9023d0 /core/java/android/os/Debug.java | |
| parent | b1ee58860280e2dfad63170495393a914ab34804 (diff) | |
Include user identifier in external storage paths.
When building external storage paths, always include user in path
to enable cross-user paths and aid debugging.
Each Zygote process continues to only have access to the appropriate
user-specific emulated storage through bind mounts. A second set of
mounts continue supporting legacy /sdcard-style paths. For example,
a process running as owner has these mount points:
/storage/emulated_legacy
/storage/emulated_legacy/Android/obb
/storage/emulated/0
/storage/emulated/obb
Since Environment is created before Zygote forks, we need to update
its internal paths after each process launches.
Bug: 7131382
Change-Id: I6f8c6971f2a8edfb415c14cb4ed05ff97e587a21
Diffstat (limited to 'core/java/android/os/Debug.java')
| -rw-r--r-- | core/java/android/os/Debug.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/java/android/os/Debug.java b/core/java/android/os/Debug.java index 591cd0efbecd..c08bfeb17d54 100644 --- a/core/java/android/os/Debug.java +++ b/core/java/android/os/Debug.java @@ -95,7 +95,7 @@ public final class Debug * Default trace file path and file */ private static final String DEFAULT_TRACE_PATH_PREFIX = - Environment.getExternalStorageDirectory().getPath() + "/"; + Environment.getLegacyExternalStorageDirectory().getPath() + "/"; private static final String DEFAULT_TRACE_BODY = "dmtrace"; private static final String DEFAULT_TRACE_EXTENSION = ".trace"; private static final String DEFAULT_TRACE_FILE_PATH = |
