Comment by Sayrus
And yet if you want applications to work on your phone, many times you'll need approval from either Apple or Google. Google can effectively ban manufacturers (like they did with Huawei) from using "Android" by blacklisting them from Play Services. Apple owns the entire ecosystem and prevents third-party from having access to the same feature set.
Something tells me that the thing about Google not allowing custom Andriod operating systems to install apps is not quite true. I don't know about this specific topic yet, but I bet that if I look into it, I'll find out that there's nuance here that isn't been correctly portrayed by your comment.