In my new method to unlock, I copy all information in new nv_data.bin already unlocked.
Copy offsets: 180004 - 180058 included (crypted imei)
Copy offsets: 188004 - 1880F1 included (product code, product and little more^^)
offset 180049 - 180050 included: unfreeze code
offset 180051 - 180058 included: unfreeze code
offset 18005A - 180061 included: simunlock code
offset 18146E - 181475 included: simunlock code
After reinsert this new nv_data.bin in the phone, with this method, no unlock demands and phone is sim unlocked.
Your method work only on Eclair Firmware, Froyo delete code at reboot, with this method, normally this is work on alll firmware if it create nv_data.bin.md5 at restart.
For information, no need delete .nv_state for work.
Your method is my old method in light.
dagentooboy work on this new method (post 31):
http://xdaforums.com/showthread.php?t=822008&page=4
My older method is here (post 107):
http://xdaforums.com/showthread.php?t=771158&page=11
On this 2 method if imei is good at the start, he is good at the end.
It's possible to work on .nv_data.bak or nv_data.JPC to rename it nv_data.bin if nv_data.bin don't have correct imei.
@ dagentooboy:
With this 2 methods: no lost imei if is good at the start.
But normally newer method (source files PM to you) Normally work on Froyo. and older method work only on eclair.
http://xdaforums.com/showthread.php?t=822008&page=4
With this 2 methods, i have repair much phone and if the instructions have been totally followed the imei is not lost.