Galaxy A21s Asks for a PIN After Restart

Galaxy A21s asks for a PIN after a restart and you can’t recall it? See why fingerprint and face unlock pause and which recovery options exist.

After a restart, the Galaxy A21s will not accept your fingerprint or your face until you enter the PIN, pattern, or password you created when you registered them. That is normal behavior, not a broken sensor. If you cannot remember that code, the Galaxy A21s manual says the phone cannot be used without resetting it, and the recovery routes Samsung and Google document for this situation all erase the phone. If the phone is still unlocked right now, do not restart it. Back it up first.

Why the A21s asks for a code after a restart

Fingerprint and face unlock are convenience layers on top of your screen-lock code. You cannot turn either one on without first setting a PIN, pattern, or password, and the phone falls back to that code in several situations.

How fingerprint, face, and your code work together

SituationWhat unlocks the phoneWhere this comes from
Right after the phone turns onPIN, pattern, or password onlyGalaxy A21s manual; Samsung fingerprint guide
Phone not used for more than 24 hoursPIN, pattern, or passwordSamsung fingerprint guide (Samsung’s figure; Android’s own platform limit is 72 hours)
Face unlock in daily useFace, but the code is requested at least once every 24 hoursSamsung facial recognition guide
After repeated wrong attemptsWait timers that grow with each failureAndroid platform documentation
You switch the lock type to Swipe or NoneNothing is protected, and saved fingerprint and face data is deletedGalaxy A21s manual

Samsung’s facial recognition guide lists the 24-hour code request for face unlock, and Google’s Android security team explains that Android makes you re-enter a PIN, pattern, or password after each boot and enforces growing timeouts after repeated wrong attempts. Two points from the manual are worth keeping in mind. Face recognition is less secure than a PIN, pattern, or password, and someone who resembles you might be able to unlock the phone. And the code the phone asks for after a restart is the backup you were asked to create when you registered the fingerprint or face. Many owners set it in a hurry during setup and never type it again.

Check which prompt you are seeing

A SIM PIN is a different code. It protects the SIM card and, when it is turned on, is requested when the phone starts. If the prompt mentions the SIM card, your screen-lock code is not what it wants. Your carrier handles SIM PIN problems, not Samsung’s lock-screen recovery.

If the phone is still unlocked right now

An unlocked phone is your best chance to avoid losing data. Do this before anything else:

  1. Do not restart or power off the phone. Plug in a charger so it cannot shut down when the battery runs out.
  2. Back up what matters. Open Settings → Accounts and backup and back up with Samsung Cloud, or copy your photos and files to a computer or a microSD card.
  3. Make a short list of codes you might have used, and note where you set the current one.

Samsung’s unlock troubleshooting page describes the case where a fingerprint or face still works but the screen lock cannot be changed because the code is forgotten. It points to Find My Mobile to reset the unlock methods. The same page also says remote unlock through SmartThings Find is no longer possible, so do not count on that route. Back up first and treat an erase as the likely outcome.

If you are locked out after a restart

Guess carefully

Before you try codes, know the risk. The A21s manual describes an Auto factory reset switch under Lock screen → Secure lock settings. If someone turned it on, too many wrong codes can wipe the phone. The manual does not state the attempt limit, and you cannot check the switch while locked. Try only codes you genuinely think are likely, and let any wait timer finish between rounds.

Options that will not work on the A21s

OptionWhy it does not help here
Fingerprint or faceNot accepted until the code has been entered once after the restart
Smart Lock (trusted place or device)On Android 10 and later it can only keep an already unlocked phone unlocked, for up to four hours. It cannot unlock a phone that restarted.
Remote unlock from Find My Mobile or SmartThings FindSamsung ended this feature in December 2023. Older guides that still show an Unlock button are out of date.
“Forgot PIN” with your previous codeSamsung documents this only for One UI 6.1 or later. The A21s’s final major update was reported as Android 12 with One UI 4.1, so you should not expect the prompt.
Third-party “unlock without data loss” toolsSamsung documents no data-preserving method for a forgotten code on this model. Do not enter your Samsung or Google password on unofficial sites.

What Samsung and Google document: erase and set up again

Every route below deletes the data on the phone. Anything backed up to your Samsung or Google account can be restored after you set the phone up again. These steps are for your own phone. Factory Reset Protection exists to stop other people from doing the same thing.

Option A: Erase with your Samsung account (SmartThings Find)

  1. On a computer or another phone, open SmartThings Find and sign in with the Samsung account that was set up on the locked phone. Samsung’s locked or forgotten PIN guide lists the same steps.
  2. Select your Galaxy A21s.
  3. Choose Erase data, verify your account if asked, and confirm.

Samsung says that if the phone is offline, the erase happens the next time it connects to the internet. Samsung’s pages do not name the A21s, and the option only works if the phone was already signed in to your Samsung account. If you do not see Erase data, use Option B or C.

Option B: Erase with your Google account (Find Hub)

  1. Sign in to Google Find Hub with the Google account used on the phone. Google’s earlier name for it was Find My Device.
  2. Wait for the phone to be located, then select it.
  3. Choose Factory reset device, verify your account, and confirm.

Google says the phone must be powered on, connected to Wi-Fi or mobile data, signed in to a Google account, and have Find Hub turned on. Google also warns that this permanently deletes the data on the phone, and it may leave the contents of an SD card in place.

Option C: Reset with the phone’s buttons

Use this when the phone cannot be reached online. Samsung’s general factory reset guide says that for phones without a Home button, you hold Volume Up and Power to open the recovery menu. The A21s has no Home button. In the menu, the Volume keys move the highlight and the Power key selects. Choose Wipe data/factory reset, then confirm the reset. That guide is not specific to the A21s, so check it against your own screen before you confirm anything.

After the reset: the Google account check

After a reset from the recovery menu, the phone asks for the Google account that was on it. If you cannot recall the password, you can reset it online, but Samsung notes that Google may apply a 24-hour wait before the new password works on the phone. If you do not know which account was used, Samsung suggests taking the phone and your proof of purchase to an authorized Samsung Service Center.

Set up a code you will keep, and make restarts painless

  • Pick a code you can recall without effort and store it in a password manager. Samsung’s “previous code” safety net is not available on this model.
  • Once you are set up, restart the phone once on purpose and confirm that your code unlocks it.
  • Keep a current backup under Accounts and backup. You can also browse more Samsung phone manuals on ManualsPedia.
  • Leave Auto factory reset off unless you want the phone to wipe itself after too many wrong codes.
  • If the fingerprint is still unreliable after you enter the code, clean and dry the sensor and your finger, remove any film or sticker over it, and restart. Then remove and re-register the fingerprint under Settings → Biometrics and security → Fingerprints. Samsung’s fingerprint guide suggests the same steps and keeping the software up to date.

Frequently Asked Questions

Does a software update make me enter my code again?

Yes, because installing an update restarts the phone, and any restart means the fingerprint and face are off until you enter the code once. Owners have reported being surprised by this after an overnight update.

Will the phone wipe itself if I guess wrong?

Only if the Auto factory reset switch was turned on in Secure lock settings. The A21s manual does not say how many attempts it allows. Since you cannot check the setting while locked, assume the risk exists and avoid random guessing.

Can Samsung recover my PIN for me?

The Samsung support pages used for this article describe no service that recovers a forgotten screen-lock code on an A21s. The documented paths are the erase options above. Samsung’s service-center advice applies to the Google account check that follows a reset.

Is the SIM PIN the same as my screen-lock code?

No. The SIM PIN protects the SIM card and is requested at startup when it is turned on. Your screen-lock code protects the phone itself. Resetting one does not recover the other.

Spot an error or outdated instruction?

Tell us what needs correcting. Include the product model and a link to the source when possible.

Article contributors

Emily Carter
Written byEmily CarterEmily Carter is a Consumer Technology and How-To Editor at ManualsPedia. She creates practical setup tutorials…
James Mitchell
Reviewed byJames MitchellJames Mitchell is a technical documentation editor at ManualsPedia, focusing on product manuals, operating instructions, and…

Related articles

On this page

Find a manual

Search product names, model numbers, and guides.

Search

Related product manual

Check the original documentation for exact model instructions and safety information.