There's good news and bad news to people who've forgotten the iPhone passcode. The good news is that all is not lost. The bad news is that you can't recover the passcode in anyway.
Unless of course, by a stroke of luck and genius, your brain remembers the passcode again.
The only way to regain an entry into your iPhone is to restore it. Yes, that's going to delete all data but, incidentally, even when you are locked out of your iPhone, you can backup data from it.
That's kind of the irony that you don't want to happen to you but hey, every once in a while, someone gets locked out of his house, car or email accounts. Add iPhones and iPads to that list.
This is the process we'll be following:
- Backup all your data via iTunes
- Put your iPhone in DFU mode to auto-restore in iTunes
- Restore the iPhone from the saved backup
It's actually a simple method but it also means two things:
- You'll most likely upgrade your iPhone / iPad to the latest version
- If you had jailbreak, you'll lose that
So here's how to get back into your iPhone and reset the passcode:
#1. Backup All Data: Before you proceed, make sure you have disabled backup encryption in iTunes. (in iTunes Summary section).
Connect your iPhone to the computer with the USB cable. ITunes should fire up (if not, open it up). Click on your device on the side-bar (or top-right). In the Summary tab, click on Back Up Now. It might take a while before the process is done. To check if the backup was successful, click on Restore Backup and check the date on the latest backup file.
#2. Restore in DFU: To put your iPhone in DFU mode, follow instructions here. iTunes will automatically ask you to restore the device. Clicking on Restore will update the firmware of your iPhone. This will erase all data, including removal of passcode.
#3. Restore from Backup:Now, don't setup your iPhone. Just connect it to iTunes (remove it once and re-connect it to the computer). Now, click on the device name (from top-right or from side pane) and in the Summary tab, click on Restore Backup. Select the recent backup and your iPhone should be back. The passcode should be gone now.
I know that restoring your iPhone with loss of data sounds scary but if you are stuck at the lockscreen because you forgot your passcode, this is the best way. I've tried jailbreak methods but none seem to be working now.