All modern cryptography relies on random key generation. But the current state of the art is that there is no way to distinguish between truly random numbers and pseudorandom numbers generated deterministically from a key. So how can we even begin to talk about security without openness? Maybe the key generated in the secure enclave of your iPhone never left that enclave - but maybe the NSA has a copy of it all the same.
Nor Google nor Apple can – to the best of my knowledge – decide what code is run or not run on my PC. That is evidently a plus point for security, if one doesn't blindly trusts these companies.
That isn't enough to protect from kernel bugs, as discussed at Linux Security Summit, hence kernel self protection project and related initiatives, mostly driven by Google regarding Android security.
You have a completely different security model on PC, though. PC is designed as a minified version of multi-user workstation, where system administrator itself is responsible for securing the system. iPhone, on the other hand, is designed for novice single-user use case, where manufacturer is responsible for securing the system.