unplugged-system/packages/modules/Virtualization/libs/apkverify/tests/data
2025-10-06 13:59:42 +00:00
..
create.sh Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
input.1M Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
input.1M.descriptor Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
input.1M.hash Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
input.4K Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
input.4K.descriptor Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
input.4K.hash Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
input.512 Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
input.512.descriptor Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
input.512.hash Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
input.10000000 Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
input.10000000.descriptor Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
input.10000000.hash Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
input.272629760 Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
input.272629760.descriptor Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
input.272629760.hash Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
README.md Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
test.apex Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
test.apex.apk_digest Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
test.apex.der Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
v2-only-truncated-cd.apk Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
v2-only-two-signers.apk Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
v3-only-cert-and-public-key-mismatch.apk Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
v3-only-empty.apk Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
v3-only-no-certs-in-sig.apk Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
v3-only-no-supported-sig-algs.apk Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
v3-only-signatures-and-digests-block-mismatch.apk Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
v3-only-unknown-additional-attr.apk Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
v3-only-unknown-additional-attr.apk.apk_digest Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
v3-only-unknown-additional-attr.apk.der Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
v3-only-unknown-pair-in-apk-sig-block.apk Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
v3-only-unknown-pair-in-apk-sig-block.apk.apk_digest Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
v3-only-unknown-pair-in-apk-sig-block.apk.der Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
v3-only-with-dsa-sha256-1024.apk Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
v3-only-with-dsa-sha256-2048-sig-does-not-verify.apk Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
v3-only-with-dsa-sha256-2048.apk Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
v3-only-with-dsa-sha256-3072-digest-mismatch.apk Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
v3-only-with-dsa-sha256-3072.apk Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
v3-only-with-ecdsa-sha256-p256.apk Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
v3-only-with-ecdsa-sha256-p256.apk.apk_digest Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
v3-only-with-ecdsa-sha256-p256.apk.der Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
v3-only-with-ecdsa-sha256-p384.apk Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
v3-only-with-ecdsa-sha256-p384.apk.apk_digest Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
v3-only-with-ecdsa-sha256-p384.apk.der Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
v3-only-with-ecdsa-sha256-p521.apk Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
v3-only-with-ecdsa-sha256-p521.apk.apk_digest Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
v3-only-with-ecdsa-sha256-p521.apk.der Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
v3-only-with-ecdsa-sha512-p256.apk Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
v3-only-with-ecdsa-sha512-p256.apk.apk_digest Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
v3-only-with-ecdsa-sha512-p256.apk.der Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
v3-only-with-ecdsa-sha512-p384-wrong-apk-sig-block-magic.apk Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
v3-only-with-ecdsa-sha512-p384.apk Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
v3-only-with-ecdsa-sha512-p384.apk.apk_digest Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
v3-only-with-ecdsa-sha512-p384.apk.der Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
v3-only-with-ecdsa-sha512-p521-sig-does-not-verify.apk Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
v3-only-with-ecdsa-sha512-p521.apk Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
v3-only-with-ecdsa-sha512-p521.apk.apk_digest Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
v3-only-with-ecdsa-sha512-p521.apk.der Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
v3-only-with-ignorable-unsupported-sig-algs.apk Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
v3-only-with-ignorable-unsupported-sig-algs.apk.apk_digest Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
v3-only-with-ignorable-unsupported-sig-algs.apk.der Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
v3-only-with-rsa-pkcs1-sha256-1024.apk Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
v3-only-with-rsa-pkcs1-sha256-1024.apk.apk_digest Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
v3-only-with-rsa-pkcs1-sha256-1024.apk.der Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
v3-only-with-rsa-pkcs1-sha256-2048.apk Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
v3-only-with-rsa-pkcs1-sha256-2048.apk.apk_digest Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
v3-only-with-rsa-pkcs1-sha256-2048.apk.der Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
v3-only-with-rsa-pkcs1-sha256-3072-sig-does-not-verify.apk Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
v3-only-with-rsa-pkcs1-sha256-3072.apk Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
v3-only-with-rsa-pkcs1-sha256-3072.apk.apk_digest Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
v3-only-with-rsa-pkcs1-sha256-3072.apk.der Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
v3-only-with-rsa-pkcs1-sha256-4096.apk Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
v3-only-with-rsa-pkcs1-sha256-4096.apk.apk_digest Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
v3-only-with-rsa-pkcs1-sha256-4096.apk.der Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
v3-only-with-rsa-pkcs1-sha256-8192.apk Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
v3-only-with-rsa-pkcs1-sha256-8192.apk.apk_digest Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
v3-only-with-rsa-pkcs1-sha256-8192.apk.der Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
v3-only-with-rsa-pkcs1-sha256-16384.apk Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
v3-only-with-rsa-pkcs1-sha256-16384.apk.apk_digest Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
v3-only-with-rsa-pkcs1-sha256-16384.apk.der Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
v3-only-with-rsa-pkcs1-sha512-1024.apk Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
v3-only-with-rsa-pkcs1-sha512-1024.apk.apk_digest Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
v3-only-with-rsa-pkcs1-sha512-1024.apk.der Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
v3-only-with-rsa-pkcs1-sha512-2048.apk Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
v3-only-with-rsa-pkcs1-sha512-2048.apk.apk_digest Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
v3-only-with-rsa-pkcs1-sha512-2048.apk.der Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
v3-only-with-rsa-pkcs1-sha512-3072.apk Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
v3-only-with-rsa-pkcs1-sha512-3072.apk.apk_digest Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
v3-only-with-rsa-pkcs1-sha512-3072.apk.der Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
v3-only-with-rsa-pkcs1-sha512-4096-apk-sig-block-size-mismatch.apk Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
v3-only-with-rsa-pkcs1-sha512-4096.apk Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
v3-only-with-rsa-pkcs1-sha512-4096.apk.apk_digest Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
v3-only-with-rsa-pkcs1-sha512-4096.apk.der Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
v3-only-with-rsa-pkcs1-sha512-8192-digest-mismatch.apk Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
v3-only-with-rsa-pkcs1-sha512-8192.apk Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
v3-only-with-rsa-pkcs1-sha512-8192.apk.apk_digest Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
v3-only-with-rsa-pkcs1-sha512-8192.apk.der Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
v3-only-with-rsa-pkcs1-sha512-16384.apk Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
v3-only-with-rsa-pkcs1-sha512-16384.apk.apk_digest Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
v3-only-with-rsa-pkcs1-sha512-16384.apk.der Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
v3-only-with-stamp.apk Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
v3-only-with-stamp.apk.apk_digest Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
v3-only-with-stamp.apk.der Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
v4-digest-v3-Sha256withEC.apk Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
v4-digest-v3-Sha256withEC.apk.idsig Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
v31-rsa-2048_2-tgt-33-1-tgt-28.apk Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00

About test data

.apk

test.apex is copied from ADBD apex built in AOSP.

$ apksigner verify -v test.apex
Verifies
Verified using v1 scheme (JAR signing): false
Verified using v2 scheme (APK Signature Scheme v2): false
Verified using v3 scheme (APK Signature Scheme v3): true
Verified using v4 scheme (APK Signature Scheme v4): false
Verified for SourceStamp: false
Number of signers: 1

APK files are copied from tools/apksig/src/test/resources/com/android/apksig/.

.der

.der files contain the expected public keys. When validating the public keys in tests, if the corresponding .der file is missing, there will be some text as follows in the failure message:

$ echo -en \\x30\\x59\\x30\\x13\\x06\\x07\\x2a\\x86\\x48\\xce\\x3d\\x02\\x01\\x06\\x08\\x2a\\x86\\x48\\xce\\x3d\\x03\\x01\\x07\\x03\\x42\\x00\\x04\\xa6\\x5f\\x11\\x3d\\x22\\xcb\\x49\\x13\\x90\\x83\\x07\\xac\\x31\\xee\\x2b\\xa0\\xe9\\x13\\x8b\\x78\\x5f\\xac\\x65\\x36\\xd1\\x4e\\xa2\\xce\\x90\\xd2\\xb4\\xbf\\xe1\\x94\\xb5\\x0c\\xdc\\x8e\\x16\\x9f\\x54\\xa7\\x3a\\x99\\x1e\\xf0\\xfa\\x76\\x32\\x98\\x25\\xbe\\x07\\x8c\\xc7\\x82\\x74\\x07\\x03\\xda\\x44\\xb4\\xd7\\xeb > tests/data/v3-only-with-stamp.apk.der

You just need to execute this command in the folder libs/apkverify to generate the corresponding .der file. After it, you can run the test again, and the test will pass.

Otherwise, you can also use the command apksigner verify --min-sdk-version 24 --print-certs-pem tests/data/v3-only-with-stamp.apk to get the public key in .pem format and then convert it to .der with openssl.

.apk_digest

.apk_digest files contain the expected apk_digest. They are generated the same way as .der when validating the apk_digest.