From cc80393d94e53bc92f70e2d306ad87a92ff83794 Mon Sep 17 00:00:00 2001 From: Andrew Solovay Date: Mon, 16 May 2016 12:22:37 -0700 Subject: [PATCH] docs: Removed note that GET_ACCOUNTS was deprecated We've decided not to deprecate GET_ACCOUNTS yet, but per emails, we don't want to announce that it now *isn't* deprecated (because we don't want to encourage people to use this permission); instead, we're just going to not mention it at all. Also cleaned up the following section on file permissions while I had it open. See first comment for doc stage location. bug: 28727522 Change-Id: I27d21d186bdbf9ce905f3fb6a29027343a6daaf5 --- docs/html/preview/behavior-changes.jd | 33 ++++++++------------------- 1 file changed, 10 insertions(+), 23 deletions(-) diff --git a/docs/html/preview/behavior-changes.jd b/docs/html/preview/behavior-changes.jd index 7c8bfe8ba29e0..8b359394de1cd 100644 --- a/docs/html/preview/behavior-changes.jd +++ b/docs/html/preview/behavior-changes.jd @@ -19,9 +19,6 @@ page.image=images/cards/card-n-changes_2x.png
  • Permissions Changes -
      -
    1. File System Permission Changes
    2. -
  • Accessibility Improvements
      @@ -188,29 +185,16 @@ page.image=images/cards/card-n-changes_2x.png

      Permissions Changes

      - Android N includes changes to permissions that may affect your app, - including user accounts permissions and a new permission for writing to - external storage. Here is a summary of the permissions that have changed in - the preview: + Android N includes changes to permissions that may affect your app.

      -
        -
      • {@code GET_ACCOUNTS} (Deprecated) -

        - The GET_ACCOUNTS permission is now deprecated. The system ignores this - permission for apps that target Android N. -

        -
      • - -
      -

      File system permission changes

      In order to improve the security of private files, the private directory of - apps targeting Android N or higher has restricted access (0700). This prevents - leakage of metadata of private files, such as their size or existence. This - has multiple side effects: + apps targeting Android N or higher has restricted access (0700). + This change prevents leakage of metadata of private files, such as their size + or existence. This change has multiple side effects:

        @@ -246,14 +230,17 @@ page.image=images/cards/card-n-changes_2x.png Legacy applications that set the download location to a public location by using {@link - android.app.DownloadManager.Request#setDestinationInExternalFilesDir} or + android.app.DownloadManager.Request#setDestinationInExternalFilesDir + DownloadManager.Request.setDestinationInExternalFilesDir()} or {@link - android.app.DownloadManager.Request#setDestinationInExternalPublicDir} + android.app.DownloadManager.Request#setDestinationInExternalPublicDir + DownloadManager.Request.setDestinationInExternalPublicDir()} can still access the path in {@link android.app.DownloadManager#COLUMN_LOCAL_FILENAME}, however, this method is strongly discouraged. The preferred way of accessing a file exposed by the {@link android.app.DownloadManager} is using - {@link android.content.ContentResolver#openFileDescriptor}. + {@link android.content.ContentResolver#openFileDescriptor + ContentResolver.openFileDescriptor()}.