I don’t understand why Google didn’t just made Android closed source. They would’ve made custom roms impossible and therefore more able to control and spy on it’s users. Why did Google made Android open source, while Microsoft’s Windows is still closed source to this day?
In a nutshell Android uses Linux as it’s base so I don’t believe they could make it closed source, where Microsoft Windows, like Apple MacOS, have always used their “own” kernel allowing them the flexibility to keep their software closed source or source available.
Kernel is irrelevant. By the way, MacOS kernel is open source and is derived from one of BSDs.
MacOS is derived from Darwin but heavily modified and now closed source. While GPL is copy left, BSD has no such requirement so you can effectively make your derivative OS closed source, which NeXT and subsequently Apple did.