Same with Java games when they became popular. The hardest part was getting them onto your phone. You either used a data cable, or had GPRS set up in "internet" mode (as opposed to "wap"), or someone else shared them with you via IR port or Bluetooth.
Yes, there were paid ringtones/images/games, or course. But carriers themselves never sold them. It was third-party companies. A ringtone usually was $1.
Carrier-locked phones never really caught on in my country. It always worked such that you bought a phone for the full price and provided your own sim card. Some carriers tried the US model early on as an option, but people just weren't having it.
There you'll also find another case where Sega lost in court against similar reverse engineering done by Accolade to run their games on the Genesis without a license from Sega: https://en.wikipedia.org/wiki/Sega_v._Accolade