mirror of
https://github.com/nextcloud/android.git
synced 2024-11-23 13:45:35 +03:00
Merge pull request #1935 from nextcloud/maxSDK
Add max SDK to permissions
This commit is contained in:
commit
2a96607565
1 changed files with 25 additions and 12 deletions
|
@ -21,29 +21,42 @@
|
|||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="com.owncloud.android">
|
||||
|
||||
<!-- GET_ACCOUNTS is needed for API < 23.
|
||||
<!-- GET_ACCOUNTS is needed for API <= 22.
|
||||
For API >= 23 results in the addition of CONTACTS group to the list of permissions that may be
|
||||
dynamically disabled or enabled by the user after installation; but it is not important,
|
||||
since GET_ACCOUNTS is an special case, the permission is not really needed to access accounts
|
||||
owned by the app, our use case.
|
||||
See note in http://developer.android.com/intl/es/reference/android/Manifest.permission.html#GET_ACCOUNTS -->
|
||||
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
|
||||
<uses-permission
|
||||
android:maxSdkVersion="22"
|
||||
android:name="android.permission.GET_ACCOUNTS" />
|
||||
|
||||
<uses-permission android:name="android.permission.READ_CONTACTS" />
|
||||
<uses-permission android:name="android.permission.WRITE_CONTACTS" />
|
||||
<uses-permission
|
||||
android:maxSdkVersion="22"
|
||||
android:name="android.permission.READ_CONTACTS" />
|
||||
<uses-permission
|
||||
android:maxSdkVersion="22"
|
||||
android:name="android.permission.WRITE_CONTACTS" />
|
||||
|
||||
<!-- USE_CREDENTIALS, MANAGE_ACCOUNTS and AUTHENTICATE_ACCOUNTS are needed for API < 23.
|
||||
In API >= 23 the do not exist anymore -->
|
||||
<uses-permission android:name="android.permission.USE_CREDENTIALS" />
|
||||
<uses-permission android:name="android.permission.MANAGE_ACCOUNTS" />
|
||||
<uses-permission android:name="android.permission.AUTHENTICATE_ACCOUNTS" />
|
||||
<!-- USE_CREDENTIALS, MANAGE_ACCOUNTS and AUTHENTICATE_ACCOUNTS are needed for API <= 22.
|
||||
In API >= 23 they do not exist anymore -->
|
||||
<uses-permission
|
||||
android:maxSdkVersion="22"
|
||||
android:name="android.permission.USE_CREDENTIALS" />
|
||||
<uses-permission
|
||||
android:maxSdkVersion="22"
|
||||
android:name="android.permission.MANAGE_ACCOUNTS" />
|
||||
<uses-permission
|
||||
android:maxSdkVersion="22"
|
||||
android:name="android.permission.AUTHENTICATE_ACCOUNTS" />
|
||||
|
||||
<!-- WRITE_EXTERNAL_STORAGE may be enabled or disabled by the user after installation in
|
||||
API >= 23; the app needs to handle this -->
|
||||
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
|
||||
<uses-permission
|
||||
android:maxSdkVersion="22"
|
||||
android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
|
||||
|
||||
<!-- Next permissions are always approved in installation time,
|
||||
the apps needs to do nothing special in runtime -->
|
||||
<!-- Next permissions are always approved in installation time, the apps needs to do nothing special in runtime -->
|
||||
<uses-permission android:name="android.permission.INTERNET" />
|
||||
<uses-permission android:name="android.permission.READ_SYNC_STATS" />
|
||||
<uses-permission android:name="android.permission.READ_SYNC_SETTINGS" />
|
||||
|
|
Loading…
Reference in a new issue