Do not accept vdex with dex sections from .dm files

Check that the input vdex does not contain dex files when it originates
from dex metadata files.

(cherry-pick from commit 046cecfed5a4df1e180e3491ba7b566bf50a2026)
(partial cherry-pick from commit
(partial cherry-pick from commit

Bug: 111442216
Bug: 178055795
Test: test-art-host

Merged-In: I5b104329af899ea62dc1779800264bad6b5424a4
Change-Id: I5b104329af899ea62dc1779800264bad6b5424a4
(cherry picked from commit eb21b021080547fbddb446935e5a23ec5db8f8e5)
10 files changed