title: Unable to grant SET_ANIMATION_SCALE permission programmatically
body: <p>I need to grant my device permission to change automation settings of the device it is running on (for testing purpose). </p>
  
  <p>I have added to manifest:</p>
  
  <pre><code>&lt;uses-permission android:name="android.permission.SET_ANIMATION_SCALE"/&gt;
  </code></pre>
  
  <p>And in my Activity on resume:</p>
  
  <pre><code>String[] permissions = new String[1];
  permissions[0] = Manifest.permission.SET_ANIMATION_SCALE;
  ActivityCompat.requestPermissions(getCurrentActivity(), permissions, 0);
  Log.d("ISGRANTED", " " + (ContextCompat.checkSelfPermission(getCurrentActivity(), permissions[0]) == PackageManager.PERMISSION_GRANTED));
  </code></pre>
  
  <p>And nothing happens. I test on Android Api 23+ and I don't get any dialog to get the permission. Log returns:</p>
  
  <blockquote>
    <p>06-30 15:03:32.757 17771-17799/my.app.package D/ISGRANTED:  false</p>
  </blockquote>
  
  <p>But if I replace <code>permisions[0]</code> with <code>Manifest.permission.GET_ACCOUNTS</code> (which is also in my manifest above SET_ANIMATION_SCALE permission) then it works. Dialog appears and log returns true.</p>
  
  <p>What's the problem?</p>