title: Do I need android.permission.WRITE_SETTINGS to enable/disable Wifi?
body: <p>I have a (FOSS) app out there which can, among other features, enable and disable Wifi.
  AndroidManifest.xml contains <code>android.permission.CHANGE_WIFI_STATE</code>, unit tests on the emulator pass and the feature works on a real device, a HTC Desire running 2.2.2.</p>
  
  <p>The SDK versions are <code>android:minSdkVersion="7"</code> and <code>android:targetSdkVersion="10"</code>, so I can't say about newer releases of Android.</p>
  
  <p>I have received one single crash report:</p>
  
  <pre><code>java.lang.SecurityException: Permission Denial: writing com.android.providers.settings.SettingsProvider
  uri content://settings/secure from pid=6191, 
  uid=10114 requires android.permission.WRITE_SETTINGS
  </code></pre>
  
  <p>Is <code>android.permission.WRITE_SETTINGS</code> possibly required on recent versions of Android? The reference says the permission exists since API 1, so I'd be surprised why it wasn't on older releases.</p>
  
  <p>The user message is weird, it just says "lies", so I am unsure if I should just follow this report and add <code>android.permission.WRITE_SETTINGS</code>.</p>
  
  <p>Any thoughts?</p>
  
  <p>Cheers,
  Torsten</p>