In Android Marshmallow, How to turn-off the mock locations in Developer option?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP



In Android Marshmallow, How to turn-off the mock locations in Developer option?



I have enabled mock locations in my mobile which runs on Android 6.0 . Now I want to turn it off badly as I could not use few location based apps. I could not find any option with "Turn-off mock location". It just shows "Select mock location app" for which it shows "none" when selected. Please help me with this issue.




5 Answers
5



That doesn't work anymore with the update to marshmallow. There is no option to turn it off. You can only select an app to which you would like to use for mock locations. You're going to have to undo your system update. That's the only solution I can think of.



in developer options, where you select an app to which you would like to use for mock locations, there is also an option for "Nothing". Maybe this will disable mock locations.



You can install adb (Android Debug Bridge) by following these instructions for the Windows operating system.



Once you have adb installed, and have confirmed your phone is connected and recognized by adb (as per the same instructions I linked), start a Windows command prompt (typing cmd at the Start Menu). At the command line, you will type adb shell.


cmd


adb shell



At the next prompt, type settings put secure mock_location 0. This will programmatically turn off mock locations on your connected Android phone.


settings put secure mock_location 0



Mock location setting might be unavailable until you get access to developer option and enable it. Try this tutorial to enable developer option first a nd then you can enable or disable mock location on your phone.





Please don't only post a link but add soome substance to your answer.
– EluciusFTW
Jan 14 '17 at 9:06



Go into settings - about phone. Find developer number and tap 7 times, this will allow developer mode.
Go back to settings and a new menu called developer options will be accessible. Within that turn off mock locations.





You can tell OP already has developer settings on from the mention of select mock location app, yet your instructions are merely to turn on developer settings which is useless for the problem OP has described. The actual issue where mock locations cannot be turned off started occuring with the latest Marshmallow update.
– Raj
Dec 20 '16 at 4:08




Thank you for your interest in this question.
Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).



Would you like to answer one of these unanswered questions instead?

Popular posts from this blog

Firebase Auth - with Email and Password - Check user already registered

Dynamically update html content plain JS

How to determine optimal route across keyboard