Technically federal law wins but the state can make your life suck till you make it to a higher level of court lol I hope they change it
Currently here in n pa the law was passed just this past year and it basically stated you can root or use custom Roms to your hearts desire but unlocking a branded phone was a no no without direct permission
It basically started as I stated above almost 100% directly due to iPhone, back when the iPhone were like $300 if you got a plan and $700-800 without, ppl already with plans were buying like boxes of iPhone, canceling the contract, unlocking the phones and reselling them making like 200-300 per phone, apple wasn't very happy lol
Global phones which are unlocked by the manufacturer are still legal here but you must buy the global version of the phone from the gate currently
I mean I guess I understand what the law is trying to do but I still maintain the mind frame that I bought it, paid $300 or whatever for it, its my device to do with what I wish, I can throw it off a bridge if I choose to lol