manager: send app list in bug report (#248)
We need this for uid in dmesg
This commit is contained in:
@@ -23,6 +23,7 @@ fun getBugreportFile(context: Context): File {
|
|||||||
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")
|
||||||
|
val appListFile = File(bugreportDir, "app_list.txt")
|
||||||
|
|
||||||
val shell = createRootShell()
|
val shell = createRootShell()
|
||||||
|
|
||||||
@@ -33,6 +34,7 @@ fun getBugreportFile(context: Context): File {
|
|||||||
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/ksu > ${ksuFileTree.absolutePath}").exec()
|
shell.newJob().add("ls -alRZ /data/adb/ksu > ${ksuFileTree.absolutePath}").exec()
|
||||||
|
shell.newJob().add("cat /data/system/packages.list > ${appListFile.absolutePath}").exec()
|
||||||
|
|
||||||
// basic information
|
// basic information
|
||||||
val buildInfo = File(bugreportDir, "basic.txt")
|
val buildInfo = File(bugreportDir, "basic.txt")
|
||||||
@@ -70,9 +72,9 @@ fun getBugreportFile(context: Context): File {
|
|||||||
|
|
||||||
val targetFile = File(context.cacheDir, "KernelSU_bugreport_${current}.tar.gz")
|
val targetFile = File(context.cacheDir, "KernelSU_bugreport_${current}.tar.gz")
|
||||||
|
|
||||||
shell.newJob().add("tar czf ${targetFile.absolutePath} -C ${bugreportDir.absolutePath} .").exec()
|
shell.newJob().add("tar czf ${targetFile.absolutePath} -C ${bugreportDir.absolutePath} .").exec()
|
||||||
shell.newJob().add("rm -rf ${bugreportDir.absolutePath}").exec()
|
shell.newJob().add("rm -rf ${bugreportDir.absolutePath}").exec()
|
||||||
shell.newJob().add("chmod 0644 ${targetFile.absolutePath}").exec()
|
shell.newJob().add("chmod 0644 ${targetFile.absolutePath}").exec()
|
||||||
|
|
||||||
return targetFile;
|
return targetFile
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user