Only apply sessions that are marked as staged.

And update their state depending on the outcome of the stage.

Bug: 118865310
Test: adb install test.apex; reboot, session applied;
      reboot again, session ignored
      apex_e2e_tests passed.

Change-Id: Ied2aef793a920c3bad4fe066e94635bffe39ee60
3 files changed
tree: f1f6ce8e28a778c6aa13dea1962eccb1f348a431
  1. apexd/
  2. apexer/
  3. proto/
  4. tests/
  5. OWNERS
  6. PREUPLOAD.cfg