android13/frameworks/base/tests/ApkVerityTest/testdata
liiir1985 7f62dcda9f initial 2024-06-22 20:45:49 +08:00
..
Android.bp initial 2024-06-22 20:45:49 +08:00
ApkVerityTestApp.dm initial 2024-06-22 20:45:49 +08:00
ApkVerityTestAppSplit.dm initial 2024-06-22 20:45:49 +08:00
ApkVerityTestCert.der initial 2024-06-22 20:45:49 +08:00
ApkVerityTestCert.pem initial 2024-06-22 20:45:49 +08:00
ApkVerityTestKey.pem initial 2024-06-22 20:45:49 +08:00
README.md initial 2024-06-22 20:45:49 +08:00

README.md

This test only runs on rooted / debuggable device.

The test tries to install subsets of base.{apk,dm}, split.{apk,dm} and their corresponding .fsv_sig files (generated by build rule). If installed, the tests also tries to tamper with the file at absolute disk offset to verify if fs-verity is effective.

How to generate dex metadata (.dm)

adb shell profman --generate-test-profile=/data/local/tmp/primary.prof adb pull /data/local/tmp/primary.prof zip foo.dm primary.prof