android_packages_modules_Vi.../apkdmverity/testdata
Jiyong Park b6395fff02 Fix the directory of apkdmverity and add TEST_MAPPING
It was in the wrong directory: apkdmverity/apkverity. Changed it to
directly under apkdmverity.

Bug: N/A
Test: monitor TH
Change-Id: I47599ba5f2b4fb237c21a5ddc63fb3ce0bcf7349
2021-06-11 13:59:07 +09:00
..
README Fix the directory of apkdmverity and add TEST_MAPPING 2021-06-11 13:59:07 +09:00
keystore Fix the directory of apkdmverity and add TEST_MAPPING 2021-06-11 13:59:07 +09:00
test.apk Fix the directory of apkdmverity and add TEST_MAPPING 2021-06-11 13:59:07 +09:00
test.apk.idsig Fix the directory of apkdmverity and add TEST_MAPPING 2021-06-11 13:59:07 +09:00

README

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