diff --git a/docs/html/preview/behavior-changes.jd b/docs/html/preview/behavior-changes.jd index 245fa883b05c7..ee17c4524c3ea 100644 --- a/docs/html/preview/behavior-changes.jd +++ b/docs/html/preview/behavior-changes.jd @@ -31,6 +31,8 @@ page.image=images/cards/card-n-changes_2x.png
  • NDK Apps Linking to Platform Libraries
  • Android for Work
  • +
  • Annotations Retention
  • +
  • Other Important Points
  • See Also

    @@ -184,7 +186,6 @@ page.image=images/cards/card-n-changes_2x.png Optimizations.

    -

    Permissions Changes

    @@ -467,7 +468,7 @@ JavaVM::AttachCurrentThread from <jni.h>.

  • Reset password restrictions for device admins now apply to profile owners. Device admins can no longer use - DevicePolicyManager.resetPassword() to clear passwords or change + {@code DevicePolicyManager.resetPassword()} to clear passwords or change ones that are already set. Device admins can still set a password, but only when the device has no password, PIN, or pattern.
  • @@ -497,7 +498,26 @@ JavaVM::AttachCurrentThread from <jni.h>. Android for Work Updates.

    -

    Other important points

    +

    Annotations Retention

    + +

    +Android N fixes a bug where the visibility of annotations was being ignored. +This issue enabled the runtime to access annotations that it should not have been +able to. These annotations included: +

    + + + +

    +If your app has relied on this behavior, please add a retention policy to annotations that must +be available at runtime. You do so by using {@code @Retention(RetentionPolicy.RUNTIME)}. +

    + +

    Other Important Points