I would like to debug the Android/Java API calls from the highest call (from a FileInputStream) to the system call on kernel level.
StringBuffer datax = new StringBuffer("");
FileInputStream fIn = openFileInput(filename);
InputStreamReader isr = new InputStreamReader(fIn);
BufferedReader buffreader = new BufferedReader(isr);
String readString = buffreader.readLine();
while (readString != null) {
datax.append(readString);
readString = buffreader.readLine();
}
isr.close();
I know that Android uses bionic instead of GNU C as standard library, which transfers (amongst other) the data from bottom to top and vica versa.
For further information - I would like to put a user specific "file-filter" in front of that call. I thought of to use the UserManager in combination with that (But the call should be not blocked by the Android UserManager, I like to use it only to get user informations - if possible). But at first I need to know where I can place it and if it´s in general possible.
From here I can read that I have to set the log level and use dmesg.
Thanks!