manager: Add ksu file real size to logs
This commit is contained in:
@@ -27,6 +27,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 ksuFileSize = File(bugreportDir, "ksu_size.txt")
|
||||||
val appListFile = File(bugreportDir, "packages.txt")
|
val appListFile = File(bugreportDir, "packages.txt")
|
||||||
val propFile = File(bugreportDir, "props.txt")
|
val propFile = File(bugreportDir, "props.txt")
|
||||||
val allowListFile = File(bugreportDir, "allowlist.bin")
|
val allowListFile = File(bugreportDir, "allowlist.bin")
|
||||||
@@ -47,6 +48,7 @@ fun getBugreportFile(context: Context): File {
|
|||||||
shell.newJob().add("cat /proc/1/mountinfo > ${mountsFile.absolutePath}").exec()
|
shell.newJob().add("cat /proc/1/mountinfo > ${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()
|
||||||
|
shell.newJob().add("du -sh /data/adb/ksu/* > ${ksuFileSize.absolutePath}").exec()
|
||||||
shell.newJob().add("cp /data/system/packages.list ${appListFile.absolutePath}").exec()
|
shell.newJob().add("cp /data/system/packages.list ${appListFile.absolutePath}").exec()
|
||||||
shell.newJob().add("getprop > ${propFile.absolutePath}").exec()
|
shell.newJob().add("getprop > ${propFile.absolutePath}").exec()
|
||||||
shell.newJob().add("cp /data/adb/ksu/.allowlist ${allowListFile.absolutePath}").exec()
|
shell.newJob().add("cp /data/adb/ksu/.allowlist ${allowListFile.absolutePath}").exec()
|
||||||
|
|||||||
Reference in New Issue
Block a user