Skip to content

Commit

Permalink
Detect new brands: V-Gen, Nedaphone and Detect devices for exist bran…
Browse files Browse the repository at this point in the history
…ds (matomo-org#7346)

* feat(device) detect brand Huawei: MediaPad M2 10.1" (M2-A01L)
feat(device) detect brand Acer: Iconia B1 (B1-730)

* feat(device) detect brand CUBOT: King Kong 6
feat(device) detect brand Kyocera: Balmuda A101BM
feat(device) detect brand Honeywell: ScanPal EDA51K

* feat(device) detect brand Huawei: MatePad 10.4" SE WiFi (AGS5-W09)
feat(device) detect brand HTC: A103
feat(device) detect brand BBK: 32LEX-7272

* feat(device) detect brand SPC: Gravity 2
feat(device) detect brand Elephone: E10 Pro, E10
feat(device) detect brand Honeywell: ScanPal EDA40

* feat(device) detect brand Xiaomi: Redmi Note 11R, Redmi Note 11 Pro+, Mi CC 9e, Redmi 10 Prime, Redmi K30 Ultra,
 Redmi K30S Ultra, Redmi 9 Prime, Mi 11 Pro, Mi 11 LE, Mi 11 Lite 5G NE, Mi Pad 5 Pro
feat(device) detect brand POCO: M5, C3
feat(device) detect brand DEXP: H32H8051C-G

* feat(device) detect brand Huawei: Honor 3 (HN3-U01)

* feat(device) detect brand HTC: Atrix HD

* feat(device) detect new brand V-Gen: Albatros C2
feat(device) detect brand Huawei: Honor Holly
feat(device) detect brand Xiaomi: Redmi Note 9, Redmi Note 11T Pro, Redmi Note 11E Pro,
 12S Ultra, 12S Pro, 12S, Redmi 10 Prime+ 5G, Redmi 9 Power, Redmi 10X Pro, Redmi 6 Pro

* feat(device) detect new brand Nedaphone: V9
feat(device) detect brand Mobell: Nova P3
feat(device) detect brand Smart: Notrino
feat(device) detect brand NOA: Stilo
feat(device) detect brand Iris: Next U, Next P+
feat(device) detect brand Newsday: N2+
feat(device) detect brand Nomi: Libra 2 3G (C080010)
  • Loading branch information
sanchezzzhak authored Feb 3, 2023
1 parent c4f7bee commit 3b070a6
Show file tree
Hide file tree
Showing 7 changed files with 1,050 additions and 47 deletions.
2 changes: 2 additions & 0 deletions Parser/Device/AbstractDeviceParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -964,6 +964,7 @@ abstract class AbstractDeviceParser extends AbstractParser
'NAS' => 'NASCO',
'NP' => 'Naomi Phone',
'NE' => 'NEC',
'NDP' => 'Nedaphone',
'8N' => 'Necnot',
'NF' => 'Neffos',
'9X' => 'Neo',
Expand Down Expand Up @@ -1510,6 +1511,7 @@ abstract class AbstractDeviceParser extends AbstractParser
'JM' => 'v-mobile',
'VHO' => 'V-HOPE',
'VHM' => 'V-HOME',
'VGE' => 'V-Gen',
'V0' => 'VKworld',
'VM' => 'Vodacom',
'VF' => 'Vodafone',
Expand Down
90 changes: 90 additions & 0 deletions Tests/fixtures/phablet-1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -663,3 +663,93 @@
model: Redmi Note 10T 5G
os_family: Android
browser_family: Android Browser
-
user_agent: Mozilla/5.0 (Linux; U; Android 12; uz-uz; Redmi Note 11R Build/SP1A.210812.016) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/100.0.4896.127 Mobile Safari/537.36 XiaoMi/MiuiBrowser/13.19.2-gn
os:
name: Android
version: "12"
platform: ""
client:
type: browser
name: MIUI Browser
version: 13.19.2
engine: WebKit
engine_version: "537.36"
device:
type: phablet
brand: Xiaomi
model: Redmi Note 11R
os_family: Android
browser_family: Android Browser
-
user_agent: Mozilla/5.0 (Linux; U; Android 11; ru-ru; Redmi Note 11 Pro+ Build/RP1A.200720.011) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/89.0.4389.116 Mobile Safari/537.36 XiaoMi/MiuiBrowser/12.22.0-gn
os:
name: Android
version: "11"
platform: ""
client:
type: browser
name: MIUI Browser
version: 12.22.0
engine: WebKit
engine_version: "537.36"
device:
type: phablet
brand: Xiaomi
model: Redmi Note 11 Pro+
os_family: Android
browser_family: Android Browser
-
user_agent: Mozilla/5.0 (Linux; U; Android 12; ru-ru; Redmi Note 11E Pro Build/SKQ1.211006.001) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/100.0.4896.127 Mobile Safari/537.36 XiaoMi/MiuiBrowser/13.19.2-gn
os:
name: Android
version: "12"
platform: ""
client:
type: browser
name: MIUI Browser
version: 13.19.2
engine: WebKit
engine_version: "537.36"
device:
type: phablet
brand: Xiaomi
model: Redmi Note 11E Pro
os_family: Android
browser_family: Android Browser
-
user_agent: Mozilla/5.0 (Linux; U; Android 12; ru-ru; Redmi Note 11T Pro Build/SP1A.210812.016) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/100.0.4896.127 Mobile Safari/537.36 XiaoMi/MiuiBrowser/13.16.0-gn
os:
name: Android
version: "12"
platform: ""
client:
type: browser
name: MIUI Browser
version: 13.16.0
engine: WebKit
engine_version: "537.36"
device:
type: phablet
brand: Xiaomi
model: Redmi Note 11T Pro
os_family: Android
browser_family: Android Browser
-
user_agent: Mozilla/5.0 (Linux; U; Android 11; ru-ru; Redmi Note 9 4G Build/RKQ1.201004.002) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/89.0.4389.116 Mobile Safari/537.36 XiaoMi/MiuiBrowser/12.16.2-gn
os:
name: Android
version: "11"
platform: ""
client:
type: browser
name: MIUI Browser
version: 12.16.2
engine: WebKit
engine_version: "537.36"
device:
type: phablet
brand: Xiaomi
model: Redmi Note 9
os_family: Android
browser_family: Android Browser
Loading

0 comments on commit 3b070a6

Please sign in to comment.