Make compiling an apex image explicit.

And when compiling an apex image, discard dex files not present
in an apex.

Test: m
Bug: 119800099
Change-Id: Ie91c5b8d271783f04e4c1501f315a3ec59137475
4 files changed