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

Commit acc32640 authored by Ellen Arteca's avatar Ellen Arteca Committed by Gerrit Code Review
Browse files

Merge "Update arguments to vold binder to use byte[] secret for CE storage" into main

parents f3326ebe 53738cf5
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -146,7 +146,6 @@ import com.android.internal.os.FuseUnavailableMountException;
import com.android.internal.os.SomeArgs;
import com.android.internal.util.ArrayUtils;
import com.android.internal.util.DumpUtils;
import com.android.internal.util.HexDump;
import com.android.internal.util.IndentingPrintWriter;
import com.android.internal.util.Preconditions;
import com.android.modules.utils.TypedXmlPullParser;
@@ -3270,7 +3269,7 @@ class StorageManagerService extends IStorageManager.Stub
            throws RemoteException {
        super.setCeStorageProtection_enforcePermission();

        mVold.setCeStorageProtection(userId, HexDump.toHexString(secret));
        mVold.setCeStorageProtection(userId, secret);
    }

    /* Only for use by LockSettingsService */
@@ -3280,7 +3279,7 @@ class StorageManagerService extends IStorageManager.Stub
        super.unlockCeStorage_enforcePermission();

        if (StorageManager.isFileEncrypted()) {
            mVold.unlockCeStorage(userId, HexDump.toHexString(secret));
            mVold.unlockCeStorage(userId, secret);
        }
        synchronized (mLock) {
            mCeUnlockedUsers.append(userId);