Only warn if a pre-P app overrides inlined methods at runtime

CL Ibe9792f952d0c963b8560f10d57a951e227b24aa increased strictness of
a check that an inlined method did not cross a dex file boundary. For
app compat reasons, turn this into a warning if the app targets SDK
version < 28 (P). The warning makes it clear that the runtime is in an
unsafe state, but this was the case before P too. Developers will have
time to fix the issue until they start targetting P.

Bug: 74410240
Bug: 110985613
Test: m test-art-host-gtest
Test: testrunner.py --host --optimizing --jit
Test: Pixel 2 XL boots.
Test: testrunner.py --target --optimizing --jit
Change-Id: Id1e159449a3766335de0913b94cdb240c1484a33
1 file changed