Add multi-dex support to hiddenapi

Update hiddenapi so that it is able to update several DexFiles,
within a single physical file.

All the dex files will be copied first, and then hiddenapi data
is appended to the end of the file.

Bug: 266950186
Test: The output for single-dex is exactly identical (full AOSP build).
Change-Id: I51643fe0097d98c862e25adbc65c9024cad9a131
1 file changed