I have an old friends Iphone 3gs that has evidently been jailbroken. He did not use the phone for a few years as he couldn't restore it. I have been trying to restore it myself but do not know what version of IOS was installed when it was done. Is there any way to find this out and restore? I have tried using programs like iDetector and iFaith to find out what version was installed but no luck. I get error 1015 when trying to restore through iTunes. Have tried running in DFU mode and restoring specific IPSW's through iTunes but no success. Have only tried the most recent versions. Any help would be great! Thanks