How to unlock iPhone after completing the contract without jail breaking? My iPhone 3G contract was completed a while ago. I have the 3GS now. I would like to give it to someone else who is not on AT&amp;T. I called AT&amp;T and they wouldn't do anything about it. I heard it can be unlocked after jail breaking. Is there an alternative? What happens if I jail break, unlock and then restore? Would it still be unlocked?
Official iPhone unlocking can be done and is handled by Apple. You need to call your mobile phone operator, ask for the unlock, and they contact Apple (or have a special application, I don't know) where they will send your phone's IMEI.

After a few days, when you sync your iPhone, iTunes will show you a screen telling you your iPhone has been unlocked.