Skip to content

Commit

Permalink
Adds various detections (matomo-org#5612)
Browse files Browse the repository at this point in the history
* new brand Homtom

*  Homtom detected models HT3 HT17 HT20 etc

* adds models SENSEIT R390, R450, L301, A200, A109, E510, E500, E400

* add detect model `Xperia C5 Ultra`  user-agent ( Linux; Android 5.0; E5506 Build/29.0 )

* fix Xperia C5 Ultra brand Sony;
add models Sony Xperia M5 -  E5603, E5606, E5653
add model Sony Xperia M5 Dual - E5633, E5643, E5663

* fix Senseit regex regular

* fix Xperia C5 Ultra regex regular

* adds detect Explay RioPlay

* add new brand Wileyfox;
add models Spark; Spark +; Storm ; Swift; Swift 2; Swift 2 plus

* add detect Alcatel 4013M & new file tests

* add detect Blade A460

* new brand blackview & detector model BV2000, BV5000, BV600, omega plus

* Blackview remove V3 detect conflict detect Inew V3 model

* RIM add detect STV100-4 model
TCL add detect 7040N model

* ZTE add detect Nubia Z5S

* LG add detect V20 (VS995) model

* fix regular test BlackBerry Priv

* adds detect Nvidia SHIELD Tablet K1

* new brand PPTV  & detect model KING 7
new brand innos & detect A35, A35 Plus
fix detect coolpad 5860S, D6000

* new brand china mobile & detect model M812C

* detect china mobile - 1501 M02

* detect china mobile - 9930i

* detect china mobile - A1303 ( Iphone clone )

* detect china mobile - A309W

* add new brand DEXP & detect all Ixion models (99)

* detect brand Freetel - general models FTJ152C, FT141B, FT142, FT142A, FTJ152A, FTJ152B

* detect Freetel - models Kiwami, Rei, Katana 1, XM, Priori 4

* new brand Zen add detect models Admire

* detect ZET models Cinemax (1 ,2, 2+,3, 4G, click, force)

* Alcatel fixed name device

* fix Rio Play
detect Blackview: Heatwave, DM550, BV7000 PRO, Alife P1, Alife S1
  • Loading branch information
sanchezzzhak authored and sgiehl committed Jun 5, 2017
1 parent 2b5362c commit 59c8f0b
Show file tree
Hide file tree
Showing 4 changed files with 1,110 additions and 10 deletions.
8 changes: 8 additions & 0 deletions Parser/Device/DeviceParserAbstract.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ abstract class DeviceParserAbstract extends ParserAbstract
'BQ' => 'BenQ',
'BS' => 'BenQ-Siemens',
'BU' => 'Blu',
'B2' => 'Blackview',
'BW' => 'Boway',
'BX' => 'bq',
'BV' => 'Bravis',
Expand All @@ -108,6 +109,7 @@ abstract class DeviceParserAbstract extends ParserAbstract
'CL' => 'Compal',
'CN' => 'CnM',
'CM' => 'Crius Mea',
'C3' => 'China Mobile',
'CR' => 'CreNova',
'CT' => 'Capitel',
'CQ' => 'Compaq',
Expand All @@ -118,6 +120,7 @@ abstract class DeviceParserAbstract extends ParserAbstract
'DA' => 'Danew',
'DT' => 'Datang',
'DE' => 'Denver',
'DX' => 'DEXP',
'DS' => 'Desay',
'DB' => 'Dbtel',
'DC' => 'DoCoMo',
Expand Down Expand Up @@ -145,6 +148,7 @@ abstract class DeviceParserAbstract extends ParserAbstract
'EZ' => 'Ezze',
'FA' => 'Fairphone',
'FL' => 'Fly',
'FT' => 'Freetel',
'FO' => 'Foxconn',
'FU' => 'Fujitsu',
'GM' => 'Garmin-Asus',
Expand Down Expand Up @@ -247,6 +251,7 @@ abstract class DeviceParserAbstract extends ParserAbstract
'NI' => 'Nintendo',
'N1' => 'Noain',
'NK' => 'Nokia',
'NV' => 'Nvidia',
'NM' => 'Nomi',
'NN' => 'Nikon',
'NW' => 'Newgen',
Expand All @@ -273,6 +278,7 @@ abstract class DeviceParserAbstract extends ParserAbstract
'PV' => 'Point of View',
'PP' => 'PolyPad',
'P2' => 'Pomp',
'P3' => 'PPTV',
'PS' => 'Positivo',
'PR' => 'Prestigio',
'P1' => 'ProScan',
Expand Down Expand Up @@ -357,6 +363,7 @@ abstract class DeviceParserAbstract extends ParserAbstract
'VZ' => 'Vizio',
'VW' => 'Videoweb',
'WA' => 'Walton',
'WF' => 'Wileyfox',
'WE' => 'WellcoM',
'WY' => 'Wexler',
'WI' => 'Wiko',
Expand All @@ -373,6 +380,7 @@ abstract class DeviceParserAbstract extends ParserAbstract
'ZO' => 'Zonda',
'ZP' => 'Zopo',
'ZT' => 'ZTE',
'ZN' => 'Zen',

// legacy brands, might be removed in future versions
'WB' => 'Web TV',
Expand Down
140 changes: 140 additions & 0 deletions Tests/fixtures/smartphone-4.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8969,3 +8969,143 @@
model: ZMAX Pro
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 5.0; SENSEIT E500 Build/LRX21M) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.83 Mobile Safari/537.36
os:
name: Android
short_name: AND
version: "5.0"
platform:
client:
type: browser
name: Chrome Mobile
short_name: CM
version: "47.0.2526.83"
engine: Blink
engine_version:
device:
type: smartphone
brand: S6
model: E500
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 4.2.2; SENSEIT R390 Build/JDQ39) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.76 Mobile Safari/537.36
os:
name: Android
short_name: AND
version: "4.2.2"
platform:
client:
type: browser
name: Chrome Mobile
short_name: CM
version: "46.0.2490.76"
engine: Blink
engine_version:
device:
type: smartphone
brand: S6
model: R390
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 6.0; SENSEIT A109 Build/MRA58K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Mobile Safari/537.36
os:
name: Android
short_name: AND
version: "6.0"
platform:
client:
type: browser
name: Chrome Mobile
short_name: CM
version: "56.0.2924.87"
engine: Blink
engine_version:
device:
type: smartphone
brand: S6
model: A109
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 6.0; SENSEIT L301 Build/MRA58K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Mobile Safari/537.36
os:
name: Android
short_name: AND
version: "6.0"
platform:
client:
type: browser
name: Chrome Mobile
short_name: CM
version: "56.0.2924.87"
engine: Blink
engine_version:
device:
type: smartphone
brand: S6
model: L301
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 5.0; E5506 Build/29.0.A.0.161) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.93 Mobile Safari/537.36
os:
name: Android
short_name: AND
version: "5.0"
platform:
client:
type: browser
name: Chrome Mobile
short_name: CM
version: "43.0.2357.93"
engine: Blink
engine_version:
device:
type: smartphone
brand: SO
model: Xperia C5 Ultra
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 5.1; E5633 Build/30.1.B.1.55) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.89 Mobile Safari/537.36
os:
name: Android
short_name: AND
version: "5.1"
platform:
client:
type: browser
name: Chrome Mobile
short_name: CM
version: "50.0.2661.89"
engine: Blink
engine_version:
device:
type: smartphone
brand: SO
model: Xperia M5 Dual
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 4.4.2; RioPlay Build/KOT49H) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.76 Mobile Safari/537.36
os:
name: Android
short_name: AND
version: "4.4.2"
platform:
client:
type: browser
name: Chrome Mobile
short_name: CM
version: "46.0.2490.76"
engine: Blink
engine_version:
device:
type: smartphone
brand: EX
model: Rio Play
os_family: Android
browser_family: Chrome
Loading

0 comments on commit 59c8f0b

Please sign in to comment.