Remove corrupt apexes in /data on boot complete

Previously, .json only apexes were treated as valid but those from /data
were cleaned up on boot completion. However corrupt apexes
(which fail to ApexFile::Open) are not cleaned up.

As we drop JSON support, .json only apexes are treated as corrupt. And
these need to be cleaned up as well.

Bug: 143973464
Test: apexd_host_tests
Change-Id: I252bfaf68cf93b02bb3b8fca02bc92b6b2e77c4a
5 files changed