Changed the sim on my rooted Google Nexus One today and managed to lock myself out :D.
Waited for the PUK code prompt to come up but it never did. Apparently there’s none, traditionally on other phones you’s get a dedicated prompt for the PUK code but on the Nexus One you use the “phone pad” instead.
Here’s the walk-through.
Call your carrier and have them provide you the PUK code. You might be able to obtain your PUK code from your carrier’s web page also, like mine.
Turn the phone on, wait till you see the locked message comes up.
Select the emergency call option. Input the the below code through the key pad.
**05* (PUK CODE) * (NEW PIN) * (CONFIRM NEW PIN) #
Your Google Nexus One should be unlocked now.