11

When i compile my app for release, a new permission called USE_CREDENTIALS is being added to my manifest.

<uses-permission android:name="android.permission.USE_CREDENTIALS"/>

Why? What is this permission? i can't find any official info about it on android developers guide!

Thanks

NullPointerException
  • 36,107
  • 79
  • 222
  • 382

1 Answers1

26

Why?

You are probably getting it via some library that you are using.

What is this permission?

It is used, prior to Android 6.0, for using things like AccountManager.

i can't find any official info about it on android developers guide!

That is because Google got rid of this permission in Android 6.0, and the documentation at http://developer.android.com does a really poor job of dealing with removed API elements.

CommonsWare
  • 986,068
  • 189
  • 2,389
  • 2,491
  • can i remove that permission from my app with a safe result? – NullPointerException Aug 23 '15 at 20:39
  • @AndroidUser99: I have no way to know. If you read the blog post that I linked to in the first paragraph of my answer, I outline your options for trying to get rid of it. But only the author of the library that is asking for the permission can tell you what you can and cannot do if you do not have that permission. – CommonsWare Aug 23 '15 at 20:41
  • 1
    I got rid of USE_CREDENTIALS and my app crashed on a galaxy s5, even though I still had GET_ACCOUNTS and I'm compiling with target=23.. I suggest keeping these old permissions in your manifest. – Matt Wolfe Nov 13 '15 at 01:58