Interact with the application database.
setupSet up the database for usage, removing existing data.
The database will be cleaned and recreated, importing data specified in the data configuration.
If data already exists, the command will wait for 30 seconds before proceeding unless the force option is specified.
apk-scanner database setup [<options>]
$> apk-scanner database setup --force
Database set up in 1757 ms
$> apk-scanner database setup
WARNING: existing data found, which will be destroyed!
Terminate the application, if this was a mistake!
Waiting for 30 seconds (this can be skipped with using the force option):
30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Database set up in 2027 ms
export-allExports everything that can be exported to the specified export paths in the data configuration.
For more information about each action, see the other export-* commands below.
If an exported file already exists, it will be overwritten.
apk-scanner database export-all
$> apk-scanner database export-all
Exported 14 denied signing certificates to: ~/apkscanner/export/certificate_denylist.json
Exported manifest config ((Flags(groups: 3, total flags: 3), Filters(groups: 3, total filters: 3), permissions(groups: 3, total permissions: 32))) to: ~/apkscanner/export/manifest_config.json
Exported 4126 library definitions to: ~/apkscanner/export/libsmali.jsonl
Exported 3617 library information entries to: ~/apkscanner/export/libinfo.jsonl
export-library-definitionsExports library data to the location of library_definition_export_path and library_information_export_path specified in the data configuration.
If an exported file already exists, it will be overwritten.
apk-scanner database export-library-definitions
$> apk-scanner database export-library-definitions
Exported 4126 library definitions to: ~/apkscanner/export/libinfo.jsonl
Exported 3617 library information entries to: ~/apkscanner/export/libsmali.jsonl
export-manifest-configExports manifest data to the location of manifest_config_export_path specified in the data configuration.
If an exported file already exists, it will be overwritten.
apk-scanner database export-manifest-config
$> apk-scanner database export-manifest-config
Exported manifest config ((Flags(groups: 3, total flags: 3), Filters(groups: 3, total filters: 3), permissions(groups: 3, total permissions: 32))) to: ~/apkscanner/export/manifest_config.json
export-signing-certificate-dataExports library data to the location of certificate_denylist_export_path specified in the data configuration.
If an exported file already exists, it will be overwritten.
apk-scanner database export-signing-certificate-data
$> apk-scanner database export-signing-certificate-data
Exported 14 denied signing certificates to: ~/apkscanner/export/certificate_denylist.json