android13/frameworks/base/tests/ApkVerityTest/testdata/README.md

14 lines
516 B
Markdown

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