Restore a jailbreaked iPhone as new
16/03/09 19:08 categorie: postproductie
THIS TUTORIAL SHOWS THE NECCESSARY STEPS YOU HAVE TO TAKE FOR A SUCCESSFUL 'INSTAL AS NEW' RESTORE FOR JAILBROKEN IPHONES WITH FIRMWARE 3.1.2. THIS METHOD RESTORES YOUR IPHONE USING A 'CLEAN INSTAL'. IF YOU WOULD LIKE TO RESTORE YOUR IPHONE WITH A PREVIOUS BACKUP FROM ITUNES, FOLLOW THE TUTORIAL 'INSTALL FROM BACKUP' METHOD IN STEAD.
NOTE
*do this in the exact right order. Other orders may crash your iPhone.
*Tested with: 3gs, 3.1.2, jailbroken with Blackra1n 3 RC, baseband 05-11-07, production week 41
*This tutorial makes a distinction between 'backup apps' and 'backup data files' of apps, like settings, login information, documents and logs.
*iPhone backup files reside here: ~/Library/Application Support/MobileSync/Backup/
*I never manage to restore data using ssh without crashing my iphone. Aparently I do something wrong, but I don't know what. I admitted the procedure of using SSH in this tutorial, because it makes it possible to safe call history, and the downloaded video's from Your Tube and MX Tube for example. But if you don't trust SSH either, just skip this. More info about using SSH.
BACKUP
1. Backup data of jailbroken apps and legitimate apps:
a. Chronus backups the settings of the legitimate apps including SMS messages and some of the jailbroken apps.
b. The Chronus backup file resides in var/mobile/Library/Preferences/TimeCapsule. You have to backup this file by moving it manually from your iPhone to your computer (by emailing it in iFile as a zipped file or usng SSH or to email individual settings in Chronus).
c. You may want to SSH all data of jailbroken apps that Chronus doesn't backup but you do want to safe: video's downloaded with MX Tube for example. They reside in root/var/mobile/Library. You may even want to SSH the entire var/mobile/Library folder to your desktop. That could take a while though, and permission issues can mess things up. (I don't recomment this).
d. Backup springboard layout with Pkgbackup (I am not sure if this is working; I don't have personal experience with restoring the springboard layout)
2. Backup jailbroken apps: Rock can automaticly backup installed apps after installing or deinstalling apps on your iPhone. Alternatively, use Pkgbackup. If you choose to use Pkgbackup, delete the address book entry with all the numbers (Pkgbackup stores the backup file in this address book entry) before you run the backup; Pkgbackup sometimes gets confused of its own previous backups. Don't forget to sync address book in the next step to safe the backup file of Pkgbackup.
3. Backup legitimate apps: Sync iPhone with iTunes to backup legitimate apps, music, foto's and contacts. Syncing address book also puts the backup file of Pkgbackup on your computer. NB: The sync method doesn't backup settings and data like SMS history and stats. To backup these, do either step 1c (at your own risk!) or make a backup of your iPhone in iTunes.
RESTORE A BACKUP
4. Restore firmware:
a. Option/alt-click 'Restore' in the iPhone dialogue window in iTunes to restore the original firmware 3.1.2 for 3gs, and look for that file on your computer (or download it here). Towards the end of the firmware upload disconnect iTunes from the internet; iTunes is going to check with the iTunes store the sim card after the restore completed. Allow however de activation of the iPhone at the beginning of the firmware upload.
b. After the upload is finished, select 'install as new'. If you trust your iTunes backup and would rather select 'restore from backup' use this tutorial.
c. Deselect 'automatic sync contacts' and 'automatic sync apps' and click 'done'
d. Close iTunes and jailbreak the firmware: run Blackra1n RC3 (not version RC1) from your computer. Let the app do it's work and wait for the iPhone to reboot.
5. Preperation:
a. Connect to internet via wifi.
b. Unlock the iPhone: click the Blackra1n icon on the iPhone and run Sn0w: the telephone carrier should become visible in the left upper corner.
c. Click the Blackra1n icon again and install Cydia. Run Cydia after installing it, and install the Cydia essential updates.
d. Click the Blackra1n icon again and install Rock. Run Rock after installing it, and install the Rock essential updates.
e. Reboot the iPhone (important!)
f. Instal Mobile Substrate, Winterboard and SBSettings in Cydia. The iPhone will reboot after installing Mobile substrate.
g. Add the repository apt.macosmovil.com in Cydia and install Appsync para 3.1.2 in Cydia (comes from the repository). Make sure you select the right version 3.2.1. (instructions adding repositories).
h. Add the repository cydia.pushfix.info in Cydia, if you want push capability restored on your jailbroken iPhone. Install Push Fix 2.0 in Cydia from the repository and make sure you select the right version 2.0. (instructions installing Pushfix 2.0).
i. Install one of the three Youtube fixes fom the same repository. Youtube doesn't work without them in jailbroken iphones. (if one fix doesn't work, try one of the others).
j. Add (at your own risk) other manually added repositories in Cydia, when you have apps in your backups of Rock or Pkgbackup that depend on them. Not installing Manually added repositories while you do have apps coming from them in your backup can freeze the restore process. Manually added repositories can be buggy however (for example imobilecinema.com).
k. Reboot
6. Restore from backup of jailbroken apps:
a. Login to Rock or download Pkgbackup in the Cydia store.
b. Disable in the backup list all apps of the unstable repositories you didn't add in the 'Preparation' step.
c. Disable in the backup list old versions of apps that are replaced by new versions of apps (for example disable Appsync 3.1 if you have installed Appsync 3.1.2 in the 'Preparation' step). You can disable any other app you are not going to use anymore.
d. Run the backups of Rock or Pkgbackup. If you are going to use SSH to browse on your computer in the iPhone, make sure you have at least installed 'Open SSH'.
7. Restore from backup of legitimate apps:
a. In iTunes, cancel the update 3.1.3, when prompted.
b. Deselect 'manually manage music'.
c. Disable syncing music, photo, movies and podcasts libraries. These are usually very large, and it can be done later after you manage to restore your iPhone without problems.
d. Enable 'syncing apps'.
e. Enable syncing contacts, calendars and mail.
f. Scroll down to the bottom of the Info screen and check off the box that say 'replace info on iPhone this sync only'. Many people lose their info this way, since the iPhone at this point is blank.
g. Sync iPhone with iTunes.
8. Restore data from backup of jailbroken apps and legitimate apps:
a. Connect with SSH to the iPhone. You will probably have to fix file ownership. Connect to 'root' and password 'alpine', unless you changed the password into something else. SSH all the files and folders you saved in step 1 to your computer back to their appropriate locations on your iPhone. (At your own risk: I experienced that sms, notes, mail and springboard became unstable after replacing the data files. In the end it crashed my iPhone!)
b. Upload in iFile and Safari the Chronus backup file over Wifi (upload to var/mobile/Library/Preferences/TimeCapsule)
c. Open up Chronus and select the apps you want data restored from.
d. Run Pkgbackup to restore the Springboard layout (I have no personal experience with this!)
e. Make sure all apps works properly even after a reboot.
f. Install the music, photo, movies and podcast libraries via iTunes.
g. If wifi connection got lost, reset the network settings (under settings).
NOTE
*do this in the exact right order. Other orders may crash your iPhone.
*Tested with: 3gs, 3.1.2, jailbroken with Blackra1n 3 RC, baseband 05-11-07, production week 41
*This tutorial makes a distinction between 'backup apps' and 'backup data files' of apps, like settings, login information, documents and logs.
*iPhone backup files reside here: ~/Library/Application Support/MobileSync/Backup/
*I never manage to restore data using ssh without crashing my iphone. Aparently I do something wrong, but I don't know what. I admitted the procedure of using SSH in this tutorial, because it makes it possible to safe call history, and the downloaded video's from Your Tube and MX Tube for example. But if you don't trust SSH either, just skip this. More info about using SSH.
BACKUP
1. Backup data of jailbroken apps and legitimate apps:
a. Chronus backups the settings of the legitimate apps including SMS messages and some of the jailbroken apps.
b. The Chronus backup file resides in var/mobile/Library/Preferences/TimeCapsule. You have to backup this file by moving it manually from your iPhone to your computer (by emailing it in iFile as a zipped file or usng SSH or to email individual settings in Chronus).
c. You may want to SSH all data of jailbroken apps that Chronus doesn't backup but you do want to safe: video's downloaded with MX Tube for example. They reside in root/var/mobile/Library. You may even want to SSH the entire var/mobile/Library folder to your desktop. That could take a while though, and permission issues can mess things up. (I don't recomment this).
d. Backup springboard layout with Pkgbackup (I am not sure if this is working; I don't have personal experience with restoring the springboard layout)
2. Backup jailbroken apps: Rock can automaticly backup installed apps after installing or deinstalling apps on your iPhone. Alternatively, use Pkgbackup. If you choose to use Pkgbackup, delete the address book entry with all the numbers (Pkgbackup stores the backup file in this address book entry) before you run the backup; Pkgbackup sometimes gets confused of its own previous backups. Don't forget to sync address book in the next step to safe the backup file of Pkgbackup.
3. Backup legitimate apps: Sync iPhone with iTunes to backup legitimate apps, music, foto's and contacts. Syncing address book also puts the backup file of Pkgbackup on your computer. NB: The sync method doesn't backup settings and data like SMS history and stats. To backup these, do either step 1c (at your own risk!) or make a backup of your iPhone in iTunes.
RESTORE A BACKUP
4. Restore firmware:
a. Option/alt-click 'Restore' in the iPhone dialogue window in iTunes to restore the original firmware 3.1.2 for 3gs, and look for that file on your computer (or download it here). Towards the end of the firmware upload disconnect iTunes from the internet; iTunes is going to check with the iTunes store the sim card after the restore completed. Allow however de activation of the iPhone at the beginning of the firmware upload.
b. After the upload is finished, select 'install as new'. If you trust your iTunes backup and would rather select 'restore from backup' use this tutorial.
c. Deselect 'automatic sync contacts' and 'automatic sync apps' and click 'done'
d. Close iTunes and jailbreak the firmware: run Blackra1n RC3 (not version RC1) from your computer. Let the app do it's work and wait for the iPhone to reboot.
5. Preperation:
a. Connect to internet via wifi.
b. Unlock the iPhone: click the Blackra1n icon on the iPhone and run Sn0w: the telephone carrier should become visible in the left upper corner.
c. Click the Blackra1n icon again and install Cydia. Run Cydia after installing it, and install the Cydia essential updates.
d. Click the Blackra1n icon again and install Rock. Run Rock after installing it, and install the Rock essential updates.
e. Reboot the iPhone (important!)
f. Instal Mobile Substrate, Winterboard and SBSettings in Cydia. The iPhone will reboot after installing Mobile substrate.
g. Add the repository apt.macosmovil.com in Cydia and install Appsync para 3.1.2 in Cydia (comes from the repository). Make sure you select the right version 3.2.1. (instructions adding repositories).
h. Add the repository cydia.pushfix.info in Cydia, if you want push capability restored on your jailbroken iPhone. Install Push Fix 2.0 in Cydia from the repository and make sure you select the right version 2.0. (instructions installing Pushfix 2.0).
i. Install one of the three Youtube fixes fom the same repository. Youtube doesn't work without them in jailbroken iphones. (if one fix doesn't work, try one of the others).
j. Add (at your own risk) other manually added repositories in Cydia, when you have apps in your backups of Rock or Pkgbackup that depend on them. Not installing Manually added repositories while you do have apps coming from them in your backup can freeze the restore process. Manually added repositories can be buggy however (for example imobilecinema.com).
k. Reboot
6. Restore from backup of jailbroken apps:
a. Login to Rock or download Pkgbackup in the Cydia store.
b. Disable in the backup list all apps of the unstable repositories you didn't add in the 'Preparation' step.
c. Disable in the backup list old versions of apps that are replaced by new versions of apps (for example disable Appsync 3.1 if you have installed Appsync 3.1.2 in the 'Preparation' step). You can disable any other app you are not going to use anymore.
d. Run the backups of Rock or Pkgbackup. If you are going to use SSH to browse on your computer in the iPhone, make sure you have at least installed 'Open SSH'.
7. Restore from backup of legitimate apps:
a. In iTunes, cancel the update 3.1.3, when prompted.
b. Deselect 'manually manage music'.
c. Disable syncing music, photo, movies and podcasts libraries. These are usually very large, and it can be done later after you manage to restore your iPhone without problems.
d. Enable 'syncing apps'.
e. Enable syncing contacts, calendars and mail.
f. Scroll down to the bottom of the Info screen and check off the box that say 'replace info on iPhone this sync only'. Many people lose their info this way, since the iPhone at this point is blank.
g. Sync iPhone with iTunes.
8. Restore data from backup of jailbroken apps and legitimate apps:
a. Connect with SSH to the iPhone. You will probably have to fix file ownership. Connect to 'root' and password 'alpine', unless you changed the password into something else. SSH all the files and folders you saved in step 1 to your computer back to their appropriate locations on your iPhone. (At your own risk: I experienced that sms, notes, mail and springboard became unstable after replacing the data files. In the end it crashed my iPhone!)
b. Upload in iFile and Safari the Chronus backup file over Wifi (upload to var/mobile/Library/Preferences/TimeCapsule)
c. Open up Chronus and select the apps you want data restored from.
d. Run Pkgbackup to restore the Springboard layout (I have no personal experience with this!)
e. Make sure all apps works properly even after a reboot.
f. Install the music, photo, movies and podcast libraries via iTunes.
g. If wifi connection got lost, reset the network settings (under settings).