title: Grant ACCESS_MOCK_LOCATION permission for testing using adb fails in Marshmallow
body: <p>Here is the recipe of the problem:</p>
  
  <ol>
  <li>Add mock location permission in debug manifest <code>&lt;uses-permission android:name="android.permission.ACCESS_MOCK_LOCATION"/&gt;</code></li>
  <li>Install debug version of application in phone (in Gradle: <code>debug { debuggable true }</code>)</li>
  <li>Try to give permission with adb: <code>adb shell pm grant com.myapp.name android.permission.ACCESS_MOCK_LOCATION</code></li>
  </ol>
  
  <p>The outcome of the command is:</p>
  
  <blockquote>
    <p>Operation not allowed: java.lang.SecurityException: Permission android.permission.ACCESS_MOCK_LOCATION is not a changeable permission type"</p>
  </blockquote>
  
  <p>If I go to developer options on the phone and set <code>Setting &gt;&gt; Developer Option &gt;&gt; Select Mock location app</code> it works.</p>
  
  <p>I need this for automated tests, so obviously the option of going to the phone settings is not valid because it's reset on every installation of the app, so I need the adb option to work.</p>