docs: Removed note that GET_ACCOUNTS was deprecated
am: cc80393d94
* commit 'cc80393d94e53bc92f70e2d306ad87a92ff83794':
docs: Removed note that GET_ACCOUNTS was deprecated
Change-Id: Icc2579926a473f72236837fb94a68fbf16494478
This commit is contained in:
@@ -19,9 +19,6 @@ page.image=images/cards/card-n-changes_2x.png
|
|||||||
</ol>
|
</ol>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#perm">Permissions Changes</a>
|
<li><a href="#perm">Permissions Changes</a>
|
||||||
<ol>
|
|
||||||
<li><a href="#permfilesys">File System Permission Changes</a></li>
|
|
||||||
</ol>
|
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#accessibility">Accessibility Improvements</a>
|
<li><a href="#accessibility">Accessibility Improvements</a>
|
||||||
<ol>
|
<ol>
|
||||||
@@ -188,29 +185,16 @@ page.image=images/cards/card-n-changes_2x.png
|
|||||||
<h2 id="perm">Permissions Changes</h2>
|
<h2 id="perm">Permissions Changes</h2>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
Android N includes changes to permissions that may affect your app,
|
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:
|
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<ul>
|
|
||||||
<li>{@code GET_ACCOUNTS} (Deprecated)
|
|
||||||
<p>
|
|
||||||
The GET_ACCOUNTS permission is now deprecated. The system ignores this
|
|
||||||
permission for apps that target Android N.
|
|
||||||
</p>
|
|
||||||
</li>
|
|
||||||
|
|
||||||
</ul>
|
|
||||||
|
|
||||||
<h3 id="permfilesys">File system permission changes</h3>
|
<h3 id="permfilesys">File system permission changes</h3>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
In order to improve the security of private files, the private directory of
|
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
|
apps targeting Android N or higher has restricted access (<code>0700</code>).
|
||||||
leakage of metadata of private files, such as their size or existence. This
|
This change prevents leakage of metadata of private files, such as their size
|
||||||
has multiple side effects:
|
or existence. This change has multiple side effects:
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
@@ -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
|
Legacy applications that set the download location to a public location by
|
||||||
using
|
using
|
||||||
{@link
|
{@link
|
||||||
android.app.DownloadManager.Request#setDestinationInExternalFilesDir} or
|
android.app.DownloadManager.Request#setDestinationInExternalFilesDir
|
||||||
|
DownloadManager.Request.setDestinationInExternalFilesDir()} or
|
||||||
{@link
|
{@link
|
||||||
android.app.DownloadManager.Request#setDestinationInExternalPublicDir}
|
android.app.DownloadManager.Request#setDestinationInExternalPublicDir
|
||||||
|
DownloadManager.Request.setDestinationInExternalPublicDir()}
|
||||||
can still access the path in
|
can still access the path in
|
||||||
{@link android.app.DownloadManager#COLUMN_LOCAL_FILENAME}, however, this
|
{@link android.app.DownloadManager#COLUMN_LOCAL_FILENAME}, however, this
|
||||||
method is strongly discouraged. The preferred way of accessing a file
|
method is strongly discouraged. The preferred way of accessing a file
|
||||||
exposed by the {@link android.app.DownloadManager} is using
|
exposed by the {@link android.app.DownloadManager} is using
|
||||||
{@link android.content.ContentResolver#openFileDescriptor}.
|
{@link android.content.ContentResolver#openFileDescriptor
|
||||||
|
ContentResolver.openFileDescriptor()}.
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user