tree: 4dbb385289fe2321ad32924a709f90ccd4f343be [path history] [tgz]
  1. Android.bp
  2. ApkVerityTestApp.dm
  3. ApkVerityTestAppSplit.dm
  4. ApkVerityTestCert.der
  5. ApkVerityTestCert.pem
  6. ApkVerityTestKey.pem
  7. README.md
tests/ApkVerityTest/testdata/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