LocationManager exception
<p>I'm trying to make LocationManager work and get weird security exception. When I run code:</p>

<pre><code>this.lm = (LocationManager)getSystemService(Context.LOCATION_SERVICE);
this.lm.setTestProviderStatus(LocationManager.GPS_PROVIDER, LocationProvider.AVAILABLE, null, System.currentTimeMillis());
</code></pre>

<p>I get following exception:</p>

<pre><code>Caused by: java.lang.SecurityException: Requires ACCESS_MOCK_LOCATION permission
        at android.os.Parcel.readException(Parcel.java:1247)
        at android.os.Parcel.readException(Parcel.java:1235)
        at android.location.ILocationManager$Stub$Proxy.setTestProviderStatus(ILocationManager.java:981)
        at android.location.LocationManager.setTestProviderStatus(LocationManager.java:1107) 
</code></pre>

<p>And I have following in manifest file:</p>

<pre><code>&lt;application android:label="IDATT" android:icon="@drawable/icon" android:debuggable="true"&gt;
        &lt;uses-permission name="android.permission.ACCESS_MOCK_LOCATION"/&gt;
        &lt;uses-permission name="android.permission.ACCESS_LOCATION"/&gt;
        &lt;uses-permission name="android.permission.ACCESS_GPS"/&gt;
        &lt;uses-permission name="android.permission.ACCESS_FINE_LOCATION"/&gt;

        &lt;activity android:name=".MainActivity" android:screenOrientation="portrait"&gt;
</code></pre>
