如何从adb shell启用"Show Touches"开发人员选项?

Ali*_*ves 7 adb touches screen-recording adb-shell

我需要为屏幕记录显示触摸以显示错误,但不想导航到设置中,因为担心我会丢失我的位置并且错误将消失.

任何人都知道是否可以从adb shell启用此功能,如果是,我输入的内容是什么?

Ali*_*ves 18

这将启用show touches:

adb shell content insert --uri content://settings/system --bind name:s:show_touches --bind value:i:1
Run Code Online (Sandbox Code Playgroud)

这会禁用它:

adb shell content insert --uri content://settings/system --bind name:s:show_touches --bind value:i:0
Run Code Online (Sandbox Code Playgroud)

  • 使用“adb shell settings put system show_touches 1”似乎更简单。请注意,您可以使用“adb shell settings list system”获取所有系统选项的列表。 (5认同)

归档时间:

查看次数:

2001 次

最近记录:

7 年,9 月 前