• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1USAGE: apksigner verify [options] apk
2
3This checks whether the provided APK will verify on Android. By default, this
4checks whether the APK will verify on all Android platform versions supported
5by the APK (as declared using minSdkVersion in AndroidManifest.xml). Use
6--min-sdk-version and/or --max-sdk-version to verify the APK against a custom
7range of API Levels.
8
9
10        OPTIONS
11
12--print-certs         Show information about the APK's signing certificates
13
14--print-certs-pem     Show information about the APK's signing certificates and prints the PEM
15                      encoding of each signing certificate to stdout.
16
17-v, --verbose         Verbose output mode
18
19--min-sdk-version     Lowest API Level on which this APK's signatures will be
20                      verified. By default, the value from AndroidManifest.xml
21                      is used.
22
23--max-sdk-version     Highest API Level on which this APK's signatures will be
24                      verified. By default, the highest possible value is used.
25
26-Werr                 Treat warnings as errors
27
28--in                  APK file to verify. This is an alternative to specifying
29                      the APK as the very last parameter, after all options.
30
31-h, --help            Show help about this command and exit
32
33
34        EXAMPLES
35
361. Check whether the APK's signatures are expected to verify on all Android
37   platforms declared as supported by this APK:
38$ apksigner verify app.apk
39
402. Check whether the APK's signatures are expected to verify on Android
41   platforms with API Level 15 and higher:
42$ apksigner verify --min-sdk-version 15 app.apk
43