Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to enable "Show Touches" developer option from adb shell? [duplicate]

I need to show touches for a screenrecord to show a bug but don't want to navigate away into settings for fear that I'll lose my place and the bug will go away.

Anyone know if it's possible to enable this feature from the adb shell and if so, what I type in?

like image 995
Alives Avatar asked Mar 01 '18 19:03

Alives


People also ask

Is there any ADB command to enable developer options?

Developer Options can be enabled by tapping 7 times on build number. I am using adb shell input tap x y command to tap on build number. is there any adb command to tap on build number 7 times? Show activity on this post. Show activity on this post. That info is stored in a shared preference of the settings app.

How to launch ADB command window from any screen?

In case you have set up system-wide ADB and Fastboot, you can launch the command window from any screen of your PC. Anyway, type the following command and press the Enter key.

How do I enable developer options on Android?

Developer options On Android 4.1 and lower, the Developer options screen is available by default. On Android 4.2 and higher, you must enable this screen. To enable developer options, tap the Build Number option 7 times. You can find this option in one of the following locations, depending on your Android version:

How to install ADB on Windows 10 using PowerShell?

Open the ‘ platform-tools ‘ folder and launch a command window by clicking on File > Open Windows PowerShell in the folder window. In case you have set up system-wide ADB and Fastboot, you can launch the command window from any screen of your PC. Anyway, type the following command and press the Enter key.


Video Answer


1 Answers

This will enable show touches:

adb shell content insert --uri content://settings/system --bind name:s:show_touches --bind value:i:1

And this disables it:

adb shell content insert --uri content://settings/system --bind name:s:show_touches --bind value:i:0
like image 99
Alives Avatar answered Sep 23 '22 03:09

Alives