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

Commit 159904ef authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Log more info on StorageManagerService.unlockUserKey()" into rvc-dev

parents 71d6e687 4efe9a88
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -3215,10 +3215,14 @@ class StorageManagerService extends IStorageManager.Stub

    @Override
    public void unlockUserKey(int userId, int serialNumber, byte[] token, byte[] secret) {
        Slog.d(TAG, "unlockUserKey: " + userId);
        boolean isFsEncrypted = StorageManager.isFileEncryptedNativeOrEmulated();
        Slog.d(TAG, "unlockUserKey: " + userId
                + " isFileEncryptedNativeOrEmulated: " + isFsEncrypted
                + " hasToken: " + (token != null)
                + " hasSecret: " + (secret != null));
        enforcePermission(android.Manifest.permission.STORAGE_INTERNAL);

        if (StorageManager.isFileEncryptedNativeOrEmulated()) {
        if (isFsEncrypted) {
            try {
                mVold.unlockUserKey(userId, serialNumber, encodeBytes(token),
                        encodeBytes(secret));