apexd: Unmounts dangling mounts
On boot competes (apexes are all activated), unmounts non-active packages.
If those old APEXes are in /data/apex/active, they are removed.
Bug: 129524627
Test: atest apexservice_test
Test: manual
1. put new apex in /system/apex and old apex in /data/apex/active
2. reboot and see logs (check if unmount/delete)
3. see if old apex is moved from /data/apex/active
Change-Id: I449cc906730d8eb707766abeeef198726af6123b
Merged-In: I449cc906730d8eb707766abeeef198726af6123b
5 files changed