Low level hardware access for opening a file and a network port? Those are some of the first lessons in any programming tutorial. If they aren't available, what is the OS even doing?
Also, for all intents and purposes, GMS is part of the Android OS, but Google had to branch it off, to keep it closed source.