They are doing both.
I know there are alternative phones that are more open, and I recognize that the level of ease and comfort I get from a big name phone requires some of those trade-offs. Linux was my desktop of choice and probably would be again if my employer allowed it, but I don’t necessarily want to deal with all the tiny sharp edges of Linux on a mobile device.