./apksigner verify -v /home/桌面/version/DK_AsphaltNitro_signed.apk
查看签名
./apksigner verify -v /home/zyf/桌面/version/DK_AsphaltNitro.apk
Verifies
Verified using v1 scheme (JAR signing): true
Verified using v2 scheme (APK Signature Scheme v2): true
Number of signers: 1
v1签名
java -jar apksigner.jar sign -verbose --ks zs.keystore --v1-signing-enabled true --v2-signing-enabled false --ks-pass pass:123123 --ks-key-alias zs.keystore --key-pass 123123 --out test_dst.apk test_src.apk
v2签名
java -jar apksigner.jar sign -verbose --ks zs.keystore --v1-signing-enabled false --v2-signing-enabled true --ks-pass pass:123123 --ks-key-alias zs.keystore --key-pass 123123 --out test_dst.apk test_src.apk
v3、v4签名
apksigner sign --v1-signing-enabled true --v2-signing-enabled false --v3-signing-enabled false --v4-signing-enabled false --ks user.keystore 01.apk
生成簽名:
keytool -genkey -alias zyf111 -keyalg RSA -validity 36500 -keystore zyf111.keystore
簽名:
jarsigner -verbose -keystore zyf111.keystore -signedjar DK_AsphaltNitro_s.apk DK_AsphaltNitro.apk zyf111