40834

USE_CREDENTIALS not available in new Android M API

Question:

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?

Answer1:

Neither. USE_CREDENTIALS was removed from the Android SDK in Android 6.0. Not only will you not find it <a href="http://developer.android.com/reference/android/Manifest.permission.html" rel="nofollow">in Manifest.permission in the docs</a>, 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.

Recommend

  • Avoiding asking for permission in application
  • ARC on older versions of iOS and OS X
  • Distinguish a simply connected figures?
  • How to get parameters from URL in Liferay portlet?
  • Execute Ruby method on whole page in Middleman
  • What is the difference between system calls and instruction set
  • MATLAB: LSQNONLIN changes in R2011a?
  • understanding execution of setTimeout() functions that follow one another
  • PowerShell module for handling Visual Studio Object Model from within NuGet Install.ps1/Uninstall.ps
  • how to find function boundaries in binary code
  • longest common subsequence: why is this wrong?
  • phpmailer - How to verify a sent email arrived at its destination
  • Java: java.util.ConcurrentModificationException
  • Boost binary serialization doesn't work occasionally. The parsed data is corrupted sometimes
  • Can I update/select from a table in one query?
  • Appium MobileElement swipe returns unknown server error
  • php is_file always return false
  • Tools for understanding HTML layout
  • Building Qt project for C++11 standard
  • Retrieve IP address of device
  • How to make R's read_csv2() recognise the text characters properly
  • Pass Dictionary to Javascript array
  • Memory error in python- how to use more memory
  • cygwin cannot exec 'git-add--interactive' permission denied
  • Jenkins: FATAL: Could not initialize class hudson.util.ProcessTree$UnixReflection
  • Button text different than value submitted in query string
  • Odoo 10 - Overriding unlink method
  • How to handle images sent by a mobile device?
  • How to set ini file attributes during an Inno install
  • Disable Enter in editText android
  • Cannot resolve symbol 'MyApi'
  • Recording logins for password protected directories
  • If I include Java 8 in my Android app does that affect which devices it will work on?
  • Pass value from viewmodel to script in zk
  • Updating server-side rendering client-side
  • Release, debug version and Authorization Google?
  • php design question - will a Helper help here?
  • Unit Testing MVC Web Application in Visual Studio and Problem with QTAgent
  • Proper way to use connect-multiparty with express.js?
  • Benchmarking RAM performance - UWP and C#