Anyone that builds their entire company and/or product around being reliant on a multi-billion/trillion dollar company providing them with their source code for free so you can use it to get around using their services is only setting themselves up for disaster.
If you rely on Google giving you their source code, you need to have a backup plan ready at all times for what to do when Google don’t give you their source code.
It doesn’t need to be Linux though - AOSP is still open source. Companies like graphebe using it just needed to not depend on Google to provide them the hardware and software to keep their OS viable. It’s entirely on them.