Drive API manifest manifest permissions

It's not a big problem. I have an Android app that stores user passwords in a SQLite database. Therefore, last week I launched an update that allows the user to export these passwords to their Google Drive. For this, I used the Google Android API for Android . I did not add special permission to the application manifest (AndroidManifest.xml), and it works fine (tested on KitKat4.4). But one of my friends told me that it may not work on Android 6.0+, because I always have to ask for permission. But I checked some samples, and none of them had these rights to manifest. Do you guys think you need to add permissions? Perhaps INTERNET or GET_ACCOUNTS?

+4
source share
2 answers

If you use the Google Android API for Android , you do not need permissions INTERNETor GET_ACCOUNTS.

The API automatically handles previously complex tasks such as offline access and file synchronization. This allows you to read and write files as if Drive was a local file system.

Check out the official Quickstart and demos sample on GitHub. None of them have special permissions in AndroidManifest.xml.

, Google REST API Android, INTERNET .

+4

Android, 4: , .

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.GET_ACCOUNTS" />

"android.permission.INTERNET" , , / .

"android.permission.GET_ACCOUNTS" , :

. Android 6.0 ( API 23), , , "GET_ACCOUNTS" . Android 5.1 "GET_ACCOUNTS" .

/ Android .

0

All Articles