What's the recommended way to disable touchscreen input on Android?

In whatever script your are detecting input, usually for me that would be the input_manager, just suspend the input processing.

set_process_input(false)

To turn it back on again, just set it back to true. If you have a script that is showing a joystick, just set the visibility to false. Show us some code you are using and perhaps we could help more.