apexd: split verifyPackages into boot and install versions.

* Boot version runs as part of stagePackages call, i.e. during boot
  sequence. It only contains fast to execute verification checks.
* Install version runs as part of submitStagedSession and consists of
  light checks + temp mounting of an apex & reading entire dm-verity device.

As part of this, I moved a bunch of tests that were triggering checks
inside temp mounting code, to use submitStagedSession instead of
stagePackages.

Test: apexservice_test
Bug: 130013353
Change-Id: Ic2a5dfdf8dfa01a30d0e6fe75f1e906adb3323c7
Merged-In: Ic2a5dfdf8dfa01a30d0e6fe75f1e906adb3323c7
(cherry picked from commit cd23b6499e5c3b9c63e89d6e60af93dcf85ef15c)
2 files changed
tree: 089287d2de8e8f19304749ad261e6507427a129a
  1. apexd/
  2. apexer/
  3. proto/
  4. shim/
  5. tests/
  6. CleanSpec.mk
  7. OWNERS
  8. PREUPLOAD.cfg