0

I have pasted the below command in the Terminal / Command Prompt and found the output from the below image file. So how do I enable or set v3 & v4 Signature Scheme to true which is currently getting false

java -jar /Users/Admin/Library/Android/sdk/build-tools/31.0.0/lib/apksigner.jar verify -v --print-certs /Users/Admin/Downloads/TestApp.apk

enter image description here

Questions:

  1. Do I have to change anything inside the app level build.gradle file?
  2. Currently I am referring the below sites for the v3 & v4 Signature Scheme
    2.1 v3 Signature Scheme: https://source.android.com/security/apksigning/v3
    2.2 v4 Signature Scheme: https://source.android.com/security/apksigning/v4
Parth Bhayani
  • 2,176
  • 3
  • 15
  • 35
  • Have you seen: [How to create a release signed apk file using Gradle?](https://stackoverflow.com/a/21020469/295004) – Morrison Chang Feb 21 '22 at 06:04
  • @MorrisonChang Yes, I have already added those oarams to the SigningConfig – Parth Bhayani Feb 21 '22 at 06:06
  • Does this answer your question? [How can I sign my app with "APK Signature Scheme v3 and v4"?](https://stackoverflow.com/questions/59248088/how-can-i-sign-my-app-with-apk-signature-scheme-v3-and-v4) – Nitish Feb 21 '22 at 06:14
  • In short, use a more recent version of apksigner, e.g. by updating the SDK tools. – Pierre Feb 21 '22 at 08:42

0 Answers0