Is there any way in way in Android or in Android NDK to know which application is reading or writing data on disk or device memory?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I don’t know if there is a SDK way of doing it but Linux will allow you to list processes/open files/sockets and you can try grabbing things from there.
First use ps command to get PID of process, enter:
Next pass this PID to pfiles command,
This is how you’d list all open files used by firefox…
You can use System.exec() to execute these, but you also need to have root access. Which is something you had to have to view that kind of information anyway I suppose…
EDIT:
this is what i got from Py2Cmod
init.c