mirror of https://github.com/M66B/NetGuard.git
Remove open file list from logcat
This commit is contained in:
parent
d05f9c68d7
commit
645964af12
|
@ -757,7 +757,7 @@ public class Util {
|
|||
// Build intent
|
||||
Intent sendEmail = new Intent(Intent.ACTION_SEND);
|
||||
sendEmail.setType("message/rfc822");
|
||||
sendEmail.putExtra(Intent.EXTRA_EMAIL, new String[]{"marcel+netguard@faircode.eu" });
|
||||
sendEmail.putExtra(Intent.EXTRA_EMAIL, new String[]{"marcel+netguard@faircode.eu"});
|
||||
sendEmail.putExtra(Intent.EXTRA_SUBJECT, "NetGuard " + version + " logcat");
|
||||
sendEmail.putExtra(Intent.EXTRA_TEXT, sb.toString());
|
||||
sendEmail.putExtra(Intent.EXTRA_STREAM, uri);
|
||||
|
@ -783,7 +783,7 @@ public class Util {
|
|||
Process process2 = null;
|
||||
BufferedReader br = null;
|
||||
try {
|
||||
String[] command1 = new String[]{"logcat", "-d", "-v", "threadtime" };
|
||||
String[] command1 = new String[]{"logcat", "-d", "-v", "threadtime"};
|
||||
process1 = Runtime.getRuntime().exec(command1);
|
||||
br = new BufferedReader(new InputStreamReader(process1.getInputStream()));
|
||||
int count = 0;
|
||||
|
@ -794,12 +794,6 @@ public class Util {
|
|||
}
|
||||
Log.i(TAG, "Logcat lines=" + count);
|
||||
|
||||
String[] command2 = new String[]{"ls", "-l", "/proc/" + android.os.Process.myPid() + "/fd" };
|
||||
process2 = Runtime.getRuntime().exec(command2);
|
||||
br = new BufferedReader(new InputStreamReader(process2.getInputStream()));
|
||||
while ((line = br.readLine()) != null)
|
||||
builder.append(line).append("\r\n");
|
||||
|
||||
} catch (IOException ex) {
|
||||
Log.e(TAG, ex.toString() + "\n" + Log.getStackTraceString(ex));
|
||||
} finally {
|
||||
|
|
Loading…
Reference in New Issue