summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZach Jang <zachjang@google.com>2015-09-15 20:09:52 +0000
committerThe Android Automerger <android-build@google.com>2015-10-22 11:27:56 -0700
commit3169f4cd87c5558c3ea60b0ef78f5f4e03ca94a2 (patch)
treed0774a81b3b080d5a579a61dddfb3970809974ba
parenta6b483722df09654cee1dc1de80a441b739c32aa (diff)
downloadbase-3169f4cd87c5558c3ea60b0ef78f5f4e03ca94a2.tar.gz
Revert "[DO NOT MERGE] Bump up the timeout for uncrypt to 900s."android-cts-5.1_r5android-cts-5.1_r4android-5.1.1_r26
This reverts commit 82b70db7dd906013d131737a5bec2ae59b41ae61. Change-Id: Iace1607127d7d09cb1cc0afd8e52408fde443f5f
-rw-r--r--services/core/java/com/android/server/power/PowerManagerService.java8
1 files changed, 3 insertions, 5 deletions
diff --git a/services/core/java/com/android/server/power/PowerManagerService.java b/services/core/java/com/android/server/power/PowerManagerService.java
index 9371222c7af1..9786b42ec30c 100644
--- a/services/core/java/com/android/server/power/PowerManagerService.java
+++ b/services/core/java/com/android/server/power/PowerManagerService.java
@@ -2357,7 +2357,7 @@ public final class PowerManagerService extends SystemService
/**
* Low-level function to reboot the device. On success, this
* function doesn't return. If more than 20 seconds passes from
- * the time a reboot is requested (900 seconds for reboot to
+ * the time a reboot is requested (120 seconds for reboot to
* recovery), this method returns.
*
* @param reason code to pass to the kernel (e.g. "recovery"), or null.
@@ -2375,11 +2375,9 @@ public final class PowerManagerService extends SystemService
//
// This preparation can take more than 20 seconds if
// there's a very large update package, so lengthen the
- // timeout. We have seen 750MB packages take 3-4 minutes.
- // Bump up the limit again to 900s for really large packages.
- // Bug: 23629892.
+ // timeout. We have seen 750MB packages take 3-4 minutes
SystemProperties.set("ctl.start", "pre-recovery");
- duration = 900 * 1000L;
+ duration = 300 * 1000L;
} else {
SystemProperties.set("sys.powerctl", "reboot," + reason);
duration = 20 * 1000L;