Can't set value of location_providers_allowed using "adb shell settings put"
<p>I'm trying to turn location on using the following commands:</p>

<pre><code>adb shell settings put secure location_providers_allowed gps,wifi,network
adb reboot
</code></pre>

<p>But it's neither changing the value of the variable <em>location_providers_allowed</em> nor turning it on under Android Settings UI after the reboot.</p>

<p>I tried the same command to set other variables, like mock_location, and it worked without problems.
Is this variable not possible to be changed?</p>

<p>Android version: M</p>