title: Android 6 Marshmallow: requests for some specific permissions are instantly denied with no ui shown
body: <p>Using official AVD rev. 3</p>
  
  <p>Calling this: </p>
  
  <pre><code>ActivityCompat.requestPermissions(activity, new String[]{"android.permission.USE_CREDENTIALS"}, REQUEST_PERMISSION_CREDENTIALS);
  </code></pre>
  
  <p>Fires immediately:</p>
  
  <pre><code>onRequestPermissionsResult (int requestCode, String[] permissions, int[] grantResults)
  </code></pre>
  
  <p>And resulting code is <code>PackageManager.PERMISSION_DENIED</code></p>
  
  <p>Anyone has a fix?</p>
  
  <p>UPDATE:
  Known to be affected:</p>
  
  <pre><code>Manifest.permission.CHANGE_NETWORK_STATE
  Manifest.permission.WRITE_SETTINGS (solved, see Sam's answer)
  android.permission.USE_CREDENTIALS (solved, read Update 2)
  READ_SMS
  </code></pre>
  
  <p>UPDATE 2:
  See excellent accepted answer. Essentially, USE_CREDENTIALS is a safe permission now. Beats me why sdk not simply return PERMISSION_GRANTED for it...</p>