Skip to content

Commit b1ec060

Browse files
authored
Detect device new brands: A&K, BASE, CKK Mobile, Matco Tools, Sparx and Detect devices for exist brands (#7479)
* feat: detect device new brand A&K: G4040 feat: detect device new brand Matco Tools: Maximus 3.0 feat: detect device new brand Sparx: Neo 7 Pro, Neo 7, Neo 7 Pro Ultra feat: detect device brand Vivo: Y02s (V2229) feat: detect device brand VGO TEL: New 22 feat: detect device brand iTel: S23 (S665LN, S665L) feat: detect device brand Acteck: Aikun AT723C feat: detect device brand Huawei: MediaPad T1 10 feat: detect device brand Realme: C51 (RMX3830), 11 Pro+ (RMX3740) feat: detect device brand Samsung: Galaxy M54 5G (SM-M546B) feat: detect device brand Xiaomi: Redmi 10X feat: detect device brand DEXP: 50UCY2-G feat: detect device brand Asano: 24LH7011T 24.0" feat: detect device brand Philips: Smart TV UHD feat: detect device brand Kivi: 32H600GR feat: detect device brand Hi: 65USY151X feat: detect device brand HIPER: H32YQ2200GR feat: detect device brand Leff: 55U630S * feat: detect device new brand BASE: Varia feat: detect device new brand CKK Mobile: Inspire 1, Garnet feat: detect device brand eSTAR: Takee 1 feat: detect device brand Huawei: Honor 90 (REA-NX9) feat: detect device brand OPPO: Reno 5K 5G feat: detect device brand Kogan: Agora Lite, Agora 4G Pro * feat: detect device brand Tecno Mobile: Pova Neo 2 (TECNO Mobile LG6n) feat: detect device brand Asus: ROG Phone 7 (AI2205_D) feat: detect device brand Vivo: Y27 5G (V2302), Y02t (V2254), Y22 (V2238) feat: detect device brand Infinix: Hot 30 Play (X6835) feat: detect device brand Highscreen: Explosion feat: detect device brand OPPO: R15 Neo feat: detect device brand Xiaomi: Pad 6 (23043RP34I) feat: detect device brand Vityaz: 43LU1204 feat: detect device brand BBK: 40LEX-7202/FTS2C, 43LEX-7287/TS2C
1 parent 5cbea85 commit b1ec060

File tree

9 files changed

+910
-42
lines changed

9 files changed

+910
-42
lines changed

Parser/Device/AbstractDeviceParser.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ abstract class AbstractDeviceParser extends AbstractParser
9494
'88' => '8848',
9595
'10M' => '10moons',
9696
'41' => 'A1',
97+
'AK1' => 'A&K',
9798
'00' => 'Accent',
9899
'ACC' => 'Accesstyle',
99100
'AE' => 'Ace',
@@ -204,6 +205,7 @@ abstract class AbstractDeviceParser extends AbstractParser
204205
'BO' => 'BangOlufsen',
205206
'BN' => 'Barnes & Noble',
206207
'BAR' => 'BARTEC',
208+
'BAS' => 'BASE',
207209
'BB' => 'BBK',
208210
'0B' => 'BB Mobile',
209211
'B6' => 'BDF',
@@ -340,6 +342,7 @@ abstract class AbstractDeviceParser extends AbstractParser
340342
'CW' => 'Cowon',
341343
'75' => 'Covia',
342344
'QG' => 'COYOTE',
345+
'CKK' => 'CKK Mobile',
343346
'YW' => 'ClearPHONE',
344347
'33' => 'Clementoni',
345348
'CR' => 'CreNova',
@@ -927,6 +930,7 @@ abstract class AbstractDeviceParser extends AbstractParser
927930
'3X' => 'Mastertech',
928931
'MAS' => 'Master-G',
929932
'50' => 'Matrix',
933+
'MAT' => 'Matco Tools',
930934
'7M' => 'Maxcom',
931935
'7M1' => 'Maxfone',
932936
'ZM' => 'Maximus',
@@ -1389,6 +1393,7 @@ abstract class AbstractDeviceParser extends AbstractParser
13891393
'68' => 'Soho Style',
13901394
'SOB' => 'SobieTech',
13911395
'PK' => 'Spark',
1396+
'SPX' => 'Sparx',
13921397
'FS' => 'SPC',
13931398
'6S' => 'Spectrum',
13941399
'43' => 'Spectralink',

Tests/fixtures/feature_phone.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1687,3 +1687,36 @@
16871687
model: X4
16881688
os_family: Real-time OS
16891689
browser_family: Unknown
1690+
-
1691+
user_agent: G4040_MAUI WAP Browser
1692+
os: [ ]
1693+
client:
1694+
type: browser
1695+
name: MAUI WAP Browser
1696+
version: ""
1697+
engine: ""
1698+
engine_version: ""
1699+
device:
1700+
type: feature phone
1701+
brand: 'A&K'
1702+
model: G4040
1703+
os_family: Unknown
1704+
browser_family: Unknown
1705+
-
1706+
user_agent: KDDI-CA32 UP.Browser/6.2.0.7.3.129 (GUI) MMP/2.0
1707+
os:
1708+
name: Java ME
1709+
version: ""
1710+
platform: ""
1711+
client:
1712+
type: browser
1713+
name: Openwave Mobile Browser
1714+
version: 6.2.0.7.3.129
1715+
engine: ""
1716+
engine_version: ""
1717+
device:
1718+
type: feature phone
1719+
brand: KDDI
1720+
model: CA32
1721+
os_family: Real-time OS
1722+
browser_family: Unknown

Tests/fixtures/phablet-1.yml

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -903,8 +903,8 @@
903903
platform: ""
904904
client:
905905
type: browser
906-
name: Chrome Webview
907-
version: 92.0.4515.131
906+
name: Hi Browser
907+
version: 2.6.4.1
908908
engine: Blink
909909
engine_version: 92.0.4515.131
910910
device:
@@ -921,8 +921,8 @@
921921
platform: ""
922922
client:
923923
type: browser
924-
name: Chrome Webview
925-
version: 92.0.4515.131
924+
name: Hi Browser
925+
version: 2.6.3.1
926926
engine: Blink
927927
engine_version: 92.0.4515.131
928928
device:
@@ -1679,3 +1679,21 @@
16791679
model: Galaxy Z Flip 5
16801680
os_family: Android
16811681
browser_family: Unknown
1682+
-
1683+
user_agent: Mozilla/5.0 (Linux; Android 12; en; TECNO Mobile LG6n Build/SP1A.210812.016) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.5060.129 HiBrowser/v2.9.3.4 UWS/ Mobile Safari/537.36
1684+
os:
1685+
name: Android
1686+
version: "12"
1687+
platform: ""
1688+
client:
1689+
type: browser
1690+
name: Hi Browser
1691+
version: 2.9.3.4
1692+
engine: Blink
1693+
engine_version: 103.0.5060.129
1694+
device:
1695+
type: phablet
1696+
brand: Tecno Mobile
1697+
model: Pova Neo 2
1698+
os_family: Android
1699+
browser_family: Chrome

0 commit comments

Comments
 (0)