I have an iPhone 3gs 3.1.3 which is jailbroken with spiritjb. I want to update it to the latest version or any version(5.x.x or 4.x.x) and still have my phone jailbroken and unlocked or jailbreak and unlock later. Is it possible? If yes, How can i do it? Thanks.