title: Is there a way to add a permission to an application I'm testing? (my own app)
body: <p>My application needs that GPS is active at startup as for it to proceed. 
  Iam testing the app, so I'm mocking the GPS by adding <code>&lt;uses-permission android:name="android.permission.ACCESS_MOCK_LOCATION" /&gt;</code> to my <code>AndroidManisfest.xml</code> file.</p>
  
  <p>This works ok. But I want to keep things separate. Is it possible to add a permission at runtime when we are testing?</p>
  
  <p>EDIT: </p>
  
  <p>I know from the <a href="http://developer.android.com/guide/topics/security/security.html#arch" rel="nofollow">docs</a> that:</p>
  
  <p><em>Android has no mechanism for granting permissions dynamically (at run-time) because it complicates the user experience to the detriment of security.</em></p>
  
  <p>But as a matter of testing the application, is there an alternative?</p>
  
  <p>Thanks</p>