Skip to content

Commit

Permalink
Detect new brands: Autan, UNNO, VDVD, Shanling, ecom and Detect devic…
Browse files Browse the repository at this point in the history
…es for several existing brands (matomo-org#7035)

* feat(device) detect new brand Shanling: M6(21)
feat(device) detect new brand UNNO: P8
feat(device) detect new brand VDVD: IX21
feat(device) detect brand OPPO: R7 Plus
feat(device) detect Coolpad: Cool Play 7 (1872-A0)
feat(device) detect Xiaomi: Mi 10 Pro (M2001J1E)

ref matomo-org#7013

* feat(device) detect brand China Mobile: M670

* feat(device) detect new brand Autan: R2021W2
feat(device) detect brand Hisense: E22 (HITV101C)
feat(device) detect brand AllDocube: iPlay 8T
feat(device) detect brand Gree: Tosot 5G (G0515D)
feat(device) detect brand Realme: X3 (RMX2083)
feat(device) detect brand POCO: M4 Pro (2201117PG)
feat(device) detect brand Huawei: P50 (ABR-AL00), Honor 60 SE 5G (GIA-AN00)

ref matomo-org#7013

* feat(device) detect brand Huawei: Mate X (TAH-AN00)
feat(device) detect brand Vivo: X50e (V1930)
feat(device) detect brand OPPO: A95 (PELM00)
feat(device) detect brand Motorola: RAZR 5G (XT2071-4), Edge S Pro (XT2153-1), Edge 20 (XT2143-1)

ref matomo-org#7013

* feat(device) detect new brand ecom: Smart-Ex02
feat(device) detect brand 360: N4S (1505-A02), N5 (1605-A01)
feat(device) detect brand ZTE: X5 (T630), L5 (T520), Blade A476,
 Blade A515, Blade A110, Blade A410, Blade A601, Blade A910, Blade A610,
 Blade A510, Blade L111, P651 (2021)

Co-authored-by: Stefan Giehl <[email protected]>
  • Loading branch information
sanchezzzhak and sgiehl authored Mar 7, 2022
1 parent 8ef5415 commit fb0398a
Show file tree
Hide file tree
Showing 9 changed files with 905 additions and 28 deletions.
5 changes: 5 additions & 0 deletions Parser/Device/AbstractDeviceParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ abstract class AbstractDeviceParser extends AbstractParser
'Z2' => 'Atvio',
'AX' => 'Audiovox',
'AJ' => 'AURIS',
'YZ' => 'Autan',
'ZA' => 'Avenzo',
'AH' => 'AVH',
'AV' => 'Avvio',
Expand Down Expand Up @@ -348,6 +349,7 @@ abstract class AbstractDeviceParser extends AbstractParser
'E4' => 'Echo Mobiles',
'ES' => 'ECS',
'35' => 'ECON',
'ZZ' => 'ecom',
'E6' => 'EE',
'EK' => 'EKO',
'EY' => 'Einstein',
Expand Down Expand Up @@ -1011,6 +1013,7 @@ abstract class AbstractDeviceParser extends AbstractParser
'61' => 'Seuic',
'SX' => 'SFR',
'SH' => 'Sharp',
'JU' => 'Shanling',
'7S' => 'Shift Phones',
'78' => 'Shivaki',
'RS' => 'Shtrikh-M',
Expand Down Expand Up @@ -1183,6 +1186,7 @@ abstract class AbstractDeviceParser extends AbstractParser
'UO' => 'Unnecto',
'UU' => 'Unonu',
'UN' => 'Unowhy',
'UY' => 'UNNO',
'UK' => 'UTOK',
'3U' => 'IUNI',
'UT' => 'UTStarcom',
Expand Down Expand Up @@ -1210,6 +1214,7 @@ abstract class AbstractDeviceParser extends AbstractParser
'VT' => 'Vestel',
'48' => 'Vexia',
'V6' => 'VGO TEL',
'QJ' => 'VDVD',
'VD' => 'Videocon',
'VW' => 'Videoweb',
'VS' => 'ViewSonic',
Expand Down
18 changes: 18 additions & 0 deletions Tests/fixtures/portable_media_player.yml
Original file line number Diff line number Diff line change
Expand Up @@ -611,3 +611,21 @@
model: M11 Plus LTD
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; U; Android 7.1.1; zh-CN; Shanling M6(21) Build/NMF26F) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/78.0.3904.108 Quark/5.2.2.186 Mobile Safari/537.36
os:
name: Android
version: 7.1.1
platform: ""
client:
type: browser
name: Quark
version: 5.2.2.186
engine: WebKit
engine_version: "537.36"
device:
type: portable media player
brand: Shanling
model: M6(21)
os_family: Android
browser_family: Chrome
6 changes: 3 additions & 3 deletions Tests/fixtures/smartphone-17.yml
Original file line number Diff line number Diff line change
Expand Up @@ -786,7 +786,7 @@
device:
type: smartphone
brand: ZTE
model: Blade V0730
model: Blade V7
os_family: Android
browser_family: Opera
-
Expand All @@ -804,7 +804,7 @@
device:
type: smartphone
brand: ZTE
model: Blade V0800
model: Blade V8
os_family: Android
browser_family: Chrome
-
Expand Down Expand Up @@ -840,7 +840,7 @@
device:
type: smartphone
brand: ZTE
model: Blade V1000
model: Blade V10
os_family: Android
browser_family: Chrome
-
Expand Down
126 changes: 126 additions & 0 deletions Tests/fixtures/smartphone-27.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9328,3 +9328,129 @@
model: Fire 2
os_family: Android
browser_family: Opera
-
user_agent: Mozilla/5.0 (Linux; Android 8.0.0; LND-AL40 Build/HONORLND-AL40; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/62.0.3202.84 Mobile Safari/537.36
os:
name: Android
version: 8.0.0
platform: ""
client:
type: browser
name: Chrome Webview
version: 62.0.3202.84
engine: Blink
engine_version: ""
device:
type: smartphone
brand: Huawei
model: Honor 7C
os_family: Android
browser_family: Chrome
-
user_agent: ZTEU960E_TD/1.0 Linux/3.0.13 Android/4.0 Release/1.10.2013 Browser/AppleWebKit534.30 Mobile Safari/534.30
os:
name: Android
version: "4.0"
platform: ""
client:
type: browser
name: Android Browser
version: ""
engine: WebKit
engine_version: "534.30"
device:
type: smartphone
brand: ZTE
model: U960E
os_family: Android
browser_family: Android Browser
-
user_agent: TCL 302U/V1 Linux/3.10.65 Android/4.4.4 Release/03.03.2015 Browser/AppleWebKit537.36 Mobile Safari/537.36 System/Android 4.4.4;
os:
name: Android
version: 4.4.4
platform: ""
client:
type: browser
name: Android Browser
version: ""
engine: WebKit
engine_version: "537.36"
device:
type: smartphone
brand: TCL
model: 302U
os_family: Android
browser_family: Android Browser
-
user_agent: Mozilla/5.0 (Linux; Android 10; SUGAR T30) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.85 Mobile Safari/537.36
os:
name: Android
version: "10"
platform: ""
client:
type: browser
name: Chrome Mobile
version: 94.0.4606.85
engine: Blink
engine_version: ""
device:
type: smartphone
brand: Sugar
model: T30
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 11; SUGAR C60) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.61 Mobile Safari/537.36
os:
name: Android
version: "11"
platform: ""
client:
type: browser
name: Chrome Mobile
version: 94.0.4606.61
engine: Blink
engine_version: ""
device:
type: smartphone
brand: Sugar
model: C60
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 8.0.0; G3121) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.93 Mobile Safari/537.36
os:
name: Android
version: 8.0.0
platform: ""
client:
type: browser
name: Chrome Mobile
version: 88.0.4324.93
engine: Blink
engine_version: ""
device:
type: smartphone
brand: Sony
model: Xperia XA1
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 10; W-K380-TVM2G) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.74 Mobile Safari/537.36
os:
name: Android
version: "10"
platform: ""
client:
type: browser
name: Chrome Mobile
version: 95.0.4638.74
engine: Blink
engine_version: ""
device:
type: smartphone
brand: Wiko
model: Sunny 5
os_family: Android
browser_family: Chrome
Loading

0 comments on commit fb0398a

Please sign in to comment.