mirror of
https://github.com/mvt-project/mvt.git
synced 2026-02-12 16:42:45 +00:00
Fix ruff checks
This commit is contained in:
@@ -29,7 +29,7 @@ class DumpsysPlatformCompatArtifact(AndroidArtifact):
|
||||
|
||||
if line.strip() == "":
|
||||
break
|
||||
|
||||
|
||||
# Look for rawOverrides field
|
||||
if "rawOverrides={" in line:
|
||||
# Extract the content inside the braces for rawOverrides
|
||||
@@ -39,6 +39,4 @@ class DumpsysPlatformCompatArtifact(AndroidArtifact):
|
||||
# Extract app name
|
||||
uninstall_app = entry.split("=")[0].strip()
|
||||
|
||||
self.results.append(
|
||||
{"package_name": uninstall_app}
|
||||
)
|
||||
self.results.append({"package_name": uninstall_app})
|
||||
|
||||
@@ -41,4 +41,4 @@ class DumpsysPlatformCompat(DumpsysPlatformCompatArtifact, AndroidQFModule):
|
||||
content = self.extract_dumpsys_section(data, "DUMP OF SERVICE platform_compat:")
|
||||
self.parse(content)
|
||||
|
||||
self.log.info("Found %d uninstalled apps", len(self.results))
|
||||
self.log.info("Found %d uninstalled apps", len(self.results))
|
||||
|
||||
@@ -45,4 +45,4 @@ class PlatformCompat(DumpsysPlatformCompatArtifact, BugReportModule):
|
||||
content = self.extract_dumpsys_section(data, "DUMP OF SERVICE platform_compat:")
|
||||
self.parse(content)
|
||||
|
||||
self.log.info("Found %d uninstalled apps", len(self.results))
|
||||
self.log.info("Found %d uninstalled apps", len(self.results))
|
||||
|
||||
@@ -324,7 +324,6 @@ class Indicators:
|
||||
|
||||
def get_iocs(self, ioc_type: str) -> Iterator[Dict[str, Any]]:
|
||||
for ioc_collection in self.ioc_collections:
|
||||
|
||||
for ioc in ioc_collection.get(ioc_type, []):
|
||||
yield {
|
||||
"value": ioc,
|
||||
|
||||
Reference in New Issue
Block a user