Skip to content

Commit

Permalink
AppCleaner: Clean up regex matching
Browse files Browse the repository at this point in the history
  • Loading branch information
d4rken committed Jul 8, 2024
1 parent 710a5bf commit 144d136
Show file tree
Hide file tree
Showing 10 changed files with 124 additions and 262 deletions.
4 changes: 2 additions & 2 deletions app/src/main/assets/expendables/db_advertisement_files.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"locations": ["SDCARD"],
"startsWith": ["MidasOversea/"],
"patterns": [
"^(?>MidasOversea/)([\\W\\w]+?)$"
"^(?>MidasOversea/)(.+?)$"
]
}
]
Expand All @@ -56,7 +56,7 @@
"locations": ["SDCARD"],
"startsWith": [".bmob/"],
"patterns": [
"^(?>\\.bmob/)([\\W\\w]+?)$"
"^(?>\\.bmob/)(.+?)$"
]
}
]
Expand Down
4 changes: 2 additions & 2 deletions app/src/main/assets/expendables/db_analytics_files.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
"locations": ["SDCARD"],
"startsWith": ["tencent/beacon/"],
"patterns": [
"^(?>tencent/beacon/)([\\W\\w]+?)$"
"^(?>tencent/beacon/)(.+?)$"
]
}
]
Expand All @@ -100,7 +100,7 @@
"locations": ["SDCARD"],
"startsWith": [".sysdv/"],
"patterns": [
"^(?>.sysdv/)([\\W\\w]+?)$"
"^(?>.sysdv/)(.+?)$"
]
}
]
Expand Down
36 changes: 18 additions & 18 deletions app/src/main/assets/expendables/db_bug_reporting_files.json
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@
{
"locations": ["PRIVATE_DATA"],
"startsWith": ["com.skype.rover/files/", "com.skype.raider/files/"],
"patterns": ["^(?:com\\.skype\\.(?:rover|raider)/files/[\\w,._-]+?/logs/)([\\W\\w]+?)$"]
"patterns": ["^(?:com\\.skype\\.(?:rover|raider)/files/[\\w,._-]+?/logs/)(.+?)$"]
}
]
}, {
Expand All @@ -184,7 +184,7 @@
{
"locations": ["SDCARD"],
"startsWith": ["MaleWorkout/crash/"],
"patterns": ["^(?:MaleWorkout/crash/)([\\W\\w]+?)$"]
"patterns": ["^(?:MaleWorkout/crash/)(.+?)$"]
}
]
}, {
Expand All @@ -198,11 +198,11 @@
{
"locations": ["PUBLIC_DATA"],
"contains": ["/.cache/KingsoftOffice/log/"],
"patterns": ["^(?:cn\\.wps\\.moffice[_\\w]*/\\.cache/KingsoftOffice/log/)([\\W\\w]+?)$"]
"patterns": ["^(?:cn\\.wps\\.moffice[_\\w]*/\\.cache/KingsoftOffice/log/)(.+?)$"]
}, {
"locations": ["PUBLIC_DATA"],
"contains": ["/.cache/KingsoftOffice/.temp/"],
"patterns": ["^(?:cn\\.wps\\.moffice[_\\w]*\/\\.cache\/KingsoftOffice\/\\.temp\/)([\\W\\w]+?)$"]
"patterns": ["^(?:cn\\.wps\\.moffice[_\\w]*\/\\.cache\/KingsoftOffice\/\\.temp\/)(.+?)$"]
}
]
}, {
Expand All @@ -214,7 +214,7 @@
{
"locations": ["SDCARD"],
"startsWith": ["archos_debug/"],
"patterns": ["^(?:archos_debug/)([\\W\\w]+?)$"]
"patterns": ["^(?:archos_debug/)(.+?)$"]
}
]
}, {
Expand All @@ -224,11 +224,11 @@
"locations": ["SDCARD"],
"startsWith": ["tencent/MicroMsg/"],
"patterns": [
"^(?>tencent/MicroMsg/crash/)([\\W\\w]+?)$",
"^(?>tencent/MicroMsg/xlog/)([\\W\\w]+?)$",
"^(?>tencent/MicroMsg/locallog/)([\\W\\w]+?)$",
"^(?>tencent/MicroMsg/watchdog/)([\\W\\w]+?)$",
"^(?>tencent/MicroMsg/failmsgfilecache/)([\\W\\w]+?)$",
"^(?>tencent/MicroMsg/crash/)(.+?)$",
"^(?>tencent/MicroMsg/xlog/)(.+?)$",
"^(?>tencent/MicroMsg/locallog/)(.+?)$",
"^(?>tencent/MicroMsg/watchdog/)(.+?)$",
"^(?>tencent/MicroMsg/failmsgfilecache/)(.+?)$",
"^(?>tencent/MicroMsg/)(FTS5IndexMicroMsgInfo.txt)$",
"^(?>tencent/MicroMsg/[0-9a-z-]{32}\/logcat\/)(?>.+)"
]
Expand All @@ -248,23 +248,23 @@
{
"locations": ["SDCARD"],
"startsWith": ["tencent/wns/EncryptLogs/"],
"patterns": ["^(?>tencent\/wns\/EncryptLogs\/[\\w\\.]+\/)([\\W\\w]+?)$"]
"patterns": ["^(?>tencent\/wns\/EncryptLogs\/[\\w\\.]+\/)(.+?)$"]
}
]
}, {
"fileFilter": [
{
"locations": ["SDCARD"],
"startsWith": ["tencent/msflogs/"],
"patterns": ["^(?>tencent\/msflogs\/(?>\\w+\/){3})([\\W\\w]+?)$"]
"patterns": ["^(?>tencent\/msflogs\/(?>\\w+\/){3})(.+?)$"]
}
]
}, {
"fileFilter": [
{
"locations": ["SDCARD"],
"startsWith": ["log/GearLog/"],
"patterns": ["^(?:log/GearLog/)([\\W\\w]+?)$"]
"patterns": ["^(?:log/GearLog/)(.+?)$"]
}
]
}, {
Expand All @@ -277,7 +277,7 @@
}, {
"locations": ["PRIVATE_DATA"],
"startsWith": ["org.mozilla.fenix/glean_data/"],
"patterns": ["^(?:org\\.mozilla\\.fenix/glean_data/)([\\W\\w]+?)$"]
"patterns": ["^(?:org\\.mozilla\\.fenix/glean_data/)(.+?)$"]
}
]
}, {
Expand All @@ -303,7 +303,7 @@
{
"locations": ["SDCARD"],
"startsWith": ["ICBCWAPLog/"],
"patterns": ["^(?:ICBCWAPLog/)([\\W\\w]+?)$"]
"patterns": ["^(?:ICBCWAPLog/)(.+?)$"]
}
]
}, {
Expand All @@ -312,7 +312,7 @@
{
"locations": ["SDCARD"],
"startsWith": ["vmlog/"],
"patterns": ["^(?:vmlog/)([\\W\\w]+?)$"]
"patterns": ["^(?:vmlog/)(.+?)$"]
}, {
"locations": ["SDCARD"],
"startsWith": ["log.txt"],
Expand All @@ -334,7 +334,7 @@
{
"locations": ["SDCARD"],
"startsWith": ["Android/flyme_sync_sdk_log"],
"patterns": ["^(?:Android/flyme_sync_sdk_log.txt(/[\\W\\w]+?)?)$"]
"patterns": ["^(?:Android/flyme_sync_sdk_log.txt(/.+?)?)$"]
}
]
}, {
Expand Down Expand Up @@ -365,7 +365,7 @@
{
"locations": ["SDCARD"],
"startsWith": ["sogou"],
"patterns": ["^(?:sogou/corelog/)([\\W\\w]+?)$"]
"patterns": ["^(?:sogou/corelog/)(.+?)$"]
}
]
}, {
Expand Down
Loading

0 comments on commit 144d136

Please sign in to comment.