16/08/2015
It's a frustratingly common scenario: you've changed your phone's lock screen code, perhaps for enhanced security, only to find yourself completely locked out because you've forgotten it. This can be a real inconvenience, leaving you unable to access your photos, messages, and essential apps. Fortunately, forgetting your passcode doesn't have to mean a permanent lockout or a costly trip to a repair shop. There are several reliable methods you can employ to regain access to your device.

This guide will walk you through various techniques, ranging from using dedicated software to utilising built-in device features, to help you unlock your phone when you've forgotten the code. We'll cover solutions for Android devices, looking at both older and newer versions, and touch upon general principles that might apply to other operating systems.
- Understanding Screen Locks and Why They Can Be Problematic
- Method 1: Using Professional Unlocking Software (iMyFone LockWiper for Android)
- Method 2: Unlocking Older Android Versions via Google Account
- Method 3: Factory Reset via Recovery Mode (Android 5.0 and Above)
- Method 4: Using Google Find My Device (formerly Android Device Manager)
- Method 5: Manufacturer-Specific Unlock Methods (Samsung & Huawei Example)
- Method 6: Using Android Debug Bridge (ADB) - Advanced Users
- What About iPhones?
- Frequently Asked Questions (FAQ)
- Conclusion
Understanding Screen Locks and Why They Can Be Problematic
Screen locks, whether they are PINs, patterns, passwords, fingerprints, or facial recognition, are primarily designed to protect your personal data from unauthorised access. While this is a crucial security feature, it presents a challenge when the legitimate owner forgets the access credentials. Modern smartphones are designed with robust security measures, which means bypassing these locks isn't always straightforward. However, understanding the available options can empower you to resolve the issue efficiently.
Method 1: Using Professional Unlocking Software (iMyFone LockWiper for Android)
For Android users, dedicated software can offer a swift and effective solution. Tools like iMyFone LockWiper (Android) are designed specifically to remove various screen locks, including PINs, patterns, passwords, fingerprints, and even facial recognition. This method is often the quickest and requires no technical expertise.
Key Features of LockWiper (Android):
- Versatile Lock Removal: Effortlessly removes PIN, pattern, password, fingerprint, and face locks.
- User-Friendly Interface: A step-by-step guide ensures a smooth process, even for beginners.
- FRP Bypass: Capable of bypassing Google Account (FRP) locks without needing the password.
- Broad Compatibility: Supports a wide range of Android smartphones from brands like Samsung, Huawei, OPPO, and more.
- 24/7 Support: Access to customer support for any queries during the unlocking process.
Steps to Unlock with LockWiper (Android):
- Download and Launch: Install and open LockWiper on your computer. Select the option to 'Remove Screen Lock'.
- Connect Device: Connect your locked Android phone to your PC using a USB cable.
- Verify Device Information: Ensure the software correctly identifies your device model. If not, manually input the correct details. The software will then prepare the necessary data package for your phone.
- Unlock Process: Follow the on-screen prompts. LockWiper will remove the screen lock. Your phone will likely restart, after which you can set up a new passcode.
Method 2: Unlocking Older Android Versions via Google Account
If your Android device runs on Android version 4.4 or earlier, you might be able to use your Google account to unlock it. After entering an incorrect passcode multiple times, you'll typically see an option like 'Forgot Pattern?' or 'Forgot Password?'.
Steps for Older Android Versions:
- Enter an incorrect passcode five times.
- Tap on the 'Forgot Pattern?' or 'Forgot Password?' option that appears.
- You will be prompted to enter your Google account username and password. Alternatively, if you had set up a backup PIN, you might be able to use that.
- After successful verification, you'll be able to set a new passcode or remove the existing one.
Note: This method is only applicable to older Android versions and requires you to remember your Google account credentials.
Method 3: Factory Reset via Recovery Mode (Android 5.0 and Above)
For Android devices running version 5.0 and newer, security measures are more stringent, often requiring a factory reset to bypass a forgotten screen lock. This process will erase all data on your device, so it's crucial to have a backup if possible.
Steps for Factory Reset:
- Power Off: Turn off your phone completely. Ensure it has sufficient battery charge.
- Enter Recovery Mode: Press and hold a specific combination of buttons simultaneously. This usually involves the Volume Up button and the Power button for about 15 seconds, or until the recovery menu appears. The exact combination can vary by manufacturer.
- Navigate Recovery Menu: Use the volume buttons to navigate through the menu options. Select 'Wipe data/factory reset'.
- Confirm Reset: Press the power button to confirm your selection. You'll likely need to confirm again by selecting 'Yes – delete all user data'.
- Reboot System: Once the reset is complete, select 'Reboot system now'.
Your phone will restart with its original factory settings, and the screen lock will be removed. You will need to set up your phone again as if it were new.
Method 4: Using Google Find My Device (formerly Android Device Manager)
If you had previously enabled the 'Find My Device' feature on your Android phone and linked it to your Google account, you can use it to remotely erase your device, which includes removing the screen lock.
Steps using Find My Device:
- Access Find My Device: Go to the official Google Find My Device website (google.com/android/find) on a computer or another device.
- Sign In: Log in using the same Google account credentials that are linked to your locked phone.
- Select Device: Choose your locked device from the list if you have multiple devices linked.
- Erase Device: Select the 'Erase device' option. This will factory reset your phone, removing the screen lock along with all your data.
- Confirm: Follow the prompts to confirm the erasure.
This method is effective but will result in data loss if you don't have a recent backup.
Method 5: Manufacturer-Specific Unlock Methods (Samsung & Huawei Example)
Some manufacturers offer their own services to help unlock devices if you've forgotten your password. This typically requires you to have registered with their specific cloud service.

For Samsung Devices (Find My Mobile):
- Go to the Samsung Find My Mobile website (findmymobile.samsung.com).
- Log in with your Samsung account credentials.
- Select your device and click on the 'Unlock' option.
- Follow the on-screen instructions to remove the screen lock.
For Huawei Devices (Cloud):
- Visit the Huawei Cloud website (cloud.huawei.com).
- Log in with your Huawei ID.
- Navigate to 'Find device'.
- Select your locked Huawei phone.
- Choose the 'Erase data' option and confirm with your Huawei ID password. This will perform a factory reset.
These manufacturer-specific methods also require prior setup and account credentials.
Method 6: Using Android Debug Bridge (ADB) - Advanced Users
For users with technical expertise, the Android Debug Bridge (ADB) can be used to remove certain types of locks, specifically pattern locks, by deleting a specific system file. This method requires enabling USB debugging on your phone before it was locked.
Steps using ADB (Requires USB Debugging Enabled):
- Download ADB: Obtain the ADB tools from the Android developer website.
- Connect Phone: Connect your phone to your computer via USB.
- Open Command Prompt: Navigate to the ADB installation directory and open a command prompt or terminal window.
- Enter Command: Type the command:
adb shell rm /data/system/gesture.key(or appropriate file for PIN/password) and press Enter. - Reboot: Restart your phone. The lock file should be deleted, removing the screen lock.
Caution: This method is technical and only works if USB debugging was previously enabled. Incorrect commands can cause issues.
What About iPhones?
While this article primarily focuses on Android, it's worth noting that unlocking iPhones when the passcode is forgotten involves different procedures, often requiring iTunes/Finder or specialised software like Tenorshare 4uKey if you cannot access your Apple ID.
Disabling 'Find My iPhone'
If you need to disable the 'Find My iPhone' feature (perhaps before selling or giving away your device), you typically need your Apple ID password. If you've forgotten this, you might need to use Apple's account recovery process or specialised tools.
- Method 1 (With Password): Go to Settings > [Your Name] > iCloud > Find My iPhone and toggle it off, entering your Apple ID password when prompted.
- Method 2 (Without Password - using 4uKey): Software like Tenorshare 4uKey can remove the Apple ID and disable 'Find My iPhone' without the password, but this usually involves erasing the device.
- Method 3 (iCloud.com): You can also log into iCloud.com, go to 'Find iPhone', select 'All Devices', choose your device, and click 'Remove from Account'. This is useful if you don't have the device with you but remember your Apple ID and password.
Frequently Asked Questions (FAQ)
Q1: Will I lose my data if I unlock my phone?
A1: Yes, methods like factory reset and some software solutions will erase all data on your phone. It's always best to have a recent backup.
Q2: Can I unlock my phone without knowing my Google account password?
A2: If you've forgotten your Google account password, you'll need to recover it first through Google's account recovery process before you can use methods that rely on your Google account (like Find My Device or the older Android unlock feature).
Q3: Is it safe to use third-party unlocking software?
A3: Reputable software from well-known developers is generally safe. Always download from official sources to avoid malware. Tools like iMyFone LockWiper are designed with security in mind.
Q4: What if my phone brand isn't listed in the examples?
A4: The principles of factory reset via recovery mode and using Google's Find My Device are common across most Android manufacturers. For manufacturer-specific services, check your phone brand's official support website.
Conclusion
Forgetting your phone's lock screen code can be a stressful experience, but it's not an insurmountable problem. Whether you opt for a user-friendly software solution like iMyFone LockWiper (Android), utilise your Google account, perform a factory reset, or leverage manufacturer-specific tools, there's a method to help you regain access. Remember to back up your data regularly to mitigate potential loss during the unlocking process. Choose the method that best suits your device's operating system and your technical comfort level.
If you want to read more articles similar to Unlock Your Phone: Forgotten Codes Solved, you can visit the Automotive category.
