Merge "Default disable watchdog for vold connection"
This commit is contained in:
@@ -97,6 +97,9 @@ class MountService extends IMountService.Stub
|
|||||||
private static final boolean DEBUG_EVENTS = false;
|
private static final boolean DEBUG_EVENTS = false;
|
||||||
private static final boolean DEBUG_OBB = 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 TAG = "MountService";
|
||||||
|
|
||||||
private static final String VOLD_TAG = "VoldConnector";
|
private static final String VOLD_TAG = "VoldConnector";
|
||||||
@@ -1182,8 +1185,10 @@ class MountService extends IMountService.Stub
|
|||||||
Thread thread = new Thread(mConnector, VOLD_TAG);
|
Thread thread = new Thread(mConnector, VOLD_TAG);
|
||||||
thread.start();
|
thread.start();
|
||||||
|
|
||||||
// Add ourself to the Watchdog monitors.
|
// Add ourself to the Watchdog monitors if enabled.
|
||||||
Watchdog.getInstance().addMonitor(this);
|
if (WATCHDOG_ENABLE) {
|
||||||
|
Watchdog.getInstance().addMonitor(this);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user