3

I need to be able to select and deselect "pointer locations" from the developer options menu using adb. adb shell am start -n com.android.settings/.DevelopmentSettings, but once I'm there I can't figure out how to select and de-select pointer locations.

I tried just using shell keyevent 'xx' to move the focus, but it seems problematic and unreliable. Is there a simple set of commands that will allow me to just jump to the selection?

5

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.

  • adb shell settings put system pointer_location 1 /system/bin/sh: settings: not found – Kevin Parker Aug 31 '15 at 5:00
  • Are you using an Android earlier than Android 4.2.1? settings command was introduced starting from Android 4.2.1. – Firelord Aug 31 '15 at 9:35
  • Thanks :) We're using 4.1.1 but will keep this in mind for the future. – Kevin Parker Aug 31 '15 at 20:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.