If the affected iPhone is a model that can work with iTunes for activation …
Personal experience with an officially unlocked iPhone (original, MB213B, refurbished and gifted to me in April 2012) that would not connect to my service provider. I simply:
- gave the ID of the handset to the person who had gifted it.
As far as I know, he then arranged things with an Apple store that looks after his employer's handsets (this handset was not one of theirs, but the visit to the store was convenient and moreover: the users are treated with care).
In brief: not long after giving the ID, I was asked to retry things. I did so – with iTunes (probably with a developer preview of Mountain Lion) – things worked perfectly.
Whilst I'm similarly curious about activation and connection processes, and the effects of restoration to multiple devices, I think that for your friend you might distil this question. Set aside thoughts of the working device, of carriers, of de- and re- … you're left with two Apple products:
Either:
- https://expresslane.apple.com or
- iTunes – Help menu – Apple Service and Support
– and if in doubt whether to choose the iPhone or iTunes route within the lane, choose iTunes.
If the routine for you is as good as for me in the UK, Apple's Express Lane will live up to its name – you'll be offered a list of appointments, choose a time, Apple will 'phone you, you'll feel that time spent on the 'phone was time well spent.