From dd96ebd40958e4dadae6c9cfa9f00354f3370a33 Mon Sep 17 00:00:00 2001 From: Janik Besendorf Date: Sat, 22 Aug 2026 14:17:35 +0200 Subject: [PATCH] Add Android bugreport schema version --- src/mvt/android/cmd_check_bugreport.py | 1 + src/mvt/common/command.py | 3 +++ 2 files changed, 4 insertions(+) diff --git a/src/mvt/android/cmd_check_bugreport.py b/src/mvt/android/cmd_check_bugreport.py index 1c03c6d..668f5b9 100644 --- a/src/mvt/android/cmd_check_bugreport.py +++ b/src/mvt/android/cmd_check_bugreport.py @@ -53,6 +53,7 @@ class CmdAndroidCheckBugreport(Command): self.platform = "android" self.name = "check-bugreport" + self.output_schema_version = 2 self.modules = BUGREPORT_MODULES self.__format: str = "" diff --git a/src/mvt/common/command.py b/src/mvt/common/command.py index 6111dc7..2caee2c 100644 --- a/src/mvt/common/command.py +++ b/src/mvt/common/command.py @@ -54,6 +54,7 @@ class Command: ) -> None: self.name = "" self.platform = "" + self.output_schema_version: Optional[int] = None self.modules: list[type[MVTModule]] = [] self.custom_modules = custom_modules if custom_modules else [] @@ -186,6 +187,8 @@ class Command: "ioc_files": [], "hashes": [], } + if self.output_schema_version is not None: + info["output_schema_version"] = self.output_schema_version for coll in self.iocs.ioc_collections: ioc_file_path = coll.get("stix2_file_path", "")