frameworks/base/tests/ApkVerityTest/testdata
cpeng 69f93dc236 android 13 from xiaosuan 2025-08-25 08:17:13 +08:00
..
Android.bp android 13 from xiaosuan 2025-08-25 08:17:13 +08:00
ApkVerityTestApp.dm android 13 from xiaosuan 2025-08-25 08:17:13 +08:00
ApkVerityTestAppSplit.dm android 13 from xiaosuan 2025-08-25 08:17:13 +08:00
ApkVerityTestCert.der android 13 from xiaosuan 2025-08-25 08:17:13 +08:00
ApkVerityTestCert.pem android 13 from xiaosuan 2025-08-25 08:17:13 +08:00
ApkVerityTestKey.pem android 13 from xiaosuan 2025-08-25 08:17:13 +08:00
README.md android 13 from xiaosuan 2025-08-25 08:17:13 +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