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

Commit 0af85965 authored by Steve Kondik's avatar Steve Kondik Committed by Steve Kondik
Browse files

mountservice: Shut down volumes before restarting framework

 * Vold assumes that when FUSE is killed, the mount is gone. This
   isn't true with sdcardfs, since the daemon doesn't continue
   to run. Cryptfs was assuming this behavior, and the system would
   hang during decryption since the emulated storage doesn't get
   unmounted.
 * Send the shutdown command before committing suicide.

Change-Id: Ifcfa63f0499a717f34482754cea95b90622290c6
parent 0942a4a5
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -2393,6 +2393,7 @@ class MountService extends IMountService.Stub
                mHandler.postDelayed(new Runnable() {
                    public void run() {
                        try {
                            mConnector.execute("volume", "shutdown");
                            mCryptConnector.execute("cryptfs", "restart");
                        } catch (NativeDaemonConnectorException e) {
                            Slog.e(TAG, "problem executing in background", e);