ksud: more verbose log (#3021)
Some checks failed
Build Manager / build-lkm (push) Has been cancelled
Build Manager / build-user_scanner (ubuntu-latest, All-linux-android) (push) Has been cancelled
Build Manager / build-ksud (ubuntu-latest, aarch64-linux-android) (push) Has been cancelled
Build Manager / build-ksud (ubuntu-latest, armv7-linux-androideabi) (push) Has been cancelled
Build Manager / build-ksud (ubuntu-latest, x86_64-linux-android) (push) Has been cancelled
Build Manager / build-manager (false) (push) Has been cancelled
Build Manager / build-manager (true) (push) Has been cancelled

This commit is contained in:
5ec1cff
2025-11-30 23:23:55 +08:00
committed by Tools-app
parent 8ddca5f310
commit 8304c54b8c
2 changed files with 4 additions and 4 deletions

View File

@@ -43,8 +43,8 @@ fun getBugreportFile(context: Context): File {
// busybox ps has very few features for embed devices
shell.newJob().add("toybox ps -T -A -w -o PID,TID,UID,COMM,CMDLINE,CMD,LABEL,STAT,WCHAN > ${processFile.absolutePath}").exec()
shell.newJob().add("dmesg > ${dmesgFile.absolutePath}").exec()
shell.newJob().add("logcat -d > ${logcatFile.absolutePath}").exec()
shell.newJob().add("dmesg -r > ${dmesgFile.absolutePath}").exec()
shell.newJob().add("logcat -b all -v uid -d > ${logcatFile.absolutePath}").exec()
shell.newJob().add("tar -czf ${tombstonesFile.absolutePath} -C /data/tombstones .").exec()
shell.newJob().add("tar -czf ${dropboxFile.absolutePath} -C /data/system/dropbox .").exec()
shell.newJob().add("tar -czf ${pstoreFile.absolutePath} -C /sys/fs/pstore .").exec()

View File

@@ -21,9 +21,9 @@ pub fn on_post_data_fs() -> Result<()> {
}
#[cfg(unix)]
let _ = catch_bootlog("logcat", &["logcat"]);
let _ = catch_bootlog("logcat", &["logcat", "-b", "all"]);
#[cfg(unix)]
let _ = catch_bootlog("dmesg", &["dmesg", "-w"]);
let _ = catch_bootlog("dmesg", &["dmesg", "-w", "-r"]);
if utils::has_magisk() {
warn!("Magisk detected, skip post-fs-data!");