I want to intercept file read/write on iOS for providing transparent encryption/decryption functionality to some of my apps.
I know I can swizzle the various SDK methods for reading/writing files to do this, but that entails a LOT of hard work and is prone to error (I may miss swizzling some method, causing my application to crash/misbehave).
If there is some common syscall/function used by all these methods, then I'd rather swizzle it and save on some hard work + make it more foolproof. Is there any such common entry point?
PS: Acceptance into the app store is not a criteria here, since all these apps are for in-house enterprise deployment.
Thanks!