Is it possible to enable Location Services(GPS or Google NetworkLocation) via ADB or Terminal Emulator? I'm on a rooted Phone.
Extra Points: Is it also possible to change other system-related settings?
The command is:
The aforesaid command wouldn't enable Google's Location Service. In order to enable it as well, issue the command:
You would be shown a popup to agree for Location Services. In my Android 4.2.1, I have to agree through GUI or
However, in my Android 5.0 I can save the settings in the dialog and the command execution makes the things done perfectly from the next time.
Some devices like Lollipop ones have three Locations modes, and the relevant values to be passed in the aforesaid command would be:
To disable Location mode
But I already gave a big idea using