title: How to pick an app to allow mock locations programmatically on Marshmallow?
body: <p>Prior to Marshmallow "Allow mock locations" option could be changed programmatically(requires root)</p>
  
  <pre><code>Settings.Secure.putInt(getContentResolver(),Settings.Secure.ALLOW_MOCK_LOCATION, 1);
  </code></pre>
  
  <p>But now this option is app specific, means you have to pick the mocker app in developer options.</p>
  
  <p>Is there a way to change this settings (inserting my app to allowed list) programmatically ?</p>