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
33787687f52798fd5b584edb4c88717d134c367a)
(partial cherry-pick from commit
858cfd81c4fddbc950f9be2e3599b15aabaa501a)

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

Merged-In: I5b104329af899ea62dc1779800264bad6b5424a4
Change-Id: I5b104329af899ea62dc1779800264bad6b5424a4
10 files changed