On Android how to disbale *Touch feedback* with `adb`?
Jan 18, 1:24pm

To disable touch feedback (i.e., the touchscreen input) on an Android device using ADB, you can use the following method:

  1. Identify the touchscreen input device: The touchscreen is usually represented by a file in /dev/input/, such as /dev/input/event2 or /dev/input/event3. The exact file may vary depending on your device.

  2. Disable the touchscreen: Once you've identified the correct file, you can remove it to disable touch input. For example:

    bash
    adb shell
    su
    rm /dev/input/event2

    This will disable the touchscreen until the device is rebooted.

  3. Re-enable the touchscreen: To re-enable touch input, you can recreate the file:

    bash
    touch /dev/input/event2

Note: This method requires root access on your Android device. If you don't have root, this approach will not work. Also, the exact event file (e.g., event2, event3) may differ between devices, so you may need to check the /dev/input/ directory to find the correct file for your device.

If you want to disable only haptic feedback (vibration) and not the touchscreen itself, you can use the following ADB command:

bash
adb shell settings put system haptic_feedback_enabled 0

To re-enable haptic feedback:

bash
adb shell settings put system haptic_feedback_enabled 1

Would you like more details on either of these methods?

Jan 18, 1:24pm

This is a shared conversation and may include unverified content that doesn't reflect Mistral AI's views. Login to resume chatting.