I have an application on ICS (4.0.3) that uses logcat with -vtime option. It reads the logcat using this code:
try {
Process process = Runtime.getRuntime().exec("logcat -vtime -d");
BufferedReader bufferedReader = new BufferedReader(
new InputStreamReader(process.getInputStream()));
String line = "";
while ((line = bufferedReader.readLine()) != null) {
... my stuff with this line...
}
catch (IOException e) {
}
I use "android.permission.READ_CALL_LOG" and "android.permission.READ_LOGS" in my manifest file and I manage to have the full logcat.
When I use this code with JellyBean (4.1.1), my buffer only catch my app logcat and not the full device logcat.
How can I have this full logcat? Is it another permission?