How can I change pointer locations setting in developer options from adb shell?
To enable Pointer locations, the command is:

adb shell settings put system pointer_location 1


Change 1 to 0 to disable it.

Enter adb shell settings to understand its usage and what the aforesaid command is doing.