Merge "Check if /dev/input exists before accessing the path"