If you're receiving an "exploit failed" error message using redsn0w 0.9.9b7 – or any other redsn0w 0.9.9 beta build – to jailbreak an iPhone 4, it seems to be related to the automatic ipsw identification.
Move the iPhone3,1_5.0_9A334_Restore.ipsw into the iPhone Software Updates directory. On OS X this is located in ~/Library/iTunes/iPhone Software Updates.
Re-run redsn0w and the jailbreak will work as expected. Don't forget that it's still a tethered jailbreak.
Useful if you're installing packages from the command line and want the homescreen icons to be visible.
Install UIKit Tools (apt-get install uikittools) and from the command line run sudo -u mobile uicache
If sudo isn't installed, install that with apt-get install sudo or
And while you're on the command line, make sure to change the password for the root and mobile users.
- SSH to your iPhone
- su -
- Enter the root password, alpine by default.
passwd
- Enter your new root password
passwd mobile
- Enter the new password for the mobile user