unplugged-system/packages/modules/Virtualization/apkdmverity/testdata
2025-10-06 13:59:42 +00:00
..
keystore Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
README Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
test.apk Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
test.apk.idsig Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00

The test data is generated as follows:

$ keytool -keystore keystore -genkey -alias mykey
The password for the keystore and the key is 123456.

The signer information is set as follows:

CN=Android, OU=Android, O=Android, L=Mountain View, ST=CA, C=US

Build a random apk (Bluetooth.apk is chosen arbitrary)

$ m Bluetooth
$ cp $ANDROID_PRODUCT_OUT/system/app/Bluetooth.apk ./test.apk

Sign it using the apksigner.

$ m apksigner
$ apksigner sign --ks keystore ./test.apk

Check that the idsig file is created.

$ ls -l test.apk*
-rw-r----- 1 jiyong primarygroup 3888734 Jun  4 01:08 test.apk
-rw-r----- 1 jiyong primarygroup   39115 Jun  4 01:08 test.apk.idsig