I'm developing an app that needs to know when the users wants to open some files, previusly configured in my app, and act before the file is served.
I assume I'll need to know when the user wants to open any file (and compare the file's name with my list) and the device must probably be rooted, but I can't find a way to know that a file is required for the user or for some application the user is using and requests the file.
I've thought about Broadcast receivers, but this option needs that 'open' generates a broadcast message, what I didn't find that is done.
Also I thought about the linux mods, that can be used to manage system calls, but I didn't find any way to include it (the linux instruction modprobe doesn't work on Android and I didn't found an equivalent one).
Any ideas? Is it impossible?
Thanks for your time!
I assume I'll need to know when the user wants to open any file (and compare the file's name with my list) and the device must probably be rooted, but I can't find a way to know that a file is required for the user or for some application the user is using and requests the file.
I've thought about Broadcast receivers, but this option needs that 'open' generates a broadcast message, what I didn't find that is done.
Also I thought about the linux mods, that can be used to manage system calls, but I didn't find any way to include it (the linux instruction modprobe doesn't work on Android and I didn't found an equivalent one).
Any ideas? Is it impossible?
Thanks for your time!
