Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 07714d41 authored by Kenny Root's avatar Kenny Root
Browse files

Default disable watchdog for vold connection

cryptfs has long-running operations that cause the Watchdog to fire
reliably when encrypting the filesystem. Disable Watchdog on
MountService for this reason.

Change-Id: Id03f5f60c704dcd74a8696ad9f32b5fba5381731
parent 4a8d9ad8
Loading
Loading
Loading
Loading
+7 −2
Original line number Original line Diff line number Diff line
@@ -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,9 +1185,11 @@ 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.
        if (WATCHDOG_ENABLE) {
            Watchdog.getInstance().addMonitor(this);
            Watchdog.getInstance().addMonitor(this);
        }
        }
    }


    /**
    /**
     * Exposed API calls below here
     * Exposed API calls below here