What to do if I forgot my phone password before selling it?

What to do if I forgot my phone password before selling it?

What to do if I forgot my phone password before selling it?

Selling a phone on the secondary market requires not only aesthetically preparing the device but also completely erasing data and restoring factory settings (Factory Reset). But what to do if at this crucial moment you notice that you forgot the screen lock code (Passcode)?

The situation is complicated because modern operating systems (“iOS” and “Android”) use strict security algorithms that protect the user from theft. In this article, we will detail how to safely reset the device, remove personal data, and prepare the phone for a new owner, even if access to the system is blocked.

1. The most important rule: Data loss is inevitable

Before taking any action, it is essential to understand the balance between Security vs. Accessibility. Modern smartphones use File-Based Encryption (FBE). If you forgot the password, the only way to use the device again is to completely wipe it. There is no legal way to “bypass” the password and save photos or messages, as the encryption key is directly linked to your forgotten code.

2. Solutions for “Apple iPhone” users

In the “Apple” ecosystem, the process is standardized, but it requires access to a computer or another “Apple” device.

A. Recovery via “Recovery Mode”

This is the most reliable method when the phone no longer recognizes the owner.

  • Turn off the phone.
  • Enter the device into “Recovery Mode”: Connect the phone to the computer while holding the appropriate button (depending on the model – usually the side button or the volume down button).
  • Use “Finder” or “iTunes”: An error message will appear on the computer screen. Select the Restore function. The computer will download the latest software and overwrite the phone.

B. “Find My” service (iCloud)

If the “iPhone” is connected to the internet, you can wipe it remotely via another device:

  • Log in to iCloud.com/find.
  • Select your device and click Erase iPhone. This will remove all content and the screen lock.

IMPORTANT: After wiping, the device will be locked in Activation Lock status. To sell the phone, you must enter your “Apple ID” and password, and then remove the device from your account. Otherwise, the buyer will not be able to use it.

3. Solutions for “Android” users

The methods for resetting “Android” devices depend on the manufacturer (“Samsung”, “Google Pixel”, “Xiaomi”), but the basic principles remain the same.

“Google Find My Device”

This is the quickest way if a “Google” account was activated on the device:

  • Open google.com/android/find.
  • Select the Erase Device function.
  • The phone will perform the Wipe Data procedure as soon as it connects to the network.

Hard Reset via “Recovery Menu”

If the remote method does not work, use the physical buttons:

  • Turn off the phone.
  • Press and hold the Volume Up and Power buttons.
  • Select Wipe data/factory reset from the menu and confirm.

4. FRP (Factory Reset Protection) – the biggest obstacle to selling

All modern phones have FRP protection. This means that even after performing a Hard Reset, the phone will ask for the last used “Google” or “Apple ID” account details when turned on for the first time.

What you must do before selling:

  • After removing the password (after the reset), make sure to enter your account details yourself.
  • In the settings, go to Accounts and manually remove the “Google” or “iCloud” account.
  • Only then perform a second, final Factory Reset from the settings menu. Only such a phone will be “clean” for the buyer and will not cause activation issues.

5. Legal and security aspects: Why you should not use “Bypass” tools?

The internet is full of ads for programs that promise to “bypass” the password (Password Bypass Tools). Be careful:

  • Security risk: Most of these tools are infected with malware.
  • Privacy: Such programs can intercept your personal data while the phone is connected to the computer.
  • Resale value: A phone unlocked by the “bypass” method often has feature limitations (“FaceID”, “TouchID” or banking apps do not work), which significantly reduces the device’s price and is unfair to the buyer.

Conclusion

Forgetting the password before selling is not a tragedy if you remember your main account’s (“Apple ID” or “Google”) login details. The most important thing is to follow the official manufacturer instructions and not to try to save data where security architecture does not allow it. A properly prepared device ensures that your personal information does not fall into the hands of third parties, and the new owner receives a fully functional product.

📚 Sources

  • Zaman, M., et al. (2021). Analysis of Android Factory Reset Protection (FRP) and Security Implications. “Journal of Cyber Security and Information Systems”. A study on how FRP protects against unauthorized data recovery after factory reset. (Access via Google Scholar).
  • Apple Support (2025/2026). If you forgot your iPhone passcode. Official “Apple” technical support documentation on reset procedures.
  • Google Android Help. Reset your Android device to factory settings. Instructions on remote device wiping and FRP management.
  • Enck, W., et al. (2014/2020 update). A Study of Android User Privacy and Data Erasure. A study on why data becomes unrecoverable after Factory Reset on modern devices with FBE encryption.
  • International Association of IT Asset Managers (IAITAM). Best practices for mobile device data sanitization. Recommendations on how to safely prepare devices for the secondary market.

Read also: Forgot screen code, but I know my „Apple ID”: What are your chances of selling the device?