Added Generic Android detection

This commit is contained in:
Nikhil Motiani 2017-03-16 15:09:01 +05:30 committed by Nikhil Motiani
parent 8e9c400ec5
commit fbe8a0e3a6
2 changed files with 17 additions and 2 deletions

View File

@ -659,9 +659,13 @@
/\s(tablet)[;\/]/i, // Unidentifiable Tablet /\s(tablet)[;\/]/i, // Unidentifiable Tablet
/\s(mobile)(?:[;\/]|\ssafari)/i // Unidentifiable Mobile /\s(mobile)(?:[;\/]|\ssafari)/i // Unidentifiable Mobile
], [[TYPE, util.lowerize], VENDOR, MODEL] ], [[TYPE, util.lowerize], VENDOR, MODEL], [
/*////////////////////////// /(android.+)[;\/].+build/i // Generic Android Device
], [MODEL, [VENDOR, 'Generic']]
/*//////////////////////////
// TODO: move to string map // TODO: move to string map
//////////////////////////// ////////////////////////////

View File

@ -524,6 +524,17 @@
} }
} }
, ,
{
"desc" : "Generic Android Device",
"ua" : "Mozilla/5.0 (Linux; U; Android 6.0.1; i980 Build/MRA58K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36",
"expect" :
{
"vendor" : "Generic",
"model" : "Android 6.0.1"
}
}
,
{ {
"desc" : "LG VK Series Tablet", "desc" : "LG VK Series Tablet",
"ua" : "Mozilla/5.0 (Linux; Android 5.0.2; VK700 Build/LRX22G) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.84 Safari/537.36", "ua" : "Mozilla/5.0 (Linux; Android 5.0.2; VK700 Build/LRX22G) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.84 Safari/537.36",