Don't crash on invalid HID country code
Apple magic keyboard sends invalid hid country code 166 which is not supported according to HID standards. Instead of throwing fatal exception, assume any country code value out of the standard range as invalid. Test: manual testing. TODO: implement sysfs based test cases Bug: 262703228 Change-Id: I7821473c31b08d23ebf91385fbe12dc9f758a472
Loading
Please register or sign in to comment