|
|
@ -1367,6 +1367,8 @@ public class DebugHelper {
|
|
|
|
|
|
|
|
|
|
|
|
File logcat = new File(context.getFilesDir(), "logcat.txt");
|
|
|
|
File logcat = new File(context.getFilesDir(), "logcat.txt");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
|
|
|
|
|
|
|
// https://cheatsheetseries.owasp.org/cheatsheets/OS_Command_Injection_Defense_Cheat_Sheet.html#java
|
|
|
|
// https://cheatsheetseries.owasp.org/cheatsheets/OS_Command_Injection_Defense_Cheat_Sheet.html#java
|
|
|
|
ProcessBuilder pb = new ProcessBuilder("logcat", // CASA "/system/bin/logcat",
|
|
|
|
ProcessBuilder pb = new ProcessBuilder("logcat", // CASA "/system/bin/logcat",
|
|
|
|
"-d",
|
|
|
|
"-d",
|
|
|
@ -1387,6 +1389,9 @@ public class DebugHelper {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
files.add(logcat);
|
|
|
|
files.add(logcat);
|
|
|
|
|
|
|
|
} catch (Throwable ex) {
|
|
|
|
|
|
|
|
Log.e(ex);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
attachment.zip(context, files.toArray(new File[0]));
|
|
|
|
attachment.zip(context, files.toArray(new File[0]));
|
|
|
|
|
|
|
|
|
|
|
|