am 90756e97: Merge "Fix creation issue of stack trace dump directory" into lmp-dev

* commit '90756e972a152a70ab1a2f3bcfd9532ece1f2056':
  Fix creation issue of stack trace dump directory
This commit is contained in:
Ramanan Rajeswaran
2014-09-14 19:29:41 +00:00
committed by Android Git Automerger

View File

@@ -4873,7 +4873,7 @@ public final class ActivityManagerService extends ActivityManagerNative
try {
File tracesDir = tracesFile.getParentFile();
if (!tracesDir.exists()) {
tracesFile.mkdirs();
tracesDir.mkdirs();
if (!SELinux.restorecon(tracesDir)) {
return null;
}
@@ -4983,7 +4983,7 @@ public final class ActivityManagerService extends ActivityManagerNative
final File tracesTmp = new File(tracesDir, "__tmp__");
try {
if (!tracesDir.exists()) {
tracesFile.mkdirs();
tracesDir.mkdirs();
if (!SELinux.restorecon(tracesDir.getPath())) {
return;
}