Search code examples
adbandroid-6.0-marshmallow

adb command to GPS (Setting > Location) enable in marshmallow


Using command

adb shell settings put secure location_providers_allowed gps

I can enable the location in Android 5.1.1

But if I use the same command in android 6, It is not working


Solution

  • A solution Found on supersu log of power toggles, works on mm: Enable GPS "settings put secure location_providers_allowed +gps"

    Enable network location "settings put secure location_providers_allowed +network"

    Disable GPS "settings put secure location_providers_allowed -gps" Disabling network location "settings put secure location_providers_allowed -network"