Fix compact dex shared section with update_input_vdex

For update input vdex, the shared data section is empty in the oat
writer. This was causing an error by not correctly updating the
vdex_size_ to be after the shared data section. Since the offset
was not update to be after the section, vdex and quickening data
would overwrite the shared data and it would get truncated.

Usually this would manifest as a crash in dequickening or reading the
dex file map list. This CL fixes the oat writer to verify and skip
the shared data section when update_input_vdex is true.

Test coverage is provided by re-enabling compact dex for the cases
where update_input_vdex is false.

Bug: 72608794
Bug: 63756964
Test: test-art-host

Change-Id: Ic1f64804231386fabf5847bd8be8783841d29eaa
2 files changed