Inset a NON AT&T sim and switch on the phone.
When it prompts you to enter the unlock code, dismiss the unlock code screen.
1. Go to the Dial pad and dial *#197328640#
2. Please click on number  UMTS >  Debugging screen >  Phone Control >  NETWORK LOCK
3. You will see 3 options
4. Please click on number  Perso Sha256 INFO, the screen will change slightly
5. Please hit the MENU button then when the menu pops up please carefully hit BACK to return to the previous screen.
6. Next Please click on number  Perso Sha256 ON, the screen will change again to a one line message
7. Restart the phone on the screen by holding the power button and click RESTART
8. When the phone prompts for the unlock code simply enter the unlock code provided to you.
9. Your phone is now permanently unlocked!