1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-02-24 07:01:05 +00:00

CASA logcat

This commit is contained in:
M66B 2023-12-12 19:52:03 +01:00
parent 82883b640a
commit fd42453bb5

View file

@ -3129,11 +3129,13 @@ public class Log {
attachment.id = db.attachment().insertAttachment(attachment);
// https://cheatsheetseries.owasp.org/cheatsheets/OS_Command_Injection_Defense_Cheat_Sheet.html#java
ProcessBuilder pb = new ProcessBuilder("logcat",
ProcessBuilder pb = new ProcessBuilder("/system/bin/logcat",
"-d",
"-v", "threadtime",
//"-t", "1000",
Log.TAG + ":I");
Map<String, String> env = pb.environment();
env.clear();
pb.directory(context.getFilesDir());
Process proc = null;