If it is jailbroken, then download the free program diskaid
You have two options:
Option 1: Simple, but you lose other saved passwords and configuration.
- find and rename the following file:
Code:
/private/var/Keychains/keychain-2.db
You can rename it to whatever, it does not matter. You can even delete it.
- Restart the phone and you will have no passcode lock.
Option 2: More advanced, but just removes the passcode
- using diskaid copy to your local machine the file
Code:
/private/var/Keychains/keychain-2.db
- Install a free sqlite editor, I used sqlitebrowser Browse SQLite Database Browser Files on SourceForge.net
- Open your local copy of keychain-2.db and run the following SQL command.
Code:
delete from genp where acct = "DeviceLockPassword";
- Save the modified keychain-2.db and copy it back to the iPhone with diskaid. Make sure you overwrite the existing file.
- Restart the phone and you will have no passcode lock.