Merge 8a5c6d817b077fdc7d687f853a6a98a06f023152 into eeffecbd1bd7d49672a1c6bd52d95d28a42acb21

This commit is contained in:
Howard Wu 2025-02-18 19:11:42 +08:00 committed by GitHub
commit 7fc9b6b417
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
}