Skip to main content

iPhone iOS4 passcode lock workaround if you can't run iPhone config utility

In iOS 4 and 4.0.1, if you perform a "reset all settings" on your phone it can sometimes cause you to lose all your options in the "passcode lock" section of the phone settings, only leaving you with the "immediately" option.

This can be annoying as you will then have to enter your passcode immediately when your phone locks for any reason. I usually like mine set to a 15 minute delay so that I can use my phone frequently without typing in the passcode, but it still locks after a while.

This is a known bug, and should be fixed soon in an upcoming iOS version. Until then there are two workarounds.



One is to do a complete wipe and clean install of iOS4 - without restoring the phone from backup. A pain in the ass. (have to reinstall all your apps and contacts manually).

The other, easier option, is to use the iPhone configuration utility, and make a configuration for your phone with the passcode lock set to the length of time you would like. However, the iPhone configuration utility only runs on Mac OS 10.6. So what do you do if you have an older Mac OS?
(I have no idea about Windows versions, although these instructions work for any iPhone regardless of computer OS).

If you are one of the small number of people who have an iPhone running iOS 4.0 or 4.0.1 AND you for some reason cannot run the iPhone configuration utility:

You can make your own configuration file. Of course standard disclaimers apply - you do this at your own risk, I am not responsible if you mess something up, these are educational and informational only, yada yada, etc etc.

First, open a text editor and make a file with these contents:

<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>PayloadContent</key>
<array>
<dict>
<key>PayloadDescription</key>
<string>Configures security-related items.</string>
<key>PayloadDisplayName</key>
<string>Passcode</string>
<key>PayloadIdentifier</key>
<string>tempfix.passcodepolicy</string>
<key>PayloadOrganization</key>
<string></string>
<key>PayloadType</key>
<string>com.apple.mobiledevice.passwordpolicy</string>
<key>PayloadUUID</key>
<string>88fb7f31-c49d-4785-bf36-cbd7078800f3</string>
<key>PayloadVersion</key>
<integer>1</integer>
<key>allowSimple</key>
<true/>
<key>forcePIN</key>
<true/>
<key>maxGracePeriod</key>
<integer>15</integer>
<key>maxInactivity</key>
<integer>1</integer>
<key>pinHistory</key>
<integer>0</integer>
</dict>
</array>
<key>PayloadDescription</key>
<string>Profile description.</string>
<key>PayloadDisplayName</key>
<string>Lock Temp Fix</string>
<key>PayloadIdentifier</key>
<string>tempfix</string>
<key>PayloadOrganization</key>
<string></string>
<key>PayloadRemovalDisallowed</key>
<false/>
<key>PayloadType</key>
<string>Configuration</string>
<key>PayloadUUID</key>
<string>ce23a292-dc44-4771-a2d9-dd7a38e9555d</string>
<key>PayloadVersion</key>
<integer>1</integer>
</dict>
</plist>


Save that file with the extension ".mobileconfig", so something along the lines of "passcode.mobileconfig" or whatever would make sense to you.

This file will set your lock period to 15 minutes. You can change the "maxGracePeriod" value if you want something different.

Now, email the file to whichever email account you read on your iPhone. Open your mail on the iPhone and when you open that message, it should allow you to click on the .mobileconfig file and install it on your phone.

You can remove it at any time, and you can see above exactly what is in the mobileconfig file and since you created it yourself you should be able to trust it...

And finally, when you set a mobileconfig profile on an iPhone, it will force an encrypted backup in iTunes. This means that your iTunes sync process with your phone will take a little longer...

Hopefully the real fix from Apple will be out soon, and this won't be necessary.

Comments

Anonymous said…
Great tip, I've been using this to extend my auto lock timer to 4 hours instead of the restrictive 15 minutes imposed by my email account exchange server.

However, this weekend I had to re-establish my email account (it stopped syncing), and lost this workaround, I even removed it and reinstalled it with no luck. I didn't update my iphone and I'm still on 4.01

any idea what's going on?

Thanks again for the great tip.

Popular posts from this blog

Why shooting should be banned on public lands:

I don't need to say too much. The pictures speak for themselves. These pictures were taken at ONE spot on NF-45 forest road in Mt. Hood National Forest. The road is also known as "Memaloose" or "Maymaloose" road depending on which sign and map you read. It is maybe 50 miles outside of Portland, southeast on Hwy 224 - along the Clackamas river. The country up there is some of the most beautiful scenery on the planet. The ridge lines, and the deep jagged canyon from millions of years of raging water in the Clackamas river are something wonderful to behold. Driving up this road, we passed at least 5 spots that seemed to be popular with shooters, before we turned around. The road is a steep one lane paved road, and our GPS said we went from 700ft. at the river to 3000ft. almost instantaneously. At some points there are steep 1000 foot drops on either side of the road. It is breathtaking. Until you come across the shooting sites, which make you nauseous. I ...

Stop renaming Portland streets.

Not only have they chosen one of the best Blogger themes, but the folks at cafe unknown have also put together a wonderful piece laying out much more eloquently than I would - why we should not be renaming Portland's streets , and how there are better more appropriate options. Please Please stop renaming Portland's streets. Portland has history too. And changing the names of the streets to honor those who were not really even part of Portland's history does a disservice to all of those who have made Portland their home in the last 150 some odd years. If you want to name new streets - fine. But keep the old ones. Please.

Every bit of plastic ever made still exists.

If you have ever crate trained a pet dog, you will have found that dogs will do everything within their power to not shit where they sleep. A dog will hold it until their face turns blue. Unless of course they are already blue, then they will just get a darker shade. And if you (and the dog) have had the misfortune of getting stuck a little to long, and the dog HAS had to go in their crate, the minute the poor canine makes eye contact with you - you know it. The dog will feel as though they have betrayed the universe by pooping in the crate. Well, humans are assholes. We could learn a thing or two from our dogs. We only have one earth. Only one. No "fall back" or "plan B" exists despite what you may see in the Star Trek movies or read in the Cristopher Stasheff or Orson Scott Card novels. I imagine that some day some poor wasted species - a distant relative to the Human - who has had to survive underground or in bubbles without being able to breathe ...