To specify the default behavior of the APK Scanner (optional) configuration files can be provided.
To view the current in use configuration, you can use the config show command or view the configuration files in the source code.
apkscanner-cli.yaml)verbose: false
quiet: false
apkscanner_config_file_path: "apkscanner.yaml"
console_output:
enable_rich_output: true
scan_apk:
verbose_all: false
verbose_generic: false
verbose_apk_info: false
verbose_detected_libraries: true
verbose_permissions: true
verbose_signature_apksig: false
verbose_signature_certificate: false
verbose_signing_block: false
store_as_json: "no"
json_exclude_defaults: false
json_output_directory: ""
json_output_subdirectory: false
json_output_with_apk: false
View the recent sample configuration.
false - Do not print any program output (where possible).falsefalse - Print additional verbose output; ignored when quiet is enabled.falseapkscanner-cli.yaml, containing APK Scanner configuration.apkscanner.yamlconsole_outputtruescan_apktrue, otherwise respect the other scoped verbose_* options.falsefalsefalsetruetruefalsefalsefalsenonoYesprettyfalse""falsefalseapkscanner.yaml)data:
use_default_data: true
certificate_denylist_path: ""
certificate_denylist_export_path: "export/certificate_denylist.json"
library_definition_path: ""
library_definition_export_path: "export/libsmali.jsonl"
library_information_path: ""
library_information_export_path: "export/libinfo.jsonl"
manifest_config_path: ""
manifest_config_export_path: "export/manifest_config.json"
database:
debug: false
type: "none"
mode: "default"
path: "apkscanner"
scan:
apk_reported_path_type: "default"
View the recent sample configuration.
datatrueJSON file, containing certificate definitions to be used for the deny list."""export/certificate_denylist.json"JSON Lines file, containing library definitions to be used by the library scanner."""export/libsmali.jsonl"JSON Lines file, containing library information to be used by the library scanner."""export/libinfo.jsonl"JSON file, containing manifest configurations to be used by the manifest scanner."""export/manifest_config.json"databasefalsenonenoneh2defaultdefault):
h2memory - Run the database in memory mode, destroying the database after the application exits.apkscannerscandefaultabsolute: use absolute path of the file, e.g.: /opt/repo/file.apk.filename: use file name only, e.g.: file.apk.relative: use relative path from current working directory to the file, e.g.: repo/file.apk.default: use current default (filename).