Do not change hidden API ArtMethod/ArtField access flags on AOT

Hidden API may change the access flags of ArtMethod/ArtField in order
to dedupe warnings in logcat. Avoid doing that during AOT compilation
as the updated access flags would survive until runtime in the
boot/app image. This is not a problem for correctness, but better
matches expectations of what the access flags should be and whether we
should warn at runtime.

Test: compiles
Bug: 129063331
Change-Id: I44e235d73914bd42eacf3df69f9ed5285c1e864a
1 file changed