Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

jmack549

macrumors 6502
Original poster
Mar 8, 2007
326
0
Today at work I pulled out my phone and the "Connect to iTunes" logo was showing. So I plugged it in and it told me it needed to restore...so I did. I tried it at least 20 times, 15 of those it would give error 1013. The other times it would say I didn't have a valid sim card installed (it's valid, it's AT&T, using it in my Blackberry right now).

So I came home and tried it on my iMac, and Windows laptop, all 3 doing the same thing. I'm thinking/hoping it might be something physically wrong, so I was planning on making an appointment at the genius bar which I've never done.

My question is, before I got that initial error at work this morning, it was jailbroken. Will they be able to tell? I should also note that once or twice it would actually restore and work, but after a restart it would kick me back to the restore logo.

Thanks in advance for the help!
 
Today at work I pulled out my phone and the "Connect to iTunes" logo was showing. So I plugged it in and it told me it needed to restore...so I did. I tried it at least 20 times, 15 of those it would give error 1013. The other times it would say I didn't have a valid sim card installed (it's valid, it's AT&T, using it in my Blackberry right now).

So I came home and tried it on my iMac, and Windows laptop, all 3 doing the same thing. I'm thinking/hoping it might be something physically wrong, so I was planning on making an appointment at the genius bar which I've never done.

My question is, before I got that initial error at work this morning, it was jailbroken. Will they be able to tell? I should also note that once or twice it would actually restore and work, but after a restart it would kick me back to the restore logo.

Thanks in advance for the help!


Go to google, type tinyumbrella, download and run, plug in the phone, click "Exit Recovery"

Done
 
isnt 1013 your host file being altered? had the same error when I tried to JB this time around on my PC. Had to go to windows/system32/driver/etc then edit the hosts file with notepad and removed anything that I think said gs.apple.com(something like that) then save and restart my computer and after that the restore went perfect. No idea about your sim issue but thats how I fixed my 1013 issue
 
isnt 1013 your host file being altered? had the same error when I tried to JB this time around on my PC. Had to go to windows/system32/driver/etc then edit the hosts file with notepad and removed anything that I think said gs.apple.com(something like that) then save and restart my computer and after that the restore went perfect. No idea about your sim issue but thats how I fixed my 1013 issue

The reason you can sometimes fix it by fixing your hosts file is Apple signs the baseband at the end of the restore. If you have the latest baseband, then ya editing the hosts file will allow the baseband to be signed. But if you have an older baseband, Apple wont sign it even with the hosts file edited.

So just stick with the TU solution.
 
The reason you can sometimes fix it by fixing your hosts file is Apple signs the baseband at the end of the restore. If you have the latest baseband, then ya editing the hosts file will allow the baseband to be signed. But if you have an older baseband, Apple wont sign it even with the hosts file edited.

So just stick with the TU solution.

This happened to me tonight. The TU "solution" did not work.

Instead, google FixRecovery43, download the zip, unzip it, put your device in DFU mode, and run FixRecovery43.exe. Worked great for me!
 
Open Tiny umbrella, go to advance mode, uncheck the box that says leave host file to Cydia on exit. Close tiny umbrella.

Now restore your phone through iTunes you will not get an error and it will restore normally.
 
The reason you can sometimes fix it by fixing your hosts file is Apple signs the baseband at the end of the restore. If you have the latest baseband, then ya editing the hosts file will allow the baseband to be signed. But if you have an older baseband, Apple wont sign it even with the hosts file edited.

So just stick with the TU solution.

Ahh thanks for the clarification
 
Go to google, type tinyumbrella, download and run, plug in the phone, click "Exit Recovery"

Done

No luck, just reboots back to recovery.

isnt 1013 your host file being altered? had the same error when I tried to JB this time around on my PC. Had to go to windows/system32/driver/etc then edit the hosts file with notepad and removed anything that I think said gs.apple.com(something like that) then save and restart my computer and after that the restore went perfect. No idea about your sim issue but thats how I fixed my 1013 issue

Tried this earlier, tons of different variations, no dice.

This happened to me tonight. The TU "solution" did not work.

Instead, google FixRecovery43, download the zip, unzip it, put your device in DFU mode, and run FixRecovery43.exe. Worked great for me!

Tried this earlier too. Just boots to a white screen.

Open Tiny umbrella, go to advance mode, uncheck the box that says leave host file to Cydia on exit. Close tiny umbrella.

Now restore your phone through iTunes you will not get an error and it will restore normally.

Just tried this, still nothing.

Thanks for all the suggestions guys. I am very well versed with this kind of stuff so it's really blowing my mind. My first question still stands though, will the Genius Bar be able to tell my iPhone was JB before?
 
The reason you can sometimes fix it by fixing your hosts file is Apple signs the baseband at the end of the restore. If you have the latest baseband, then ya editing the hosts file will allow the baseband to be signed. But if you have an older baseband, Apple wont sign it even with the hosts file edited.

So just stick with the TU solution.

That is goobly gook.

Apple will always try to upgrade to the latest baseband and one of two things happen. It successfully signs and updates to the latest baseband, or it fails this process and errors out 1015.

The reason people are having problems is that TU has changed their host file and pointing to Cydia instead of apple. Cydia can fake out the signing of the firmware if it has SHSH but is not capable of signing the baseband.

The solution is to get your host file back to apple from Cydia, so that apple can sign both firmware and baseband. The problem was created by TU and hence the best way to fix it is to prevent TU changing the host file and leaving it changed when you close it. hence unchecking the box under advance mode in TU.
 
Open a terminal window on you computer and type the following command

Ping gs.apple.com

You will get an ip address back either beginning 127 or 74

If you get 127.x.x.x your host file is correct.

If you get 74.x.x.x you are still pointing to cydia
 
The instruction from Nebo1ss on post # 6 should work. Just to reiterate, because you have TU on your PC and even when TU is not running, it is still pointing you to Cydia. So, what you need to do is as follow;

1. Open TU
2. Click on advance tab
3. uncheck the box "set hosts to Cydia on exit"
4. click apply change at button at the corner lower right, then close TU
5. connect your Iphone to your PC
6. Put your Iphone into DFU mode.
7. Click restore in itunes.

this should put your iphone back to the factory setting. Please try and report back if it is working.

Please try again and report back. Thanks
 
Open a terminal window on you computer and type the following command

Ping gs.apple.com

You will get an ip address back either beginning 127 or 74

If you get 127.x.x.x your host file is correct.

If you get 74.x.x.x you are still pointing to cydia

Hmm, mine is 17.112.xxx.xx. Any ideas?
 
Just checked 17.112.x.x and it is an apple server.

If you do a dfu restore now it should work.
 
The instruction from Nebo1ss on post # 6 should work. Just to reiterate, because you have TU on your PC and even when TU is not running, it is still pointing you to Cydia. So, what you need to do is as follow;

1. Open TU
2. Click on advance tab
3. uncheck the box "set hosts to Cydia on exit"
4. click apply change at button at the corner lower right, then close TU
5. connect your Iphone to your PC
6. Put your Iphone into DFU mode.
7. Click restore in itunes.

this should put your iphone back to the factory setting. Please try and report back if it is working.

Please try again and report back. Thanks

Nope, did it again with no luck.

Just checked 17.112.x.x and it is an apple server.

If you do a dfu restore now it should work.

Just tried it again, no luck. :(

Oh well, I may just take it to Apple, I wonder if it could really be something wrong with the phone. I've had trouble in the past, but nothing that a host file fix couldn't resolve. I really appreciate all the time everyone has devoted to helping me with this, just wish it would work.
 
Before you take it back to Apple might want to try uninstalling and reinstalling iTunes. Or even try a different computer if younhave one available.
 
That is goobly gook.

Apple will always try to upgrade to the latest baseband and one of two things happen. It successfully signs and updates to the latest baseband, or it fails this process and errors out 1015.

The reason people are having problems is that TU has changed their host file and pointing to Cydia instead of apple. Cydia can fake out the signing of the firmware if it has SHSH but is not capable of signing the baseband.

The solution is to get your host file back to apple from Cydia, so that apple can sign both firmware and baseband. The problem was created by TU and hence the best way to fix it is to prevent TU changing the host file and leaving it changed when you close it. hence unchecking the box under advance mode in TU.


Way to say Im wrong then repost what I said, worded a little different and with needless detail.
 
Before you take it back to Apple might want to try uninstalling and reinstalling iTunes. Or even try a different computer if younhave one available.

I've tried reinstalling, and I've tried it on 3 different computers. Thanks for the suggestions.

Hope this helps: I had the same problems last night! And now my phone is restored on 4.3.1 and re jailbroken

https://forums.macrumors.com/threads/1131978/

Thanks, but I tried this yesterday too. No dice.
 
Way to say Im wrong then repost what I said, worded a little different and with needless detail.

Here is what you said
"If you have the latest baseband, then ya editing the hosts file will allow the baseband to be signed. But if you have an older baseband, Apple wont sign it even with the hosts file edited."

That is garbage: It does not matter what baseband is on the phone latest or old baseband, what matters is the baseband you are trying to install. The host file editing determines if you are even going to apple as opposed to cydia and not if apple will sign an old baseband.
 
Oh well, it's over :( Took it to Apple and they couldn't fix it, had no idea what was wrong with it. It's out of warranty, so I'm just going to throw it on eBay or something. Thanks for trying guys!
 
Kill iTunes.
Go to: C:\Windows\System32\Drivers\etc
You should delete hosts.tinyumbrella.
Open "hosts" using Notepad.
Delete "gs.apple.com" from the bottom of list.
Save "hosts".
Boot iTunes back up, and 1013 should be gone.

Apple said itself that 1013 is the hosts file preventing the connection to the update server. By deleting TinyUmbrella's hosts file and fixing the real hosts file, it unblocks it. This is guaranteed to work.
 
Kill iTunes.
Go to: C:\Windows\System32\Drivers\etc
You should delete hosts.tinyumbrella.
Open "hosts" using Notepad.
Delete "gs.apple.com" from the bottom of list.
Save "hosts".
Boot iTunes back up, and 1013 should be gone.

Apple said itself that 1013 is the hosts file preventing the connection to the update server. By deleting TinyUmbrella's hosts file and fixing the real hosts file, it unblocks it. This is guaranteed to work.

Really don't think it will. They tried to do a regular restore and a DFU restore at the Apple store. I'll try again.
 
Really don't think it will. They tried to do a regular restore and a DFU restore at the Apple store. I'll try again.

It works. I've done it at least a thousand times.
If this doesn't work against all odds. download iREB and follow the instructions it gives you.
 
Today at work I pulled out my phone and the "Connect to iTunes" logo was showing. So I plugged it in and it told me it needed to restore...so I did. I tried it at least 20 times, 15 of those it would give error 1013. The other times it would say I didn't have a valid sim card installed (it's valid, it's AT&T, using it in my Blackberry right now).

So I came home and tried it on my iMac, and Windows laptop, all 3 doing the same thing. I'm thinking/hoping it might be something physically wrong, so I was planning on making an appointment at the genius bar which I've never done.

My question is, before I got that initial error at work this morning, it was jailbroken. Will they be able to tell? I should also note that once or twice it would actually restore and work, but after a restart it would kick me back to the restore logo.

Thanks in advance for the help!


If you use a mac look at the top bar, go to "GO" then go to "GO TO FOLDER" type in /etc/ it will open up a folder with a lot of files, look for "HOSTS" copy it onto your desktop. open it up then you will see for ex: 55.272.20.269 gs.apple.com. in front of the gs.apple.com put a "#" then save the file thats on your desktop and drag back into the folder that is open. after that you will be able to restote.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.