title: Android M: Programmatically revoke permissions
body: <p>I am currently playing around with android m's new permission system.
  What i am planning is to add a screen to my in-app settings where the user can grant or revoke permissions. </p>
  
  <p>The screen would look like the regular system settings screen, but will have additional information why my app needs the specific permission. This settings screen would be an addition to the regular permission handling as suggested in the <a href="https://developer.android.com/intl/zh-CN/preview/features/runtime-permissions.html" rel="noreferrer">Documentation</a>.</p>
  
  <p>The workflow would be:</p>
  
  <ul>
  <li>granting permission: open the systems dialog to grant/revoke (<a href="https://developer.android.com/intl/zh-CN/preview/features/runtime-permissions.html#coding" rel="noreferrer">like suggested here</a>)</li>
  <li>revoking permission: revoke it programmatically</li>
  </ul>
  
  <p>So my question is, can permissions be revoked programatically?
  I searched a lot, but didn't manage to get some results.</p>