APK Scanner

Usage

How to use APK Scanner.

Initial setup

The APK Scanner processes a lot of data, which needs to be prepared in advance to get the most out of it.

While it is possible to use the default data provided with the APK Scanner, it is best to prepare your own data so you can modify it to suit your needs.

To get the most out of APK Scanner, please also check the configuration options.

These are example steps to show how this can be done.

Install APK Scanner

Please follow the Installation section.

Prepare a working directory

This is where the APK Scanner data will live in, in this example this is ~/apkscanner.

Terminal
mkdir ~/apkscanner
cd ~/apkscanner

(optional) Create the configuration files

(optional) Prepare your local data

(optional) Set up the database

Run your first scan

First you need an APK which you can scan.

This example uses the lovely Catima app, which is located at ~/Downloads/me.hackerchick.catima_155.apk.

apk-scanner scan-apk ~/Downloads/me.hackerchick.catima_155.apk

Export data from the database

If you have edited the database used by APK Scanner directly or just want to export your data in general, you can do so!

The location of the exported files will match the data configuration of your apkscanner.yaml.

# Export everything
apk-scanner database export-all

# Export library data
apk-scanner database export-library-definitions

# Export manifest data
apk-scanner database export-manifest-config

# Export signing certificates data
apk-scanner database export-signing-certificate-data

Advanced usage

Specify path to CLI config file

You can use -c/--config to specify a custom location for the apkscanner-cli.yaml (defaults to current working directory where you run apk-scanner).

Terminal
apk-scanner -c /path/to/apkscanner-cli.yaml

apk-scanner --config /path/to/apkscanner-cli.yaml

argfile support

Loading additional CLI arguments from a file is supported.

To use it, pass in any file path prefixed with @ to expand the contents of the file into command line parameters.

-q
scan-apk
--json=pretty
/opt/apkscanner/data/apks/me.hackerchick.catima_149.apk