title: How do I use adb grant or adb revoke?
body: <p>The Android documentation contains the following description of the adb grant and adb revoke commands.  </p>
  
  <pre><code>grant &lt;PACKAGE_PERMISSION&gt;
  </code></pre>
  
  <p>Grant permissions to applications. Only optional permissions the application has declared can be granted.</p>
  
  <pre><code>revoke &lt;PACKAGE_PERMISSION&gt;
  </code></pre>
  
  <p>Revoke permissions to applications. Only optional permissions the application has declared can be revoked.</p>
  
  <p><strong>Can anybody please give an example of the correct syntax to use them?</strong></p>
  
  <p>I assume that  would be a permission like <code>android.permission.WRITE_EXTERNAL_STORAGE</code>, or perhaps just <code>WRITE_EXTERNAL_STORAGE</code>.  Well I tried those, and several others and I cannot get it to work.</p>
  
  <p>I also tried (to no avail) several combinations of package and permission, which makes more sense to me (this sounds like a command that would modify a permission on one package, not all) </p>