Where are the SIM Lock settings stored on an Android phone? After getting more involved with the "aftermarket" community, I have this question that's been on my mind for a while now. Since rooting and flashing a custom ROM on an Android phone doesn't give one SIM unlock that means that the SIM lock settings must be stored somewhere else in the phone's memory.

My theory goes that the SIM lock information is stored in or along with the baseband. Is this true? And if so, are there any "alternative" or "aftermarket" baseband firmware images? And finally, who makes the baseband firmware - the carrier, or the phone manufacturer?
The SIM lock stuff is in a separate ROM chip that is not part of the normal phone storage, AFAIK.  It's manufacturer/device dependent.  Definitely nothing to do with the baseband (and you can certainly flash other basebands).