From ad3b4d9bc7e6f47b9f6d948e979b8b22590e2629 Mon Sep 17 00:00:00 2001 From: Quddus Chong Date: Wed, 30 Sep 2015 12:03:52 -0700 Subject: [PATCH] docs: Added behavior change section to indicate removal of global bookmark support in Android 6.0 (M). bug: 23799935 Change-Id: Icbfca85de04f0b2b7d648c0c54a3e2d7ab74300f --- .../versions/marshmallow/android-6.0-changes.jd | 13 +++++++++++-- docs/html/tools/debugging/annotations.jd | 12 +++++------- 2 files changed, 16 insertions(+), 9 deletions(-) diff --git a/docs/html/about/versions/marshmallow/android-6.0-changes.jd b/docs/html/about/versions/marshmallow/android-6.0-changes.jd index 6f44a8c821cc8..8c5a1b6b7c23a 100644 --- a/docs/html/about/versions/marshmallow/android-6.0-changes.jd +++ b/docs/html/about/versions/marshmallow/android-6.0-changes.jd @@ -18,7 +18,8 @@ page.image=images/cards/samples-new_2x.png
  • Access to Hardware Identifiers
  • Notifications
  • AudioManager Changes
  • -
  • Text Selection
  • +
  • Text Selection
  • +
  • Browser Bookmark Changes
  • Android Keystore Changes
  • Wi-Fi and Networking Changes
  • Camera Service Changes
  • @@ -157,7 +158,7 @@ adjustStreamVolume()} method and pass in the direction value {@link android.media.AudioManager#ADJUST_UNMUTE}.

    -

    Text Selection

    +

    Text Selection

    @@ -202,6 +203,14 @@ the framework. In devices running Android 6.0 (API level 23), that allows the fr Android 5.1 (API level 22) or lower, only the {@link android.support.v7.app.ActionBar} modes are supported.

    +

    Browser Bookmark Changes

    +

    This release removes support for global bookmarks. The +{@code android.provider.Browser.getAllBookmarks()} and {@code android.provider.Browser.saveBookmark()} +methods are now removed. Likewise, the {@code READ_HISTORY_BOOKMARKS} and {@code WRITE_HISTORY_BOOKMARKS} +permissions are removed. If your app targets Android 6.0 (API level 23) or higher, don't access +bookmarks from the global provider or use the bookmark permissions. Instead, your app should store +bookmarks data internally.

    +

    Android Keystore Changes

    With this release, the Android Keystore provider no longer supports diff --git a/docs/html/tools/debugging/annotations.jd b/docs/html/tools/debugging/annotations.jd index b0d5a228ac701..fbdb9e4bbfd52 100644 --- a/docs/html/tools/debugging/annotations.jd +++ b/docs/html/tools/debugging/annotations.jd @@ -266,19 +266,17 @@ permissions, use the allOf attribute. The following example annotat public abstract void setWallpaper(Bitmap bitmap) throws IOException; -

    This example requires the caller of the -updateVisitedHistory method to have both read and write bookmark history permissions.

    - +

    This example requires the caller of the {@code copyFile()} method to have both read and write +permissions to external storage:

     @RequiresPermission(allOf = {
    -    Manifest.permission.READ_HISTORY_BOOKMARKS,
    -    Manifest.permission.WRITE_HISTORY_BOOKMARKS})
    -public static final void updateVisitedHistory(ContentResolver cr, String url, boolean real) {
    +    Manifest.permission.READ_EXTERNAL_STORAGE,
    +    Manifest.permission.WRITE_EXTERNAL_STORAGE})
    +public static final void copyFile(String dest, String source) {
         ...
     }
     
    -

    Adding CheckResults Annotations

    Use the @CheckResults annotation to validate that a method's result or return value is actually used. The following example annotates