android: crazy_linker: Simplify device API level detection
It is possible to detect the device's API level from native code directly, so do it instead of relying on the client passing the coresponding value through a special global variable that must be set before anything else is called in the linker library. This simplifies the crazy linker API, its implementation and linker_jni.cc all at the same time. BUG=NONE R=agrieve@chromium.org, pasko@chromium.org, cjgrant@chromium.org Change-Id: I08a6afd82ef0e329957728f6004050bcc04fad18 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1502972 Commit-Queue: David Turner <digit@chromium.org> Reviewed-by:David Turner <digit@chromium.org> Reviewed-by:
Andrew Grieve <agrieve@chromium.org> Reviewed-by:
Egor Pasko <pasko@chromium.org> Cr-Commit-Position: refs/heads/master@{#638163}
Showing
Please register or sign in to comment