apexd: cleanup backup folder on markStagedSessionSuccessful

Also changed how backup is prepared in tests to make it more aligned
with how it will look in real life: before files in backup had a wrong
selinux label (shell_data_file), while now they have a correct one -
staging_data_file.

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