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

Commit daf1167e authored by Eric Biggers's avatar Eric Biggers Committed by Gerrit Code Review
Browse files

Merge "Throw exception if SP cannot be unwrapped during migration" into main

parents 2e758c40 57414d2a
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1219,8 +1219,8 @@ public class LockSettingsService extends ILockSettings.Stub {
                Slog.i(TAG, "Synthetic password is already not protected by Weaver");
            }
        } else if (sp == null) {
            Slogf.wtf(TAG, "Failed to unwrap synthetic password for unsecured user %d", userId);
            return;
            throw new IllegalStateException(
                    "Failed to unwrap synthetic password for unsecured user " + userId);
        }

        // Call setCeStorageProtection(), to re-encrypt the CE key with the SP if it's currently