title: Is android.permission.WRITE_SETTINGS only granted to system apps?
body: <p>We are currently developing an app where we'd like to change some system settings, with user permission of course. The android documentation says that to do this, you have to add the following permission:</p>
  <pre><code>&lt;uses-permission android:name=&quot;android.permission.WRITE_SETTINGS&quot; /&gt;
  </code></pre>
  <p>Also, one has to explicitly ask the user to enable this permission. An excerpt from <a href="https://developer.android.com/reference/android/Manifest.permission#WRITE_SETTINGS" rel="noreferrer">https://developer.android.com/reference/android/Manifest.permission#WRITE_SETTINGS</a> says:</p>
  <blockquote>
  <p><strong>Note:</strong> If the app targets API level 23 or higher, the app user must
  explicitly grant this permission to the app through a permission
  management screen. The app requests the user's approval by sending an
  intent with action <code>Settings.ACTION_MANAGE_WRITE_SETTINGS</code>. The app can
  check whether it has this authorization by calling
  <code>Settings.System.canWrite()</code>.</p>
  </blockquote>
  <p>Up until this point, it is quite clear. However, when the permission is added to the <em>AndroidManifest.xml</em> file, Android Studio complains that &quot;<em>Permission is only granted to system apps</em>&quot;. Now, this is confusing since I haven't found any documentation stating that it is indeed only granted to system apps. <br><br>
  So, I'd like to ask if someone has encountered this issue, and if there is some kind of documentation that explains this in detail? Or am I simply missing something?</p>