summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Kenny Root <kroot@google.com> 2011-08-18 09:20:47 -0700
committer Android (Google) Code Review <android-gerrit@google.com> 2011-08-18 09:20:47 -0700
commitd1106fc9bff66ac4f93f9d6291f0d0136bb544e7 (patch)
tree973449d8d7156f83e4649efe6316d979609788e7
parent797a0b0145211e219fcb441a963a103679249aa7 (diff)
parent07714d41e57ef9d8e2e6b40d8764e42053cce1bd (diff)
Merge "Default disable watchdog for vold connection"
-rw-r--r--services/java/com/android/server/MountService.java9
1 files changed, 7 insertions, 2 deletions
diff --git a/services/java/com/android/server/MountService.java b/services/java/com/android/server/MountService.java
index fd0320198998..00aa14cb2ea8 100644
--- a/services/java/com/android/server/MountService.java
+++ b/services/java/com/android/server/MountService.java
@@ -97,6 +97,9 @@ class MountService extends IMountService.Stub
private static final boolean DEBUG_EVENTS = false;
private static final boolean DEBUG_OBB = false;
+ // Disable this since it messes up long-running cryptfs operations.
+ private static final boolean WATCHDOG_ENABLE = false;
+
private static final String TAG = "MountService";
private static final String VOLD_TAG = "VoldConnector";
@@ -1182,8 +1185,10 @@ class MountService extends IMountService.Stub
Thread thread = new Thread(mConnector, VOLD_TAG);
thread.start();
- // Add ourself to the Watchdog monitors.
- Watchdog.getInstance().addMonitor(this);
+ // Add ourself to the Watchdog monitors if enabled.
+ if (WATCHDOG_ENABLE) {
+ Watchdog.getInstance().addMonitor(this);
+ }
}
/**