Home > OS >  apksigner verify with no output
apksigner verify with no output

Time:05-11

Shouldn't I expect an "Ok" output whenever I run apksigner verify APK.apk on my apk and it finishes correctly?

I ran the command on an apk and it simply finished without throwing any warning or message.

I am suspicious that the apk is corrupt because adb install is taking forever.

CodePudding user response:

By default apksigner does only output warnings and errors on console.

If you want to see verification details execute

apksigner verify --verbose APK.apk

You will get a complete verification result and a separate output for each verification check like this:

Verifies
Verified using v1 scheme (JAR signing): true
Verified using v2 scheme (APK Signature Scheme v2): true
Verified using v3 scheme (APK Signature Scheme v3): false
Verified using v4 scheme (APK Signature Scheme v4): false
Verified for SourceStamp: false
Number of signers: 1
  • Related