commit | 990ff7ba368f3d24ba6ac25321e326c82f13d620 | [log] [tgz] |
---|---|---|
author | Vaibhav Devmurari <vdevmurari@google.com> | Thu Dec 22 18:23:21 2022 +0000 |
committer | Vaibhav Devmurari <vdevmurari@google.com> | Mon Jan 02 13:14:00 2023 +0000 |
tree | 329959cd59a2921e132945d20fdd28eb6a67ddeb | |
parent | 6b65c0c7abd78b10583a27b80734fb672dea66aa [diff] |
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