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.
A wrong password typed at the prompt ended the check with "Invalid backup
password", and check-androidqf skipped the backup modules. An analyst who
was handed several candidate passwords had to start the whole run again
for each one.
Ask for the password again, up to three attempts in total. A password
given with --backup-password or in the environment is not asked for
again, as before, so scripted runs fail the same way.
Fixes#979
* Add favicon and logo to mkdocs site and add dark/light mode toggle
* Use black primary colour and follow the OS light/dark mode
Switch the palette to the automatic light/dark mode setup from the
Material for MkDocs docs, with the same toggle icons the Material site
uses. Drop the blue grey accent, which Material does not support as an
accent colour, and remove trailing whitespace.
---------
Co-authored-by: Donncha Ó Cearbhaill <donncha.ocearbhaill@amnesty.org>
Replace prescriptive documentation with descriptions of event records,
payload fields, collection, and analysis. Remove stale references to the
deleted JSON key inventory.
dumpsys prints the settings change history without a year, so
_resolve_timestamp() parsed the value with strptime("%m-%d ...") and only
then replaced the year. strptime() parses a value without a year in 1900,
which has no 29 February, so every change made on a leap day raised
ValueError and lost its timestamp, dropping it from the timeline and from
the alert of a dangerous setting.
Parse the value together with a year instead, starting from the year the
section was dumped and going back until the date exists and is not later
than the dump. Eight years always reach a leap year.
This also removes the DeprecationWarning Python 3.13 raises for parsing a
day of month without a year (python/cpython#70647).
Since #957 the parsed body keeps the closing brace of debugging_manager
and the blank lines before it. The brace popped two levels, and a blank
line after system_keys raised IndexError. Don't pop when the
indentation drops on a closing brace, and skip blank lines outside
multiline values.
Fixes#967.