vdex: add checks in the event of file corruption.

It's unclear yet why the vdex files are being corrupted. But system
server, which is reading these vdex files should be robust to any vdex
corruption.

Bug: 199309980
Bug: 199395272
Test: test.py
(cherry picked from commit a74a7071490e47e1b5590cc19726f1620fd0ee43)
(cherry picked from commit a35586522fd398fb2845a9ae8427aa4853f155be)

Merged-In: Ia85ab8b23a0be4069cfa058a86fdf561f1ceb432
Change-Id: I558238fd7cc0d7bc2f89f989ad53db8eb7a2eb24
4 files changed