Restoring Your Jailbroken iPhone
If you have the same basic configuration as I do, these are the steps that you’ll follow to restore your iPhone. Here are your requirements that are important:
- iPhone 4 with iOS4
- Jailbreak using Limera1n
- Have your iPhone backed up using PkgBackup app from Cydia (the paid version, backed up through dropbox)
- Use infinifolders (not necessary to use this tutorial, but if you do have it, you MUST follow these steps.)
I’m assuming that you’ve already done a firmware flash and jailbreak before, since you are restoring and have the files that you need and are familiar with the steps. This is just a nice reminder of the exact steps you need to follow.
Restore Your Firmware
- Turn off your phone
- Hold down the home button and connect your phone to the computer
- When iTunes opens and tells you to restore, hit OK.
- In Windows, hold down the Shift key and click on the Restore button in iTunes.
- You will be given the option of the Firmware files you have on your computer. You should see your 4.1 file there. Select it and continue.
- You will get an error. Click through it.
- Close iTunes.
- Open Umbrella, select your recovery phone, and exit recovery
- Leave your phone connected to the computer
Restore your Data from iTunes
- When your phone reboots, select your backup file in iTunes. You should make sure you’re aware of how to [cref make-multiple-backups-in-itunes].
- Sync your apps, music, and such.
- Click on the limera1n.exe file you should keep stored somewhere handy (like your jailbreak folder on your desktop or something). Run Limera to jailbreak your phone.
- Open Limera on your phone and install Cydia.
- Run Cydia on your phone and do the updates. Reboot, of course.
- Download the following software, if you had it on your phone. PkgBackup won’t install it for you. The most important of these are the infinifolders and the Five Icon Dock. This affects the appearance of your icons when you do your PkgBackup Restore.
- PkgBackup
- ActionMenu
- Five Icon Dock
- Five Icon Switcher
- Infinifolders
- MxBackup
- No Icon Shadow
- biteSMS
- Make sure you reboot.
Run PkgBackup
Version 2.4.5 was just released and I’m seeing some problems. If you’re reading this article later, they may be fixed. First, try to run it and see if everything works.
- Open PkgBackup and select Restore from the bottom of the app.
- At the top, you will see the number of uninstalled apps. To the right of that is a button that allows you to select from multiple package backups if you have them. Select the one you want.
- Select the programs you want to restore
- Go down all of the options and select what you want to restore.
- I’ve been having trouble with the Default Apps causing the backup to freeze at the end. I had to disable all of these.
- Hit the Restore Button
Troubleshooting:
- If there is a Dropbox error, the PkgBackup Changelog says to do the following:
- Remove PKGBackup folder from your Dropbox™ account – Using SSH, connect to your device & remove file: com.pragmatixconsulting.packagebackup.plist
- Here’s how I did that.
- I’m assuming you’ve changed your SSH Root Password from alpine so that every hacker can’t access the root of your phone. If you haven’t, shame on you, and do that NOW.
- Go to Cydia and search for MobileTerminal.
- There are 3 options today. Make sure you get the one for iOS4
- Install it, then open it.
- Type su root and hit return
- type alpine and hit return
- type passwd and hit return
- type your new password and hit return
- type your new password and hit return
- Close the application and reboot
- Go to Cydia and search for MobileTerminal.
- Connect to your phone via SSH:
- Your phone must be in WiFi. Make sure you’re on a computer attached to the same network as your phone. On your phone, go to Settings > Wifi and locate the wireless network you are on. Click on the arrow next to that network.
- You will see your IP Address. Make a note of it.
- I use Firefox. It’s free and it’s awesome. Just saying. In Firefox, go to Tools > Add-Ons and add FireFTP if you don’t have it already.
- Once installed, click on Tools > FireFTP. A new tab will open.
- On the left, go to the drop-down box and create a new account.
- In the Account Manager, name your connection, enter the IP Address you wrote down, and the password you entered into your phone in step 1 above. Do NOT hit Ok yet.
- Go to the Connection Tab and change Security to SFTP. Hit Ok.
- Back in the main Window, Hit connect.
- In the right panel, navigate to folder /var/root/Library/Preferences and remove the file: com.pragmatixconsulting.packagebackup.plist by hitting the delete button.
- Reboot the phone.
- Your phone must be in WiFi. Make sure you’re on a computer attached to the same network as your phone. On your phone, go to Settings > Wifi and locate the wireless network you are on. Click on the arrow next to that network.
- I’m assuming you’ve changed your SSH Root Password from alpine so that every hacker can’t access the root of your phone. If you haven’t, shame on you, and do that NOW.