Merge 8a5c6d817b077fdc7d687f853a6a98a06f023152 into 6e3d5569601e89b3edff657a9c9eec016a0e581a

This commit is contained in:
Howard Wu 2025-02-19 14:21:57 +08:00 committed by GitHub
commit 952bcf2f26
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -55,7 +55,8 @@ fun getBugreportFile(context: Context): File {
shell.newJob().add("ls -alRZ /data/adb > ${adbFileDetails.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("getprop > ${propFile.absolutePath}").exec()
// set restricted context to filter privacy props
shell.newJob().add("echo -n u:r:untrusted_app:s0 > /proc/thread-self/attr/current; getprop > ${propFile.absolutePath}").exec()
shell.newJob().add("cp /data/adb/ksu/.allowlist ${allowListFile.absolutePath}").exec()
shell.newJob().add("cp /proc/modules ${procModules.absolutePath}").exec()
shell.newJob().add("cp /proc/bootconfig ${bootConfig.absolutePath}").exec()
@ -108,4 +109,3 @@ fun getBugreportFile(context: Context): File {
return targetFile
}