apexd: make scanPackagesDirAndActivate return Status

This is a preparatory to implement rollback in case activation fails.

* activatePackage now fails if mounting a new version of a package
  failed (previously it just logged);
* scanPackagesDirAndActivate fails with a list of failed to activate
  packages;

Bug: 123622800
Test: apexservice_test, apex_e2e_tests
Change-Id: I6017916fdcf368588cb2f3bbe5e006e37d090543
2 files changed
tree: 0c105a672e08fb509ea0546fb4a4b4b24fefd99a
  1. apexd/
  2. apexer/
  3. proto/
  4. tests/
  5. OWNERS
  6. PREUPLOAD.cfg
  7. TEST_MAPPING