ART: Change GetOptimizationStatus

Do not attempt to load the oat file executable, as this may not be
permissible. Instead load it non-executable, and do a status check
to predict how a non-encumbered runtime might react to the file.

(cherry picked from commit bd3e1cecf449ba9525e78493f3ced838e0f95d5e)

Bug: 74403474
Test: m test-art-host
Test: Check logcat for denials
Merged-In: I8528005564246712d2c540c5ae89b14f37ca9480
Change-Id: I8528005564246712d2c540c5ae89b14f37ca9480
1 file changed