I am trying to check if user permissions are granted / revoked in Android Marshmallow. Unfortunately, ContextCompat.checkSelfPermission() (which is warpper around Context.checkCallingOrSelfPermission ), as always, returns PackageManager.PERMISSION_GRANTED (0) if you included this specific permission in the manifest, regardless of the current permission state (for example, if the user revoked the permission ) I also tried someContext.checkCallingOrSelfPermission() , but the result is the same.
Has anyone experienced this? I am using Android Marshmallow on the nVidia Shield console (using the nVidia beta).
android android-6.0-marshmallow permissions
Metallica
source share