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

am: f40f297546

Change-Id: Id60cf7cf4b82f17fd094fa011bb54a543e636f48
This commit is contained in:
Tianjie Xu
2017-06-13 00:58:53 +00:00
committed by android-build-merger
2 changed files with 6 additions and 4 deletions

View File

@@ -454,7 +454,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;