+ Reply
Page 1 of 6 123 ... LastLast
Results 1 to 20 of 115

Your favorite Apple, iPhone, iPad, iOS, Jailbreak, and Cydia site.


Thread: Restoring a Jailbroken iPhone made Painless (relatively)

is a discussion within the

General iPhone Chat

forums, a part of the

iPhone Modding

section;
One of the most sure-fire ways to fix a myriad of problems with an Iphone is to restore the firmware in iTunes. One of the most dreadded tasks apparently is
...
  1. #1
    Retired Moderator bhz1's Avatar
    Join Date
    Sep 2007
    Location
    Southeastern Pennsylvania
    Posts
    2,533
    Thanks
    93
    Thanked 363 Times in 273 Posts

    Default Restoring a Jailbroken iPhone made Painless (relatively)
    One of the most sure-fire ways to fix a myriad of problems with an Iphone is to restore the firmware in iTunes. One of the most dreadded tasks apparently is the need to restore a modded and jailbroken iPhone. I have come up with a process that is realitvely simple and painless. Many people want to restore from backup- but this generally only causes problems in the long run from carrying forward corrupted data so always restore as "new".

    This process assumes a jailbroken, modded iPhone with both Cydia and AppStore apps installed, 2G or 3G on 2.x firmware.

    1. If you do not already have installed, install AppBackup and Chronus from Cydia. Note on these apps, if you installed apps after installing Chronus, you may want to reinstall so that the new apps show up in the list. AppBackup will not reliably restore app data in 3.1.2 so you should back everythign up using CHronus. It now works well for both jailbreak apps and AppStore apps.

    1a. Purchase and install PkgBackup form Cydia. It is well worth the cost as a time saver in reinstalling Cydia apps. Backup your packages and then dont forget to sync in iTunes before you restore.

    2. Use those apps to backup whatever apps you want data saved for.

    3. Using SSH (WinSCP, for XP/Vista or Fugu or Cyberduck on OS X) copy the following to your computer:
    a. /var/Stash/Themes<random characters>
    b. /var/mobile/Library/Preferences/TimeCapsule
    c. /var/mobile/Library/Preferences/com.apple.mobilephone.speeddial.plist (if you have favorites saved in your phone app)
    d. /var/mobile/Library/AppBackup
    e. /var/mobile/Library/YouTube (if you have bookmarks saved- Chronus does not copy the VideoCache)
    f. /var/mobile/Library/MxTube (if you have that app and have downloaded videos saved- Chronus does not save the VideoLibrary.plist).
    g. if you want to backup sms history, call history, cache, bookmarks and contacts (besides using itunes) then copy the folders of the same name in User/Library folder

    Note: If you have a Mac, you can simply SSH the Themes folder , skip steps b-f and then SSH the entire var/mobile/Library folder to your desktop.

    4. Sync iPhone in iTunes.

    5. Restore firmware in itunes - restore iPhone as NEW.

    6. After new firmware is installed and phone is activated, uncheck the box that says automatically sync iPhone when connected

    7. Jailbreak with your preferred jailbreak method.

    8. Open Cydia, do all the upgrades

    9. Install Open SSH from Cydia (always good to have when installing apps in case something goes wrong)

    9a. Install PkgBackup from Cydia. You will NOT have to repurchase it.


    10. Reboot phone

    11. Resync iPhone, This next part is crucial, If you sync contact, email, bookmarks and calendars before you click sync, make sure you scroll down to the bottom of the Info screen and check off the box that says replace info on iPhone this sync only" (not exact wording) I believe many people lose their info this way, since the iphone at this point is blank, if you do not do this step your sync will erase your data on the computer. Reboot iPhone.

    12. Once all your apps both Cydia and AppStore ones are installed, install Chronus and AppBackup from Cydia.
    Note: If you theme with Winterboard, or use Categories folders, you may install those apps but do not do anything with them yet

    13. SSH all the files and folders you previously saved to your computer back to their appropriate locations on your iPhone.

    13a. You will probably have to fix file wonership on teh AppBackup and TimeCapsule Library folders in order to restore the data you saved. Using Putty on Windows or Terminal on a Mac type the following commands hitting enter after each command:
    chown -R mobile:mobile /var/mobile/Library/AppBackup/
    chown -R mobile:mobile /var/mobile/Library/Preferences/TimeCapsule


    13b. You may also need to change permissions on the com.apple.mobilephone.speeddial.plist to 600 to get the phone favorites to show up. This you can do with WinSCP (Windows) or Cyberduck or Fugu (Mac)


    14. Open up Chronus and select the apps you want data restored from.

    15. Open up AppBackup and restore app data for your selected apps.

    16. Now you may apply your Winterboard theme and create your Categories folders.

    17. Reboot iPhone for good measure.

    Enjoy.

    This entire process takes no more than about an hour and I have about 60 apps installed. Most of that hour is spent restoring the firmware and resyncing. reinstalling Cydia apps is not a terrible process. I usually just scroll through the list of apps and methodically install as i come up on an app i use. However, using PkgBackup greatly reduces the time involved in reinstalling the Cydia apps. PkgBackup will not reinstall any of the apps that are not compatible with your firmware or hardware. I used it when I upgraded from a 3G to a 3GS and it worked flawlessly.
    Last edited by bhz1; 10-31-2009 at 05:43 PM. Reason: new edits in blue- updated for PkgBackup and 3.0; edits in purple - updated for 3.1.2


    If I've helped you, you can help me by clicking on that Thanks button.
    iPhone, the Swiss Army knife of the 21st Century.

  2. The Following 66 Users Say Thank You to bhz1 For This Useful Post:

    AJP007 (10-13-2010), allanes5 (09-10-2009), Amraam (06-20-2009), Argon27 (07-08-2009), blandv (10-16-2009), bojigga (07-16-2009), Boker (03-25-2009), br1sk (10-19-2009), cellmate75 (09-16-2009), chuckplumber (06-20-2009), commandercool009 (06-19-2009), cooteruk (01-13-2009), CreoleSugar (09-27-2009), cruel0r (06-23-2009), cyberpwnee (05-18-2011), danburnsred (04-27-2009), darwina (08-08-2010), dghazfan (06-22-2009), drool3r (03-28-2011), eastny (06-19-2009), eddietah (08-07-2010), ereid97 (04-06-2009), extremzocker (06-20-2009), flytothesky (03-21-2011), fobmatik (09-05-2009), gatorboy (11-23-2008), greatfolded (11-11-2009), HarleyiPhone (04-04-2009), hotmommak (09-07-2009), jdineshk (06-23-2009), Joshi001 (06-30-2009), josh_green_1 (03-24-2009), jrhudson (09-15-2012), KGameLover1 (08-06-2009), klown (06-07-2009), Kyle Matthews (11-20-2008), Librador (10-12-2009), LuvMYiPhone (05-07-2009), MaxRabbit (11-23-2008), mihuber (11-19-2009), Mobster103 (06-22-2010), nevarDeath (12-02-2008), oldskoolkid13 (08-09-2009), Oliva94 (05-27-2009), Pebblez (10-20-2009), phreakwenci (10-21-2009), queenjones75 (02-23-2010), red rhino (10-19-2009), Sandrunner (02-22-2011), sebs8 (04-29-2009), ShaneDugas (01-27-2011), Siggy9 (06-19-2010), slade (05-22-2009), slidingmike (08-31-2009), smw42223 (06-21-2009), sstroud (09-15-2009), stereosympathy (03-09-2009), Stylinjatt (07-26-2009), superscreen (06-18-2009), szr (11-19-2009), tambra77 (07-05-2010), tjflyboy (11-25-2008), truforce (03-30-2009), xhenryrx (06-19-2009), yiboy (10-04-2009), z3n (11-22-2008)

  3. #2
    Retired Moderator one1's Avatar
    Join Date
    Sep 2007
    Location
    In my own little world
    Posts
    10,318
    Thanks
    349
    Thanked 1,180 Times in 730 Posts

    Good stuff, very similar to my SSH restore method. http://www.modmyi.com/forums/general...ken-phone.html

    I just grab the entire library all at once.
    Screw #Winning, I'm #Juanning
    iMac 27" i5 quad 2.8Ghz (1TB), MacBook Pro 17" 2.6, iPhone 4s

  4. The Following 5 Users Say Thank You to one1 For This Useful Post:

    allanes5 (09-11-2009), Amraam (06-20-2009), cooteruk (01-13-2009), slade (06-05-2009), szr (11-19-2009)

  5. #3
    ninja of MMi cricketlang's Avatar
    Join Date
    May 2008
    Location
    Draper, UT
    Posts
    2,124
    Thanks
    89
    Thanked 243 Times in 218 Posts

    ill be saving this post to my favorites. as i will soon be needed to do this again and have been using the SSH method.
    The beatings will continue until morale improves.

  6. #4
    Retired Moderator bhz1's Avatar
    Join Date
    Sep 2007
    Location
    Southeastern Pennsylvania
    Posts
    2,533
    Thanks
    93
    Thanked 363 Times in 273 Posts

    Quote Originally Posted by one1 View Post
    Good stuff, very similar to my SSH restore method. http://www.modmyi.com/forums/general...ken-phone.html

    I just grab the entire library all at once.
    I remember when you posted that method. For some reason i was never able to copy the entire library. I have forgotten the exact files, but it would not allow copying of certain files within the Library folder and end the copy. Also took f o r e v e r. Maybe it was my old XP laptop. Havent tried to copy the entire Library on the Macbook yet.


    If I've helped you, you can help me by clicking on that Thanks button.
    iPhone, the Swiss Army knife of the 21st Century.

  7. #5
    iPhoneaholic
    Join Date
    Aug 2007
    Location
    Highland Park, IL
    Posts
    490
    Thanks
    28
    Thanked 31 Times in 29 Posts

    see the problem with the daunting task isn't the back up of your files, for me atleast, nor keeping my theme (all that's backed up already as part of my normal back up process) its getting all my things like caterogies set up again how i have it and other things that take days to set just right. all those apps from cydia to reinstall and stuff. that's the REAL problem with restoring the phone for me.

    idk about u guys with XP but my on macbook i had no trouble coping the WHOLE libary folder and its VERY quick, but so is the back up process in itunes on my macbook too. takes like 5min if that, unlike almost 2hrs on my XP machine, but maybe that has been solved with 2.1 and 8.0.1

  8. The Following User Says Thank You to Alperovich For This Useful Post:

    Onkar02 (02-27-2010)

  9. #6
    Retired Moderator bhz1's Avatar
    Join Date
    Sep 2007
    Location
    Southeastern Pennsylvania
    Posts
    2,533
    Thanks
    93
    Thanked 363 Times in 273 Posts

    My curiosity aroused, I decided to try copying the Library folder from the iPhone to my Macbook.

    YES!!! It is much faster to copy on OS X than on Windows. Not only was it slower on Windows, it would crash with error messages about not being able to copy certain files. In retrospect, perhaps there are some OS X files that are not readable in Windows? In very new to the Mac platform (other than iPhones) so I'm learning as well.


    If I've helped you, you can help me by clicking on that Thanks button.
    iPhone, the Swiss Army knife of the 21st Century.

  10. #7
    Green Apple
    Join Date
    Jul 2008
    Posts
    41
    Thanks
    28
    Thanked 0 Times in 0 Posts

    Nice tutorial. Using it to upgrade to 2.2

  11. #8
    Green Apple
    Join Date
    Sep 2008
    Posts
    90
    Thanks
    1
    Thanked 5 Times in 3 Posts

    Depending on what I decide to do, this is a really good reference on how to restore after jailbroken. Hmmm ...

    What to do ...

  12. #9
    Retired Moderator bhz1's Avatar
    Join Date
    Sep 2007
    Location
    Southeastern Pennsylvania
    Posts
    2,533
    Thanks
    93
    Thanked 363 Times in 273 Posts

    Just about done my re-modding after upgrade. SO far so good. What took the longest was downloading the BigBoss repo apps since that server is apparently overwhelmed today.


    If I've helped you, you can help me by clicking on that Thanks button.
    iPhone, the Swiss Army knife of the 21st Century.

  13. The Following User Says Thank You to bhz1 For This Useful Post:

    CaryDude (11-23-2008)

  14. #10
    Livin the iPhone Life CaptainChaos's Avatar
    Join Date
    Sep 2008
    Location
    In a van down by the river
    Posts
    4,823
    Thanks
    551
    Thanked 515 Times in 427 Posts

    Quote Originally Posted by bhz1 View Post
    My curiosity aroused, I decided to try copying the Library folder from the iPhone to my Macbook.

    YES!!! It is much faster to copy on OS X than on Windows. Not only was it slower on Windows, it would crash with error messages about not being able to copy certain files. In retrospect, perhaps there are some OS X files that are not readable in Windows? In very new to the Mac platform (other than iPhones) so I'm learning as well.
    I have the same issue...when it gets to /private/var/mobile/Library/Logs/CrashReporter it will not copy any of the files as it says they are empty when they are not empty.

  15. #11
    Retired Moderator one1's Avatar
    Join Date
    Sep 2007
    Location
    In my own little world
    Posts
    10,318
    Thanks
    349
    Thanked 1,180 Times in 730 Posts

    Quote Originally Posted by bhz1 View Post
    I remember when you posted that method. For some reason i was never able to copy the entire library. I have forgotten the exact files, but it would not allow copying of certain files within the Library folder and end the copy. Also took f o r e v e r. Maybe it was my old XP laptop. Havent tried to copy the entire Library on the Macbook yet.
    the non transferable files are locked system files which are irrelevant because you can neither remove them nor write over them when reinstalling. just drop and go.
    Screw #Winning, I'm #Juanning
    iMac 27" i5 quad 2.8Ghz (1TB), MacBook Pro 17" 2.6, iPhone 4s

  16. #12
    Retired Moderator bhz1's Avatar
    Join Date
    Sep 2007
    Location
    Southeastern Pennsylvania
    Posts
    2,533
    Thanks
    93
    Thanked 363 Times in 273 Posts

    Quote Originally Posted by one1 View Post
    the non transferable files are locked system files which are irrelevant because you can neither remove them nor write over them when reinstalling. just drop and go.
    On the mac it works fine to do that. Everything is there, but on the XP laptop it stops the file transfer.


    If I've helped you, you can help me by clicking on that Thanks button.
    iPhone, the Swiss Army knife of the 21st Century.

  17. #13
    Green Apple
    Join Date
    Nov 2008
    Posts
    35
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Thank you for the excellent tutorial! Is there ANY way to keep all the apps in their respective Categories folders when I do a restore? That is probably the most time consuming part of setting up a restore for me. Also, maybe someone knows of a better app to use instead of Categories to keep all my apps (62) categorized?

  18. #14
    Retired Moderator bhz1's Avatar
    Join Date
    Sep 2007
    Location
    Southeastern Pennsylvania
    Posts
    2,533
    Thanks
    93
    Thanked 363 Times in 273 Posts

    Quote Originally Posted by macperry View Post
    Thank you for the excellent tutorial! Is there ANY way to keep all the apps in their respective Categories folders when I do a restore? That is probably the most time consuming part of setting up a restore for me. Also, maybe someone knows of a better app to use instead of Categories to keep all my apps (62) categorized?
    Basically Categories is the best app for this so far. I'm not sure about avoiding the need to reinstall apps into folders. I have about 60 apps and it doesnt take too long to set up for me.


    If I've helped you, you can help me by clicking on that Thanks button.
    iPhone, the Swiss Army knife of the 21st Century.

  19. #15
    What's Jailbreak?
    Join Date
    Dec 2008
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    dude is there any way for me to go back to the original set as mine i s jailbroken on the first day i bought the phone and people told me that now suport and warranty is void please help with this is there any way make it the original packaging set?

  20. #16
    Retired Moderator bhz1's Avatar
    Join Date
    Sep 2007
    Location
    Southeastern Pennsylvania
    Posts
    2,533
    Thanks
    93
    Thanked 363 Times in 273 Posts

    Quote Originally Posted by bharath_yp View Post
    dude is there any way for me to go back to the original set as mine i s jailbroken on the first day i bought the phone and people told me that now suport and warranty is void please help with this is there any way make it the original packaging set?
    Restore in iTunes will restore to factory settings.


    If I've helped you, you can help me by clicking on that Thanks button.
    iPhone, the Swiss Army knife of the 21st Century.

  21. #17
    What's Jailbreak?
    Join Date
    Jul 2008
    Posts
    13
    Thanks
    1
    Thanked 0 Times in 0 Posts

    I have saved roms games will those get deleted ?

  22. #18
    Retired Moderator bhz1's Avatar
    Join Date
    Sep 2007
    Location
    Southeastern Pennsylvania
    Posts
    2,533
    Thanks
    93
    Thanked 363 Times in 273 Posts

    You can SSH thefolder with your roms to your computer as well then move them back after u restore, jailbreak and install apps. The folder should be in mobile/Library or mobile/Media

  23. #19
    What's Jailbreak?
    Join Date
    Dec 2008
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Okay, I have tried this process several times now and it all goes fine until I get to the part of resyncing after setting up the iphone as a new phone.

    I set it up as a new phone and then it comes up to that screen that asks me to autosync contacts, etc... and autosync apps. I have told it not to do either and I have told it to sync contacts. No matter what way I seem to do it, it auto-syncs and over-writes the itunes stored settings with the now blank ones.

    Any help on this step. I can restore the backup and that gets all of my information back so that I can try it again, but it has been like 5 times now and I just can't figure out how to get around this part. Thanks.

  24. #20
    box
    box is offline
    What's Jailbreak?
    Join Date
    Sep 2007
    Posts
    23
    Thanks
    0
    Thanked 0 Times in 0 Posts

    ok one problem. is there a step i missed. i got my fully jail broken. i got a 3g 8 gig. 2.1- but it wont' read my at&t sim. it doesn't detect service? any suggestions.

+ Reply
Page 1 of 6 123 ... LastLast
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts