diff options
| author | Tianjie Xu <xunchang@google.com> | 2016-09-24 15:39:56 -0700 |
|---|---|---|
| committer | Tianjie Xu <xunchang@google.com> | 2016-09-27 13:34:58 -0700 |
| commit | 036d08638e6a5f849847a32d794ad34d7dec1368 (patch) | |
| tree | 3f80130b579ac3294c8793d8ff817a59cdd36188 /core/java/android/os/RecoverySystem.java | |
| parent | 95abef9355b37e4a3f8430b24c7c6f34b801cae0 (diff) | |
Log the error when uncrypt timeouts
Log the error code to uncrypt_status if uncrypt gets killed because
of timeout.
Test: We log the error code correctly in uncrypt_status when uncrypt timeouts.
Bug: 31603820
Change-Id: Ia623c333714295e68f4269257fbb4297a867e42b
Diffstat (limited to 'core/java/android/os/RecoverySystem.java')
| -rw-r--r-- | core/java/android/os/RecoverySystem.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/core/java/android/os/RecoverySystem.java b/core/java/android/os/RecoverySystem.java index 028e30ab93f0..2d5a144bdfc1 100644 --- a/core/java/android/os/RecoverySystem.java +++ b/core/java/android/os/RecoverySystem.java @@ -93,6 +93,14 @@ public class RecoverySystem { */ public static final File UNCRYPT_PACKAGE_FILE = new File(RECOVERY_DIR, "uncrypt_file"); + /** + * UNCRYPT_STATUS_FILE stores the time cost (and error code in the case of a failure) + * of uncrypt. + * + * @hide + */ + public static final File UNCRYPT_STATUS_FILE = new File(RECOVERY_DIR, "uncrypt_status"); + // Length limits for reading files. private static final int LOG_FILE_MAX_LENGTH = 64 * 1024; |
