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

Commit da6aedf7 authored by Fredrik Roubert's avatar Fredrik Roubert
Browse files

Test the correct return code from call to cryptfs.

This was broken in commit dd519fac
(certainly by mistake), in which Integer.parseInt(tokens[1]) was
errornously replaced with event.getCode().

Change-Id: Ic5af5a2ec5f321da21a4a5db25f6908462f6cae8
parent 9cfff10b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1792,7 +1792,7 @@ class MountService extends IMountService.Stub
        try {
            event = mConnector.execute("cryptfs", "checkpw", password);

            final int code = event.getCode();
            final int code = Integer.parseInt(event.getMessage());
            if (code == 0) {
                // Decrypt was successful. Post a delayed message before restarting in order
                // to let the UI to clear itself