David Friedman | bf31c62 | 2016-03-03 13:55:00 -0800 | [diff] [blame] | 1 | page.title=Permissions |
Andrew Solovay | c203135 | 2016-02-24 15:09:51 -0800 | [diff] [blame] | 2 | page.metaDescription=Updates to permissions in the N Developer Preview. |
| 3 | page.keywords="android N", "permissions" |
| 4 | |
| 5 | @jd:body |
| 6 | |
| 7 | <!-- Commenting TOC out until/unless page gets longer |
| 8 | <div id="qv-wrapper"> |
| 9 | <div id="qv"> |
| 10 | <h2>In this document</h2> |
| 11 | <ol> |
| 12 | <li><a href="#GET_ACCOUNTS">GET_ACCOUNTS deprecated</a></li> |
| 13 | <li><a href="#storage">New storage option: |
| 14 | ACTION_OPEN_EXTERNAL_DIRECTORY</a></li> |
| 15 | </ol> |
| 16 | </div> |
| 17 | </div> |
| 18 | --> |
| 19 | |
| 20 | <p> |
| 21 | The N Developer Preview includes the following changes to permissions. |
| 22 | </p> |
| 23 | |
| 24 | <h2 id="GET_ACCOUNTS">GET_ACCOUNTS deprecated</h2> |
| 25 | <p> |
| 26 | The <code>GET_ACCOUNTS</code> permission is now deprecated. The system ignores |
| 27 | this permission for apps that target the N Developer Preview. |
| 28 | </p> |
| 29 | |
| 30 | <h2 id="storage">New storage option: ACTION_OPEN_EXTERNAL_DIRECTORY</h2> |
| 31 | |
| 32 | <p> |
| 33 | Apps can now use the intent <code>ACTION_OPEN_EXTERNAL_DIRECTORY</code> to |
| 34 | request that the system create a directory for the app's use. The system |
| 35 | prompts the user to grant approval. If the user approves, the app can read |
| 36 | and write files and directories in that one directory (and its descendants). |
| 37 | The app does not need {@link android.Manifest.permission_group#STORAGE |
| 38 | STORAGE} permissions to access this external directory. |
| 39 | </p> |
| 40 | |
| 41 | <p> |
| 42 | For more information about this intent, see the <code>Intent</code> |
| 43 | documentation in the <!--TODO: Add link to preview download page-->N Preview |
| 44 | SDK Reference. |
| 45 | </p> |