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
2 files changed
tree: c2b8ee77cb1e4f7b6e423af205b4aa4bfe01a4b1
  1. apexd/
  2. apexer/
  3. proto/
  4. shim/
  5. tests/
  6. CleanSpec.mk
  7. OWNERS
  8. PREUPLOAD.cfg