XGSM Iași — Service & Piese GSM

Security

Forgot the PIN or pattern of your own phone: the official ways back in

On a current phone, a forgotten PIN or pattern cannot be removed without erasing the data — that is the protection working as designed. The good news: with a recent backup you lose time, not memories. And if you changed the code within the last 72 hours on a recent Samsung or iPhone, you may lose nothing at all.
Needs care30 minAndroidSamsungXiaomiHuaweiMotorolaGoogle PixelOnePlusOppoiPhoneChecked: November 17, 2026

Short version

  • On current phones there is no unlock that keeps your data — a backup is what makes the difference.
  • Changed the code within the last 72 hours? On Samsung One UI 6.1+ and iPhone with iOS 17+ you get in with the old code — no losses.
  • Fingerprint or face still opens the phone? Back it up right now — they stop helping after the first restart.
  • The official routes that erase everything: remote erase from your account, or a button-combo reset.
  • After erasing, the phone asks for the account that was on it — Google, Apple, Samsung or Mi — as proof it is yours.

Why there is no workaround

The honest answer is short: a forgotten PIN, password or pattern cannot be removed while keeping the data. The lock code is part of the key that encrypts everything on the phone — without it, your photos and messages are mathematically unreachable, for you and for anyone else. Anyone promising a workaround is selling snake oil.

Danger· What you will lose

Almost every official route below erases the phone completely: photos, messages, apps, unsynced contacts. The two exceptions — the 72-hour previous code and a fingerprint that still works — are marked clearly. What decides your data's fate is not a hidden menu but the backup you do or don't have.

The phone itself slows you down on the wrong path: after a few wrong tries it makes you wait — first a few seconds or a minute, then whole minutes, then up to an hour. On iPhone, after enough misses the screen reaches iPhone Unavailable and then Security Lockout; on Android the message and the timer differ by maker, but the mechanics are the same. These pauses are the sign to stop and read your options, not to keep guessing.

iOS 18
iPhone Unavailable
try again in 15 minutes
EmergencyForgot Passcode?

Phone screen: iPhone Unavailable. try again in 15 minutes [Emergency] [Forgot Passcode?]

The screen nobody wants to see. The “Forgot Passcode?” button in the corner is the only official door from here — it only appears if the phone is online and Find My was on.

Before you erase: the checks that can save your data

Not everyone goes straight to erasing. Depending on what was turned on and on when you last changed the code, a few doors are still open — all free, all official:

  • Does a fingerprint or face still work? If the phone wasn't restarted and the lock screen still accepts your finger or your face, open it and back it up immediately — photos to the cloud, WhatsApp, contacts. You can't change the code without knowing it, but after a backup, erasing is no longer a disaster.
  • Did you change the code within the last 72 hours? Samsung (One UI 6.1 or newer) and iPhone (iOS 17 or newer) keep the previous code for three days and let you in with it to set a new one — no losses. The exact steps are in the next section, under your brand.
  • Does the phone stay unlocked somewhere? Smart Lock / Extend Unlock, if you ever set it up, may keep the phone open at home or near a trusted device — one more chance to back up.
  • Did someone "prank" your code? A child or a friend who changed the pattern can maybe tell it back to you. Ask before erasing anything.
Android 15
Try again in 30 seconds

Phone screen: Wrong PIN. Try again in 30 seconds

The Android version of the same wall: a locked keypad and a timer that grows with every round of misses. The exact wording differs between makers.

Tip· The restart rule

After every restart the phone demands the code once, no exceptions — fingerprint and face stay off until the first correct entry. That's why “it worked with my finger” doesn't mean you don't need the code.

The official ways back in, per brand

There are two families of solutions: the one that gives your phone back intact — only if you changed the code recently — and the ones that erase it, remotely or with buttons. Here they are side by side, then per brand:

The official routes, compared
RouteWhat you needWhat you lose
Previous code (Samsung One UI 6.1+, iPhone iOS 17+)The old code, within 72 hours of the changeNothing
Remote erase (Find Hub, SmartThings Find, i.mi.com, Find My)The account password + the phone on and onlineAll data on the phone
Button reset (recovery)The right button combo; on recent Samsung, a USB cable to a computerAll data on the phone
iPhone via computer (Finder / Apple Devices)A Mac or PC, a cable, internet, up to an hourAll data on the phone
The maker's official supportProof of purchase and IDAll data (sometimes a fee too)
Blocked SIM cardThe PUK from your carrierNothing — if you stay under 10 tries
Another device
Your account
The locked phone

Connection: Another device via internet → Your account. Your account via mobile data → The locked phone.

Remote erase only works if the phone is on and online — the command travels through your account to reach it. No signal means buttons.

On a Galaxy you have a real lifeline — but only if you changed the code within the last 72 hours. Otherwise the official route is erasing: remotely or from recovery.

  1. Use the previous code (One UI 6.1 or newer)

    After five or more wrong tries tap Forgot PIN? on the lock screen — the label follows your lock type: PIN, password or pattern. Enter the previous code, tap OK, pick a lock type and set a new one. The feature keeps the old code for only 72 hours, and only if you didn't delete it from Secure lock settings — and you get only three tries with the old code, then it's gone. You lose nothing.

  2. Or erase remotely, from SmartThings Find

    On another device or a computer go to smartthingsfind.samsung.com, sign in with the Samsung account on the phone, select it and choose Erase data. The phone must be on and online. After the erase it asks for the Samsung account and the Google account from before.

    One UI 7
    Erase data

    All data on this device will be permanently erased and cannot be recovered.

    CancelErase

    Phone screen: Erase data. All data on this device will be permanently erased and cannot be recovered. [Cancel] [Erase]

  3. Or from recovery, with buttons

    Power the phone off. On recent models connect it by USB cable to a running computer, then hold Volume up + Power until the recovery menu appears — always in English. With the volume keys go to Wipe data/factory reset, confirm with Factory data reset, then Reboot system now. Step by step in the recovery guide.

    1. 1Hold until the Recovery menuVolume upPower10 s

    Press the phone's physical buttons in the numbered order. 1. Hold until the Recovery menu (Volume up + Power, 10 s)

Note· Remote unlock no longer exists

Samsung removed the button that unlocked the phone remotely from Find My Mobile — tutorials showing it are outdated; today SmartThings Find only locates and erases. The old “Unlock with Google” (“Forgot pattern”) option only ever existed on Android 4.4 or older — it's gone from any current phone.

After the erase: the account that asks for proof

This is where many get locked out a second time: after the erase, the phone doesn't start normally — it asks for the account that was on it before. On Android it's Factory Reset Protection (FRP, the Google account), on iPhone it's Activation Lock (the Apple Account), and on Samsung and Xiaomi the maker's account can join in. It's the anti-theft feature and it cannot be bypassed: without those credentials the phone stays locked even in the owner's hands.

Android 15
Verify your identity

This device was reset. Sign in with a Google Account that was previously synced on this device.

Email or phone
Next

Phone screen: Verify your identity. This device was reset. Sign in with a Google Account that was previously synced on this device. [Next]

The screen after the erase on Android. Don't know the password? Recover the account through the official route before restarting the cycle.
  • Photos in Google Photos or iCloud reappear on their own after you sign in — let the sync finish before you panic.
  • Contacts saved in the account come back; the ones kept only on the phone or the SIM do not.
  • WhatsApp pulls its chats from the backup — confirm the restore on first open, don't skip it.
  • Apps re-download; their data returns only if the app kept its own cloud backup.
  • What does not come back: unsynced photos, SMS without a backup, files in Downloads — and banking apps, which you reactivate one by one (dedicated guide).

The account password is the key from here on: if you forgot that too, start with recovering the Google or Apple account and only then the phone. For the full erase procedure and everything around it, see the factory reset guide.

The SIM PIN and the PUK — a different lock entirely

If after a restart or after moving the card the phone asks for the SIM PIN, the phone isn't locked — the card is. It's a separate code, it belongs to the carrier and it has its own rules: three misses lead to the PUK prompt, not to an erase.

Android 15
SIM card is locked

Enter the PUK code to unlock the SIM card. You can get it from your carrier.

OKCancel

Phone screen: SIM card is locked. Enter the PUK code to unlock the SIM card. You can get it from your carrier. [OK] [Cancel]

The PUK prompt, after three wrong SIM PINs. Don't guess digits: at 10 missed PUKs the card dies for good.
  • Where the PUK lives: on the plastic the SIM snapped out of, or from the carrier — on Orange it's in your My Orange account (Servicii SIM on the web, Altele → Servicii in the app) or by calling *100# from another Orange number (it asks for your six-digit Orange password); other carriers show it in their app or via customer care.
  • What it does: after the correct PUK you set a new SIM PIN — write it down, the phone asks for it at every restart.
  • What it doesn't do: it doesn't unlock the phone itself — if the screen lock is forgotten too, you stay on the steps above.

Warning· Ten misses and the card is dead

The PUK can't be guessed or computed — it's set by the carrier and can't be changed. At 10 wrong entries the SIM is permanently deactivated: you replace it at the carrier and keep your number. Can't find it anywhere? Call the carrier before trying anything else — every try counts.

What a repair shop can do — and what it can't

An honest shop has no magic tools: it can perform the same reset you can, it can reinstall the system (also erasing), and it can help with a backup if the phone still opens with a fingerprint. What nobody anywhere can do: remove the lock code while keeping the data — it's encrypted with that code — or get past the account prompt after the erase.

  • With proof of purchase — invoice, receipt, contract — the maker's official support can take you further; Apple, for example, can lift Activation Lock when you prove the phone is yours.
  • A phone that asks for someone else's account — found, or bought second-hand — stays locked: only the previous owner or the maker opens it.
  • At XGSM we don't remove locks on phones whose ownership can't be proven — and we'd advise you not to trust anyone who promises it.
  • Online "unlock" tools promising intact data don't work on current phones — at best you lose the money, at worst you end up with software that steals your accounts.

Note· When something else is wrong

The phone doesn't reach the setup screen even after the reset — stuck on the logo, rebooting itself or not starting at all? Then it's a hardware matter: book a check and we'll tell you whether it's the storage, the board or just a missed sequence.

So it doesn't happen again

The screen lock is your friend — it protects you from exactly the reverse of what happened to you: someone else reading your phone. The trick is keeping your data saved elsewhere, so the lock never turns against you:

0 of 6 done

Tip

If you also lock apps or the SIM with their own PINs, keep them different but written down — details in the guide on locking apps and the SIM card.

Frequently asked questions

Can I unlock my phone without losing data if I forgot the PIN?
Generally no — on current phones the lock code encrypts the data, so the official route is erasing. The exceptions: a fingerprint or face still opens the phone (back up immediately), the code was changed within the last 72 hours on a Samsung with One UI 6.1+ or an iPhone with iOS 17+ (you get in with the old one), or you have Smart Lock set up and the phone stays open in a trusted place.
Why does my phone ask for the Google account after the reset?
That's Factory Reset Protection (FRP) — it exists so a stolen phone can't be wiped and reused. Enter the Google account that was on the phone before the erase; if you forgot the password, recover it from another device. There is no legitimate way around it — and no repair shop has one either.
After how many wrong tries does the phone lock?
It doesn't lock permanently — the pause between tries grows instead: from seconds to minutes and up to an hour, depending on the maker and version. On iPhone, after several rounds of misses the screen shows “iPhone Unavailable”, and eventually “Security Lockout”, which you can only leave through a reset.
The phone opens with my fingerprint but asks for the code. What now?
Open it with the fingerprint and make a full backup right now — photos, WhatsApp, contacts. The code can't be changed without knowing the old one, and after the first restart the fingerprint won't help anymore. After the backup, reset calmly and put your data back.
I forgot the SIM card's PIN, not the phone's. What do I do?
That's a different lock: after three wrong PINs the card asks for the PUK, an eight-digit code set by the carrier. You'll find it on the SIM's plastic holder or in your carrier account and app — on Orange also by calling *100# from an Orange number — or from customer care. After ten wrong PUKs the card is deactivated and you replace it at the carrier.
Can a repair shop remove my code without erasing?
No — nobody can remove the code while keeping the data, because the data is encrypted with it. A shop can do the same reset and point you to your account and backup; the account lock afterwards is lifted only by the maker, with proof of purchase. A promise of “unlock without loss” is a scam.
Does unlocking with the Google account still work?
It hasn't worked for years — the option disappeared after Android 4.4. Today the Google account doesn't replace the lock code; it's asked for after the erase, as proof of ownership. On Samsung the only way in without erasing is the previous-code route, within the first 72 hours after the change.

Does your phone look different, or is something missing here?

Menus and buttons differ from model to model and change with updates. If these steps do not match your phone or you cannot find what you need, tell us your model and what you see on the screen: we will answer you and update the guide.

Checked against

The phone won't get past the reset either?

If it stays stuck on the logo or won't start at all, the problem is already a different one — most likely hardware. Bring it in for a diagnostic and we'll tell you on the spot where it hurts.