Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

How to get a jailbroken iPhone out of a locked screen loop iOS devices
On jailbroken iPhones where sbsettings is installed (nearly all of them) and the 'autolock' toggle is also installed, there is a chance of getting permanently stuck in a lock screen loop. When you slide to unlock the iPhone, it unlocks for a 10th of a second, then locks again.

The problem is that this unlock-lock loop stays through a restore. Try as you might: DFU mode, restarting, restoring from backup, etc., all will end with an iPhone in the same loop. This problem is caused by a bug in sbsettings' autolock toggle.

This is how I fixed mine when it happened to my phone last night...

Now when I mean "fixed," I mean getting all my photos, SMS, calendars, contacts, app settings, call log, etc. back, but the phone is left unjailbroken. Since we have to do a restore through iTunes, the phone will be unjailbroken when finished. A re-jailbreak is necessary from the get-go.
  1. Plug in your locked iPhone and manually force a backup (command-click on its icon in iTunes, select Backup. Let's say this backup happens at 2:15am.
  2. Do a restore in iTunes.
  3. When the restore is complete, it asks you if you want to backup your phone from a previous backup. I picked one from a few days ago.
  4. This is an old version of my iPhone, still without all the stuff I've done in the last few days. Force a backup in iTunes. Let's say this backup happens at 2:25am. If the restore does not get rid of the lock-autolock issue, you'll have to go farther back in your restore history. This trick might work without backing up to a previous version of your iPhone; I did not test this from a vanilla backup.
  5. Wait a few moments.
  6. After a few moments, on the vanilla iPhone, set autolock to Never; do not change anything else.
  7. Do a backup of this iPhone, noting that you have changed only one setting. Let's say this backup happens at 2:30am.
  8. Navigate to your user's Library/Application Support/MobileSync/Backup folder in Finder.
  9. There will be several, if not a dozen or more, backups of your iPhone here. All of them will have really long alpha-numeric names. Sort by Date Modified, and you should note that the 2:15, 2:25, and 2:30 backups are the three most recent ones. Go into the 2:30 backup.
  10. In the 2:30 (auto-lock never) backup, you will see more than a thousand files. Mine showed over 1800. Sort these by Date Modified.
  11. If everything comes out right, there should only be a couple dozen files that were modified in the last 10-25 minutes. For me there were about 40. Copy all of these files.
  12. Go to the 2:15 backup, paste the copied files, replacing those that already exist.
  13. Go back to iTunes, and restore from the 2:15 backup.
All of my messages, settings, app data, music, photos, etc. came back on a working iPhone. A re-jailbreak is necessary to get jailbreak apps back, but at least you have a working phone with all the important stuff back.

There are no instructions online for solving this problem. A few forums say that "ur screwed maaan" or "iBrick, lolz" or "try the Genius Bar" but nothing useful. I have found no resource for solving this problem anywhere. This trick something that I though of, tried, and it worked. I hope that it helps someone else gets their iPhone unstuck.

[robg adds: I haven't tested this one.]
    •    
  • Currently 2.81 / 5
  You rated: 2 / 5 (16 votes cast)
 
[18,199 views]  

How to get a jailbroken iPhone out of a locked screen loop | 11 comments | Create New Account
Click here to return to the 'How to get a jailbroken iPhone out of a locked screen loop' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
How to get a jailbroken iPhone out of a locked screen loop
Authored by: ShadowBottle on Jan 25, '10 07:55:01AM

Whoa. I didn't know this was a problem. I think I'm just going to uninstall the toggle. This solution is too much work. Weak. I wonder if the dev plans on fixing it or not.

Edit: I'll be sure to let all my friends know this bug exists. This is the first I'd heard of it.

Edited on Jan 25, '10 07:56:16AM by ShadowBottle



[ Reply to This | # ]
How to get a jailbroken iPhone out of a locked screen loop
Authored by: Andrew J Freyer on Jan 25, '10 08:47:54AM

I'm not sure why this hint didn't properly attribute, but this is my solution. Let me tell you - the autolock loop is a pain in the ass.

I think the important takeaway though is that similarly named files in different backups can be drag-and-drop replaced. That's something I didn't know before.



[ Reply to This | # ]
How to get a jailbroken iPhone out of a locked screen loop
Authored by: robogobo on Jan 25, '10 10:22:38AM

The better hint is to uninstall the toggle. Thanks for this.



[ Reply to This | # ]
How to get a jailbroken iPhone out of a locked screen loop
Authored by: Andrew J Freyer on Jan 25, '10 12:49:16PM

Agreed - it just doesn't work properly yet.



[ Reply to This | # ]
How to get a jailbroken iPhone out of a locked screen loop
Authored by: dennis.se on Jan 25, '10 12:21:36PM

this has happened a couple of times to me, and what I've done is that I restart the phone and unlock it as quickly as I can - every time it locks up again, unlock it quickly. do this for 20-40 seconds, and it goes away.



[ Reply to This | # ]
How to get a jailbroken iPhone out of a locked screen loop
Authored by: Andrew J Freyer on Jan 25, '10 12:48:41PM

I tried this for probably an hour after seeing a suggestion online... No where near long enough to initiate the menu. I wish it was this easy for me...



[ Reply to This | # ]
How to get a jailbroken iPhone out of a locked screen loop
Authored by: JBCheong on Jan 25, '10 03:13:56PM

Give this a try:

ssh into your device, backup and edit the following file:

/var/mobile/Library/Preferences/com.apple.springboard.plist

Look for SBAutoDimTime and SBAutoLockTime, and change their values to -1 (negative one). Save the edited .plist and reboot your device immediately using SBSetting's Power->Reboot.

Reading how to fix this issue, it looks like you are trying to restore from an old backup where the Autolock setting was set at Never . If so, editing the mentioned .plist should accomplish the same thing painlessly.

My SBSettings' Autolock toggle is working fine so regretfully I can't test to confirm this method will work or not.

Regards, jb cheong

PS. I'd use the excellent freeware, Pref Setter (http://www.nightproductions.net/), to edit .plist files.



[ Reply to This | # ]
How to get a jailbroken iPhone out of a locked screen loop
Authored by: NedScott on Jan 25, '10 05:52:43PM

I was thinking of installing that toggle... guess not. Thanks for the heads up!



[ Reply to This | # ]
How to get a jailbroken iPhone out of a locked screen loop
Authored by: pezdi on Feb 21, '10 09:23:20AM

I managed to fix mine (iPhone 3g - jailbroken with autolock endless loop issue/springboard) as follows:

I read somewhere that the screen unlocks for 0.10s then relocks, so I simply kept swiping at the top quite furiously, as fast as i could (trying to activate springboard) while using another finger to unlock as usual. After a few attempts, the springboard popped down, allowing me to restore the autolock toggle to it's previous setting. This genuinely worked and I hope others will find this info useful.

Regards

pezdi



[ Reply to This | # ]
How to get a jailbroken iPhone out of a locked screen loop
Authored by: dvspoet on Jul 22, '10 10:13:17PM

Thank you so much for posting that!!!! It saved me a lot of hassle!



[ Reply to This | # ]
How to get a jailbroken iPhone out of a locked screen loop
Authored by: pitcherday on Aug 13, '12 06:57:06PM

I used the free program iDevice Explorer (like SSH-ing from your desktop computer) to get into the root system. From there I deleted the SB Settings app, did a hard restart and the problem was fixed. Didn't restore, didn't lose any apps.



[ Reply to This | # ]