Propagate the module filter to the AndroidQF nested commands

mvt-android check-androidqf -m MODULE filtered only the top-level
AndroidQF modules: when the archive holds bugreport.zip, backup.ab or
an intrusion_logs folder the nested commands were built without
module_name, so every nested module ran regardless of the filter.
Pass self.module_name to all three nested commands; a filter naming
an AndroidQF module now runs exactly that module, and a filter naming
a nested module selects it from the nested command.
This commit is contained in:
Donncha Ó Cearbhaill committed 2026-11-22 13:20:13 +01:00
1 parent 6ef66048ac
commit f75451c01c
1 file changed
+3
+3
View File
@@ -259,6 +259,7 @@ class CmdAndroidCheckAndroidQF(Command):
hashes=self.hashes,
sub_command=True,
custom_modules=self.custom_modules,
module_name=self.module_name,
)
cmd.from_zip(bugreport)
cmd.run()
@@ -290,6 +291,7 @@ class CmdAndroidCheckAndroidQF(Command):
hashes=self.hashes,
sub_command=True,
custom_modules=self.custom_modules,
module_name=self.module_name,
)
try:
cmd.from_ab(backup)
@@ -376,6 +378,7 @@ class CmdAndroidCheckAndroidQF(Command):
hashes=self.hashes,
sub_command=True,
custom_modules=self.custom_modules,
module_name=self.module_name,
)
cmd.run()