Skip to content

Commit be8f503

Browse files
Anatdxluyanci
andcommitted
manager: add defconfig.gz into bug report file
Port from APatch caeeca8 (#1408). Co-authored-by: YC酱luyancib <2058282593@qq.com>
1 parent e5b9527 commit be8f503

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

app/src/main/java/com/anatdx/icepatch/util/LogEvent.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ fun getBugreportFile(context: Context): File {
1717

1818
val dmesgFile = File(bugreportDir, "dmesg.txt")
1919
val logcatFile = File(bugreportDir, "logcat.txt")
20+
val defconfigFile = File(bugreportDir, "defconfig.gz")
2021
val tombstonesFile = File(bugreportDir, "tombstones.tar.gz")
2122
val dropboxFile = File(bugreportDir, "dropbox.tar.gz")
2223
val pstoreFile = File(bugreportDir, "pstore.tar.gz")
@@ -33,6 +34,7 @@ fun getBugreportFile(context: Context): File {
3334

3435
shell.newJob().add("dmesg > ${dmesgFile.absolutePath}").exec()
3536
shell.newJob().add("logcat -d > ${logcatFile.absolutePath}").exec()
37+
shell.newJob().add("cp /proc/config.gz ${defconfigFile.absolutePath} 2>/dev/null || true").exec()
3638
shell.newJob().add("tar -czf ${tombstonesFile.absolutePath} -C /data/tombstones .").exec()
3739
shell.newJob().add("tar -czf ${dropboxFile.absolutePath} -C /data/system/dropbox .").exec()
3840
shell.newJob().add("tar -czf ${pstoreFile.absolutePath} -C /sys/fs/pstore .").exec()

0 commit comments

Comments
 (0)