title: Is it possible to mock locations for release build type
body: <p>I'd like to mock locations in release build type of Android app. I've created a special flavour <em>"mockable"</em> manifest  in <code>app/src/mockable/AndroidManifest.xml</code></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"&gt;
      &lt;uses-permission android:name="android.permission.ACCESS_MOCK_LOCATION" /&gt;
  &lt;/manifest&gt;
  </code></pre>
  
  <p>But it seems that Android lint blocks from using this permissions in release build type. For command:</p>
  
  <pre><code> ./gradlew assembleRelease
  </code></pre>
  
  <p>I got output:</p>
  
  <pre><code>:app:lintVitalMockableRelease                 
  /home/fr/app/src/mockable/AndroidManifest.xml:3: Error: Mock locations should only be requested in a debug-specific manifest file (typically src/debug/AndroidManifest.xml) [MockLocation]
      &lt;uses-permission android:name="android.permission.ACCESS_MOCK_LOCATION" /&gt;
                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  
     Explanation for issues of type "MockLocation":
     Using a mock location provider (by requiring the permission
     android.permission.ACCESS_MOCK_LOCATION) should only be done in debug
     builds. In Gradle projects, that means you should only request this
     permission in a debug source set specific manifest file.
  
     To fix this, create a new manifest file in the debug folder and move the
     &lt;uses-permission&gt; element there. A typical path to a debug manifest
     override file in a Gradle project is src/debug/AndroidManifest.xml.
  
  1 errors, 0 warnings
  </code></pre>
  
  <p><strong>Is it possible to generate release app with location mocking permission?</strong></p>