Merge "Don\'t include password on default encryption command" into mnc-dr-dev am: 68521fd7ce am: 29c5fb2646

am: eab4352d9b

* commit 'eab4352d9bd945c7fa375c6f28972900f0b99671':
  Don't include password on default encryption command
This commit is contained in:
Paul Lawrence
2015-10-21 16:49:24 +00:00
committed by android-build-merger

View File

@@ -2415,8 +2415,13 @@ class MountService extends IMountService.Stub
} }
try { try {
mCryptConnector.execute("cryptfs", "enablecrypto", "inplace", CRYPTO_TYPES[type], if (type == StorageManager.CRYPT_TYPE_DEFAULT) {
new SensitiveArg(password)); mCryptConnector.execute("cryptfs", "enablecrypto", "inplace",
CRYPTO_TYPES[type]);
} else {
mCryptConnector.execute("cryptfs", "enablecrypto", "inplace",
CRYPTO_TYPES[type], new SensitiveArg(password));
}
} catch (NativeDaemonConnectorException e) { } catch (NativeDaemonConnectorException e) {
// Encryption failed // Encryption failed
return e.getCode(); return e.getCode();