diff options
author | Elliott Hughes <enh@google.com> | 2017-01-13 11:07:00 -0800 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2017-01-13 11:07:00 -0800 |
commit | 9e3d527bd224429095d616cd830f61ccff8f36b5 (patch) | |
tree | 9451789eceae2d23bc718ccf0fb4f2d6b0bce0fc /android-changes-for-ndk-developers.md | |
parent | a970ac50d1cfeed0a01f4b1b6e300dd7fbefa4c4 (diff) |
Describe our dynamic linker compatibility policy.
Bug: N/A
Test: N/A
Change-Id: I6f472d1ab22636de74fd103e9a480fb1ab51e314
Diffstat (limited to 'android-changes-for-ndk-developers.md')
-rw-r--r-- | android-changes-for-ndk-developers.md | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/android-changes-for-ndk-developers.md b/android-changes-for-ndk-developers.md index ec4887098..ebdae838a 100644 --- a/android-changes-for-ndk-developers.md +++ b/android-changes-for-ndk-developers.md @@ -11,6 +11,26 @@ you need to have the “binutils” package installed for readelf, and “pax-utils” for scanelf. +## How we manage incompatible changes + +Our general practice with dynamic linker behavior changes is that they +will be tied to an app's target API level: + +* Below the affected API level we'll preserve the old behavior or issue +a warning, as appropriate. + +* At the affected API level and above, we’ll refuse to load the library. + +* Warnings about any behavior change that will affect a library if you +increase your target API level will appear in logcat when that library +is loaded, even if you're not yet targeting that API level. + +* On a developer preview build, dynamic linker warnings will also show up +as toasts. Experience has shown that many developers don’t habitually +check logcat for warnings until their app stops functioning, so the +toasts help bring some visibility to the issues before it's too late. + + ## Changes to library search order We have made various fixes to library search order when resolving symbols. |