title: How can I get the dreaded WRITE_SECURE_SETTINGS permission for my android app?
body: <p>I need to be able to toggle the GPS receiver on and off, and WRITE_SECURE_SETTINGS is required to be able to access secure settings. I've searched around quite a bit, and every answer I saw pretty much said that no app outside of the system/firmware can get that permisssion.</p>
  
  <p>However, that is simply untrue. There are several apps on the market that do exactly what I'm trying to (in regards to GPS), but there are a bunch more that have the WRITE_SECURE_SETTINGS permissions. For example:</p>
  
  <p><a href="https://market.android.com/details?id=com.extendedcontrols" rel="noreferrer">Extended Controls</a></p>
  
  <p><a href="https://market.android.com/details?id=alei.switchpro" rel="noreferrer">SwitchPro</a></p>
  
  <p><a href="https://play.google.com/store/apps/details?id=com.amithgc.taskflow" rel="noreferrer">Profile Flow</a></p>
  
  <p>So, how can this be done?</p>