Incorrect output DEX file
The attached simple test class simply reads a DEX file and visits all classes/methods and writes
out a new DEX file. For some input DEX files, the resulting output DEX file would be incorrect and cause
dexdump to generate the error shown below.
E/dalvikvm(16494): Invalid annotations_directory_item
E/dalvikvm(16494): Trouble with item 186 @ offset 0xc14c0
E/dalvikvm(16494): Cross-item verify of section type 0006 failed
E/dalvikvm(16494): ERROR: Byte swap + verify failed
Will attach an input DEX file is also attached.