title: mock location provider triggers security exception
body: <p>I want to test my application using a mock location provider. The class of the location provider is downloaded from the web, and i trust about it correctness. By the way, also after adding the security permission below:</p>
  
  <pre><code>&lt;uses-permission android:name="android.permission.ACCESS_MOCK_LOCATION"/&gt;
  </code></pre>
  
  <p>a security exception is thrown, with the message "Requires ACCESS_MOCK_LOCATION secure setting". </p>
  
  <p>Maybe can be important knowing that some day ago, i reorganized my classes that were all in the same package (smw.gogo), into new sub package (smw.gogo.test, smw.gogo.activities, smw.gogo.training).</p>
  
  <p>The line that triggers the exception is:</p>
  
  <pre><code>lm.addTestProvider(providerName, false, false, false, false, false, true, true, 0, 5);
  </code></pre>
  
  <p>This line of code is in the (new) class smw.gogo.MockLocationProvider.</p>
  
  <p>So why i get the security exception? Thank you all.</p>