How to Break an iPhone Code

Techwalla may earn compensation through affiliate links in this story. Learn more about our affiliate and product review process here.
You can break your iPhone passcode by renaming the "_locked" file.
Image Credit: David Paul Morris/Getty Images News/Getty Images

The iPhone comes with the option to set a passcode on your iPhone for security purposes. This prevents users from gaining access to the phone's contents before entering the four-digit passcode. However, if you forget your own passcode, you can find yourself locked out of your iPhone. You can break the passcode lock and regain access to your iPhone by renaming the file on the iPhone that sets it to the locked status.


Step 1

Connect your iPhone to your computer using the USB cable that came with the iPhone. Wait for your computer to recognize your iPhone.

Video of the Day

Step 2

Click on the "Start" menu in the bottom left corner of your computer and select the "My Computer" or "Computer" option from the Start menu that pops up. Wait for the "Computer" window to load. Click on the iPhone icon in the "Computer" window.


Step 3

Click the "Tools" option in the menu bar at the top of the "Computer" window. Select the "Folder Options" or "Options" option. Wait for the "Options" panel to load. Select the "View" tab in the "Options" panel. Click the check box labeled "Show Hidden Files and Folders." Close the "Options" panel.


Step 4

Click on the "Ipod_Control" folder to open it.


Step 5

Click on the folder labeled "Device" to open it.

Step 6

Locate the file named "_locked" in the list of files in the "Device" folder and click on it to select it. Press the "Enter" key on your keyboard to edit the name of the file. Type in the new file name "_unlocked" and press the "Enter" key again to rename the file and set your iPhone to the unlocked status. Close the window.


Step 7

Click on the "Start" button again and select the "Computer" option. Right-click on the iPhone icon and select the "Safely Remove" option to eject your iPhone and begin using it again.



Report an Issue

screenshot of the current page

Screenshot loading...