* commit '53d1022e835f0556095dee168f5bb491a29fd0ac': Fix crash caused by toHex returning exception
This commit is contained in:
@@ -2419,9 +2419,16 @@ class MountService extends IMountService.Stub
|
||||
final NativeDaemonEvent event;
|
||||
try {
|
||||
event = mConnector.execute("cryptfs", "getpw");
|
||||
if ("-1".equals(event.getMessage())) {
|
||||
// -1 equals no password
|
||||
return null;
|
||||
}
|
||||
return fromHex(event.getMessage());
|
||||
} catch (NativeDaemonConnectorException e) {
|
||||
throw e.rethrowAsParcelableException();
|
||||
} catch (IllegalArgumentException e) {
|
||||
Slog.e(TAG, "Invalid response to getPassword");
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user