frameworks/base
Révision | 92451b8b8183a42e5a160281bfd052047a130102 (tree) |
---|---|
l'heure | 2015-09-17 03:37:39 |
Auteur | Zach Jang <zachjang@goog...> |
Commiter | The Android Automerger |
Revert "[DO NOT MERGE] Bump up the timeout for uncrypt to 900s."
This reverts commit 82b70db7dd906013d131737a5bec2ae59b41ae61.
Change-Id: Iace1607127d7d09cb1cc0afd8e52408fde443f5f
@@ -2357,7 +2357,7 @@ public final class PowerManagerService extends SystemService | ||
2357 | 2357 | /** |
2358 | 2358 | * Low-level function to reboot the device. On success, this |
2359 | 2359 | * function doesn't return. If more than 20 seconds passes from |
2360 | - * the time a reboot is requested (900 seconds for reboot to | |
2360 | + * the time a reboot is requested (120 seconds for reboot to | |
2361 | 2361 | * recovery), this method returns. |
2362 | 2362 | * |
2363 | 2363 | * @param reason code to pass to the kernel (e.g. "recovery"), or null. |
@@ -2375,11 +2375,9 @@ public final class PowerManagerService extends SystemService | ||
2375 | 2375 | // |
2376 | 2376 | // This preparation can take more than 20 seconds if |
2377 | 2377 | // there's a very large update package, so lengthen the |
2378 | - // timeout. We have seen 750MB packages take 3-4 minutes. | |
2379 | - // Bump up the limit again to 900s for really large packages. | |
2380 | - // Bug: 23629892. | |
2378 | + // timeout. We have seen 750MB packages take 3-4 minutes | |
2381 | 2379 | SystemProperties.set("ctl.start", "pre-recovery"); |
2382 | - duration = 900 * 1000L; | |
2380 | + duration = 300 * 1000L; | |
2383 | 2381 | } else { |
2384 | 2382 | SystemProperties.set("sys.powerctl", "reboot," + reason); |
2385 | 2383 | duration = 20 * 1000L; |