by flashing with a new firmware you cannot unlock the phone. you just put another firmware on the phone. for unlocking you can almost always get the unlock code from your service provider, but i don't think that is for free, in some countrys , or service providers. you can try davinci, wotan or setool