Merge "Check if /dev/input exists before accessing the path" into sc-dev-plus-aosp