Merge "Test the correct return code from call to cryptfs."

This commit is contained in:
Jeff Sharkey
2012-01-03 10:57:19 -08:00
committed by Android (Google) Code Review

View File

@@ -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