Move boot log file writing into a background thread to avoid ANR.

Bug: 2507228
Change-Id: I35695f89f1d62b907f04511e3e6b71722008949b
This commit is contained in:
Dan Egnor
2010-03-11 12:31:23 -08:00
parent 015b59756e
commit c95142d4a0
2 changed files with 36 additions and 33 deletions

View File

@@ -70,7 +70,7 @@ public class RecoverySystem {
private static File LOG_FILE = new File(RECOVERY_DIR, "log");
// Length limits for reading files.
private static int LOG_FILE_MAX_LENGTH = 8 * 1024;
private static int LOG_FILE_MAX_LENGTH = 64 * 1024;
/**
* Interface definition for a callback to be invoked regularly as