Verify images before accessing temp mounts for derive_classpath

Apexd invokes derive_classpath for staged APEXes to determine whether
they contribute to classpath. It needs to "verify" temp mounts before
reading them. Previously, it skipped "verify", instead set
"restart_on_corruption" for dm-verity devices.

Bug: 369023495
Test: atest ApexTestCases
Change-Id: If9c2e8cf2c9f9d2a794c563ffb927c6417f294a7
1 file changed