Added more checking upon resolution and bytecode rewriting to verifier.

Access checks are performed when methods and fields are resolved. Also,
erroring bytecodes are now overwritten in the memory mapped dex file.
To do this, the code sets the memory mapped dex file as writable before
verification and set it back to read only after verification is done.
The overwritting occurs only in memory and the original dex file remains
unchanged.

Change-Id: I054394fb57e83d1ac5b6f200ab993d70cd9f55e6
7 files changed
tree: 8723f6b46da9161ef5a22cc42a7ec0bf2bce47b8
  1. Android.mk
  2. build/
  3. src/
  4. test/
  5. tools/