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

Commit 593713cc authored by Eric Biggers's avatar Eric Biggers Committed by Automerger Merge Worker
Browse files

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

parents e21f57c3 daf1167e
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