manager: Add pstore and diag to bugreport
This commit is contained in:
@@ -20,6 +20,8 @@ fun getBugreportFile(context: Context): File {
|
|||||||
val logcatFile = File(bugreportDir, "logcat.txt")
|
val logcatFile = File(bugreportDir, "logcat.txt")
|
||||||
val tombstonesFile = File(bugreportDir, "tombstones.tar.gz")
|
val tombstonesFile = File(bugreportDir, "tombstones.tar.gz")
|
||||||
val dropboxFile = File(bugreportDir, "dropbox.tar.gz")
|
val dropboxFile = File(bugreportDir, "dropbox.tar.gz")
|
||||||
|
val pstoreFile = File(bugreportDir, "pstore.tar.gz")
|
||||||
|
val diagFile = File(bugreportDir, "diag.tar.gz")
|
||||||
val mountsFile = File(bugreportDir, "mounts.txt")
|
val mountsFile = File(bugreportDir, "mounts.txt")
|
||||||
val fileSystemsFile = File(bugreportDir, "filesystems.txt")
|
val fileSystemsFile = File(bugreportDir, "filesystems.txt")
|
||||||
val ksuFileTree = File(bugreportDir, "ksu_tree.txt")
|
val ksuFileTree = File(bugreportDir, "ksu_tree.txt")
|
||||||
@@ -32,6 +34,9 @@ fun getBugreportFile(context: Context): File {
|
|||||||
shell.newJob().add("logcat -d > ${logcatFile.absolutePath}").exec()
|
shell.newJob().add("logcat -d > ${logcatFile.absolutePath}").exec()
|
||||||
shell.newJob().add("tar -czf ${tombstonesFile.absolutePath} /data/tombstones").exec()
|
shell.newJob().add("tar -czf ${tombstonesFile.absolutePath} /data/tombstones").exec()
|
||||||
shell.newJob().add("tar -czf ${dropboxFile.absolutePath} /data/system/dropbox").exec()
|
shell.newJob().add("tar -czf ${dropboxFile.absolutePath} /data/system/dropbox").exec()
|
||||||
|
shell.newJob().add("tar -czf ${pstoreFile.absolutePath} /sys/fs/pstore").exec()
|
||||||
|
shell.newJob().add("tar -czf ${diagFile.absolutePath} /data/vendor/diag").exec()
|
||||||
|
|
||||||
shell.newJob().add("cat /proc/mounts > ${mountsFile.absolutePath}").exec()
|
shell.newJob().add("cat /proc/mounts > ${mountsFile.absolutePath}").exec()
|
||||||
shell.newJob().add("cat /proc/filesystems > ${fileSystemsFile.absolutePath}").exec()
|
shell.newJob().add("cat /proc/filesystems > ${fileSystemsFile.absolutePath}").exec()
|
||||||
shell.newJob().add("ls -alRZ /data/adb > ${ksuFileTree.absolutePath}").exec()
|
shell.newJob().add("ls -alRZ /data/adb > ${ksuFileTree.absolutePath}").exec()
|
||||||
|
|||||||
Reference in New Issue
Block a user