manager: Use global mount namespace to gather logs

This commit is contained in:
weishu
2024-02-25 22:30:53 +08:00
parent 300d9d4cca
commit 1690e5db02

View File

@@ -34,7 +34,7 @@ fun getBugreportFile(context: Context): File {
val bootConfig = File(bugreportDir, "boot_config.txt") val bootConfig = File(bugreportDir, "boot_config.txt")
val kernelConfig = File(bugreportDir, "defconfig.gz") val kernelConfig = File(bugreportDir, "defconfig.gz")
val shell = getRootShell() val shell = getRootShell(true)
shell.newJob().add("dmesg > ${dmesgFile.absolutePath}").exec() shell.newJob().add("dmesg > ${dmesgFile.absolutePath}").exec()
shell.newJob().add("logcat -d > ${logcatFile.absolutePath}").exec() shell.newJob().add("logcat -d > ${logcatFile.absolutePath}").exec()