serbanghita / Mobile-Detect

Mobile_Detect is a lightweight PHP class for detecting mobile devices (including tablets). It uses the User-Agent string combined with specific HTTP headers to detect the mobile environment.
http://mobiledetect.net
MIT License
10.52k stars 2.67k forks source link

Xiaomi Pad 5 isn't recognized as a Tablet #872

Closed vdite closed 1 year ago

vdite commented 2 years ago

Issue description Xiaomi Pad 5 Model 21051182G isn't recognized as a Tablet

User-Agent(s) Mozilla/5.0 (Linux; Android 11; 21051182G) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.71 Safari/537.36

Suggestions Add
'XiaomiTablet'=>'Android.*21051182G', to protected static $tabletDevices = array()

serbanghita commented 1 year ago

This was already released https://github.com/serbanghita/Mobile-Detect/blob/5.x/Mobile_Detect.php#L454 Thank you for providing the UA for research!