Mock Locations option keeps turning off I am trying to test an app i have been sitting on for a while. 
In order to do that i need to use the option "Allow mock Locations", so i set it to on. But as soon as i refresh the page it's gets automatically turned back off every single time. So i am unable to use this option. 
I tried finding if an installed app does effect that but as it turned out was not the problem there. This is the only rooted phone i have so i need to get this working on this device. 
I'm using 5.1.1, OnePlus X

Anybody maybe with a similar problem or any suggestions? 

Thank you.
Things you can try: 

If testing on an actual device, make sure that you have the "Developer options" turned on, and a check on the "allow mock locations" checkbox.

From the phone's location settings, make sure the location is not gotten by using Wi-Fi and mobile networks, so only "GPS" or in some models "Device Only" checked.

Finally, if you are developing the app yourself and/or have access to it's manifest; check to see that the manifest contains the correct permission:

&lt;uses-permission android:name="android.permission.ACCESS_MOCK_LOCATION" /&gt; 


for further help concerning development issues, you can read from this post on stack overflow for assistance: https://stackoverflow.com/questions/2531317/android-mock-location-on-device

I left this answer here for further reference in case it will be useful for others.