Skip to content

Commit ae3d8df

Browse files
authored
Detect devices for existing brands and new brands (matomo-org#7224)
* feat(device) detect new brand Unblock Tech: S900 Pro BT, S900 Pro feat(device) detect brand GoMobile: Go506 feat(device) detect brand FiGi: Gtwo feat(device) detect brand HiKing: MH501 feat(device) detect brand Advance: Hollogram HL7257 feat(device) detect brand FireFly Mobile: S90 Q * feat(device) detect new brand C5 Mobile: Noa X2 Plus, Noa X Power feat(device) detect brand Selfix: Q3 Rebel, Q6 Stallion, V41 Pro Mardigras feat(device) detect brand Leagoo: Shark 1, Shark 6300 feat(device) detect brand Obi: SJ1.5, SJ2.2, SJ3.2 feat(device) detect brand NOA: Hummer * feat(device) detect new brand Chainway: C66 feat(device) detect brand LT Mobile: P20 (C3600), P30 (C3700) feat(device) detect brand DEXP: B11 * feat(device) detect brand Tecno Mobile: Spark 9 Pro (TECNO KH7n) feat(device) detect brand Wiko: Y62 Plus feat(device) detect brand AGM: H5 Pro feat(device) detect brand OPPO: Reno 8 Pro (CPH2359) feat(device) detect brand Xiaomi: Redmi K50i (22041216I) feat(device) detect brand DEXP: C37 * feat(device) detect new brand Harper: ABX-332 feat(device) detect brand Huawei: P50 (ABR-LX9) * feat(device) detect brand M-Tech: Foto 3 feat(device) detect brand Hurricane: Flint feat(device) detect brand Vivax: Fly 4 feat(device) detect brand HiKing: Fun 5 feat(device) detect brand FiGi: Ftwo feat(device) detect brand SPC: Flow 7 * fix: YAML Lint * feat(device) detect brand Quantum: Go 2 feat(device) detect brand Blu: Grand M2 LTE, Grand M2, Grand M2X, Grand XL feat(device) detect brand Zuum: Grant feat(device) detect brand SPC: Gravity 3G, Gravity Pro * fix: tests
1 parent ec1fcbe commit ae3d8df

File tree

6 files changed

+998
-34
lines changed

6 files changed

+998
-34
lines changed

Parser/Device/AbstractDeviceParser.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,7 @@ abstract class AbstractDeviceParser extends AbstractParser
271271
'CG' => 'Cellution',
272272
'62' => 'Centric',
273273
'C2' => 'Changhong',
274+
'CHA' => 'Chainway',
274275
'CH' => 'Cherry Mobile',
275276
'C3' => 'China Mobile',
276277
'U9' => 'China Telecom',
@@ -294,6 +295,7 @@ abstract class AbstractDeviceParser extends AbstractParser
294295
'C8' => 'Concord',
295296
'CC' => 'ConCorde',
296297
'C5' => 'Condor',
298+
'C5M' => 'C5 Mobile',
297299
'4C' => 'Conquest',
298300
'3C' => 'Contixo',
299301
'8C' => 'Connex',
@@ -539,6 +541,7 @@ abstract class AbstractDeviceParser extends AbstractParser
539541
'HAN' => 'Handheld',
540542
'HE' => 'HannSpree',
541543
'HK' => 'Hardkernel',
544+
'HAR' => 'Harper',
542545
'HS' => 'Hasee',
543546
'8H' => 'Hamlet',
544547
'H6' => 'Helio',
@@ -1326,6 +1329,7 @@ abstract class AbstractDeviceParser extends AbstractParser
13261329
'UU' => 'Unonu',
13271330
'UN' => 'Unowhy',
13281331
'UY' => 'UNNO',
1332+
'UNB' => 'Unblock Tech',
13291333
'UK' => 'UTOK',
13301334
'3U' => 'IUNI',
13311335
'UT' => 'UTStarcom',

Tests/fixtures/smartphone-3.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11765,7 +11765,7 @@
1176511765
device:
1176611766
type: smartphone
1176711767
brand: Wiko
11768-
model: Y62
11768+
model: Y62 Plus
1176911769
os_family: Android
1177011770
browser_family: Chrome
1177111771
-

0 commit comments

Comments
 (0)