I am trying to find a way of reading the new settings for mock locations in Android M.
Before Android M, the mock location setting was a toggle option called "use mock locations", and it was readable with this setting: Settings.Secure.ALLOW_MOCK_LOCATION
With Android M, the mock location setting is an app to select for mock locations, so it is a multi-elements list, which selected element can be "none".
That thread has a solution for determining the source of the location update when listening for locations, but unfortunately I would like to read the setting itself: How to check for Mock Location in Android Marshmallow?
I would like to read whether there is a selected app for mock locations or not, and ideally the selected app as well. Any idea about how to do that are welcome!