title: Use mock location without setting it in settings
body: <p>I am writing an App which makes use of the location mocking possibility in android.</p>
  
  <p>What I would like to achive is to mock my location without setting the "allow mock locations" flag in the developer options.</p>
  
  <p>I know that it is possible, because is works with this app:
  <a href="https://play.google.com/store/apps/details?id=com.lexa.fakegps&amp;hl=en">https://play.google.com/store/apps/details?id=com.lexa.fakegps&amp;hl=en</a></p>
  
  <p>What I tried:</p>
  
  <p>Generate an apk, move it to /system/app, do a reboot<br>
  And I also tried it with and without the ACCESS_MOCK_LOCATION permission in the manifest.</p>
  
  <p>But it all lead to this exception:<br>
  RuntimeException: Unable to start Activity: SecurityException: Requires ACCESS_MOCK_LOCATION secure setting</p>