adb command to GPS (Setting > Location) enable in marshmallow
<p>Using command</p>

<p>adb shell settings put secure location_providers_allowed gps </p>

<p>I can enable the location in Android 5.1.1</p>

<p>But if I use the same command in android 6, It is not working</p>