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

Commit d76d1d25 authored by Paul Lawrence's avatar Paul Lawrence Committed by android-build-merger
Browse files

Merge "Don\'t include password on default encryption command" into mnc-dr-dev...

Merge "Don\'t include password on default encryption command" into mnc-dr-dev am: 68521fd7 am: 29c5fb26 am: eab4352d
am: 74a3281e

* commit '74a3281e':
  Don't include password on default encryption command
parents ad7f07c9 74a3281e
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -2442,8 +2442,13 @@ class MountService extends IMountService.Stub
        }

        try {
            mCryptConnector.execute("cryptfs", "enablecrypto", "inplace", CRYPTO_TYPES[type],
                               new SensitiveArg(password));
            if (type == StorageManager.CRYPT_TYPE_DEFAULT) {
                mCryptConnector.execute("cryptfs", "enablecrypto", "inplace",
                                CRYPTO_TYPES[type]);
            } else {
                mCryptConnector.execute("cryptfs", "enablecrypto", "inplace",
                                CRYPTO_TYPES[type], new SensitiveArg(password));
            }
        } catch (NativeDaemonConnectorException e) {
            // Encryption failed
            return e.getCode();