I baught a "brand new" Sony Ericsson S500i but some-one had allready set a phone lock code that isnt 0000 or 1234 or anything logical like that i tryed for around a hour solid but in the end i phoned my retailer and complained so im getting another "new" one and hopefully it wont have a lock code on it.
In answer to your question you cant get your phone lock code all you can do is take it to a phone shop with a repair center and they'll reflash the phone this will lose all your data on the phone unless you have it saved to a memory card and the contacts saved to your sim.
I hope this helps you all
Luke Gilks, February 2008