am 67645821: Merge "Don\'t create cache directory for isolated processes" into jb-mr1-dev
* commit '67645821a5c1501edac684b876e49562c70a9424': Don't create cache directory for isolated processes
This commit is contained in:
@@ -4055,13 +4055,14 @@ public final class ActivityThread {
|
|||||||
|
|
||||||
final ContextImpl appContext = new ContextImpl();
|
final ContextImpl appContext = new ContextImpl();
|
||||||
appContext.init(data.info, null, this);
|
appContext.init(data.info, null, this);
|
||||||
final File cacheDir = appContext.getCacheDir();
|
if (!Process.isIsolated()) {
|
||||||
|
final File cacheDir = appContext.getCacheDir();
|
||||||
|
|
||||||
// Provide a usable directory for temporary files
|
// Provide a usable directory for temporary files
|
||||||
System.setProperty("java.io.tmpdir", cacheDir.getAbsolutePath());
|
System.setProperty("java.io.tmpdir", cacheDir.getAbsolutePath());
|
||||||
|
|
||||||
setupGraphicsSupport(data.info, cacheDir);
|
|
||||||
|
|
||||||
|
setupGraphicsSupport(data.info, cacheDir);
|
||||||
|
}
|
||||||
/**
|
/**
|
||||||
* For system applications on userdebug/eng builds, log stack
|
* For system applications on userdebug/eng builds, log stack
|
||||||
* traces of disk and network access to dropbox for analysis.
|
* traces of disk and network access to dropbox for analysis.
|
||||||
|
|||||||
Reference in New Issue
Block a user