Merge "Fix the issue that uncrypt isn't called under quiescent mode" into oc-dev

am: f40f297546

Change-Id: I06fa703be593348db7eed68e3905929262e43a9c
This commit is contained in:
Tianjie Xu
2017-06-12 23:55:23 +00:00
committed by android-build-merger
2 changed files with 6 additions and 4 deletions

View File

@@ -436,7 +436,7 @@ public final class SystemServer {
// If '/cache/recovery/block.map' hasn't been created, stop the
// reboot which will fail for sure, and get a chance to capture a
// bugreport when that's still feasible. (Bug: 26444951)
if (PowerManager.REBOOT_RECOVERY_UPDATE.equals(reason)) {
if (reason != null && reason.startsWith(PowerManager.REBOOT_RECOVERY_UPDATE)) {
File packageFile = new File(UNCRYPT_PACKAGE_FILE);
if (packageFile.exists()) {
String filename = null;