3

While trying new permissions API, notably:

ActivityCompat.checkSelfPermission ActivityCompat.shouldShowRequestPermissionRationale ActivityCompat.requestPermissions

for permission:

android.permission.USE_CREDENTIALS

(whichn is not listed as "normal" permission)

I've received an "unknown permissionn exception".

Is it a bug? Or is USE_CREDENTIALS a normal permission after all?

ssuukk
  • 8,200
  • 7
  • 35
  • 47

1 Answers1

3

Neither. USE_CREDENTIALS was removed from the Android SDK in Android 6.0. Not only will you not find it in Manifest.permission in the docs, but if you try hunting for it on an Android 6.0 device (by enumerating all permissions via PackageManager), it does not seem to show up.

CommonsWare
  • 986,068
  • 189
  • 2,389
  • 2,491