I know how permissions work at the Android SDK level, but how exactly does it work in native code? When a system call is made in native code, what determines whether the call to socket() fopen(), ioctl(), etc, is allowed?
I read these questions:
How is Android permission enforced?
But the first one is not actually answered, and in the second the link the answer isn't working & I don't have the rep to comment on someone else's answer yet.