Skip to content

Commit

Permalink
Detect new brands: Frunsi, RelNAT, TeloSystems, MIWANG and Detect dev…
Browse files Browse the repository at this point in the history
…ices for exist brands (matomo-org#7348)

* feat(device) detect brand Star: N9589
feat(device) detect brand Huawei: Ascend P7 (P7-L07)
feat(device) detect brand Fly: Tornado Slim

* feat(app) detect apps: Lazada, Taobao, Alipay

* feat(device) detect new brand Beafon: Class C250

* feat(device) detect brand Blackview: Tab 15
feat(device) detect brand Meizu: 16
feat(device) detect brand Doogee: S61

* feat(device) detect new brand RelNAT: Premier
feat(device) detect brand Cherry Mobile: Revel 3G
feat(device) detect brand iTel: Alpha (W5503)
feat(device) detect brand LOKMAT: APPLLP Max
feat(device) detect brand Rikomagic:  MK902II, MK902, MK802IV, MK802IIIS

* feat(device) detect new brand Frunsi: RubensTab T11
feat(device) detect new brand TeloSystems: TE6
feat(device) detect brand Huawei: Honor X7a (RKY-LX1)
feat(device) detect brand Xiaomi: 12T Pro (22081212G)
feat(device) detect brand Tecno Mobile: Phantom X2 (AD8)
feat(device) detect brand OPPO: Find N2 (PGU110)
feat(device) detect brand Realme: 10 Pro (RMX3663), 10 Pro+ 5G (RMX3686, RMX3687)
feat(device) detect brand Telefunken: TELP-1013KBC
feat(device) detect brand Vestel: VTab Z1 (V TAB Z1 A)

* feat(device) detect new brand MIWANG: M2s
  • Loading branch information
sanchezzzhak authored Feb 13, 2023
1 parent 773da1d commit c12bcb6
Show file tree
Hide file tree
Showing 8 changed files with 776 additions and 25 deletions.
5 changes: 5 additions & 0 deletions Parser/Device/AbstractDeviceParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@ abstract class AbstractDeviceParser extends AbstractParser
'B6' => 'BDF',
'QD' => 'BDQ',
'8Z' => 'BDsharing',
'BEF' => 'Beafon',
'BE' => 'Becker',
'B5' => 'Beeline',
'B0' => 'Beelink',
Expand Down Expand Up @@ -520,6 +521,7 @@ abstract class AbstractDeviceParser extends AbstractParser
'FOD' => 'FoxxD',
'FJ' => 'FOODO',
'FT' => 'Freetel',
'FRU' => 'Frunsi',
'F4' => 'F&U',
'1F' => 'FMT',
'FPT' => 'FPT',
Expand Down Expand Up @@ -913,6 +915,7 @@ abstract class AbstractDeviceParser extends AbstractParser
'M5' => 'MIXC',
'2D' => 'MIVO',
'1Z' => 'MiXzo',
'MIW' => 'MIWANG',
'ML' => 'MLLED',
'LS' => 'MLS',
'5H' => 'MMI',
Expand Down Expand Up @@ -1169,6 +1172,7 @@ abstract class AbstractDeviceParser extends AbstractParser
'RAY' => 'Raylandz',
'RC' => 'RCA Tablets',
'2R' => 'Reach',
'REL' => 'RelNAT',
'RB' => 'Readboy',
'RE' => 'Realme',
'RE1' => 'Redbean',
Expand Down Expand Up @@ -1370,6 +1374,7 @@ abstract class AbstractDeviceParser extends AbstractParser
'65' => 'Telia',
'TEL' => 'Telma',
'PW' => 'Telpo',
'TLS' => 'TeloSystems',
'TER' => 'Teracube',
'TD' => 'Tesco',
'TA' => 'Tesla',
Expand Down
18 changes: 18 additions & 0 deletions Tests/Parser/Client/fixtures/mobile_app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1499,3 +1499,21 @@
type: mobile app
name: Overcast
version: ""
-
user_agent: Mozilla/5.0 (Linux; U; Android 10; zh-CN; M2006C3LG Build/QP1A.190711.020) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/69.0.3497.100 UWS/3.22.1.227 Mobile Safari/537.36 AliApp(LA/7.12.0) UCBS/2.11.1.1 TTID/600000@lazada_android_7.12.0 WindVane/8.5.0 720X1449
client:
type: mobile app
name: Lazada
version: 7.12.0
-
user_agent: Mozilla/5.0 (Linux; U; Android 7.1.1; zh-CN; OPPO R11st Build/NMF26X) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/57.0.2987.108 UCBrowser/11.9.4.974 UWS/2.14.0.3 Mobile Safari/537.36 AliApp(TB/7.8.3) UCBS/2.11.1.1 TTID/600000@taobao_android_7.8.3 WindVane/8.3.0 1080X2016
client:
type: mobile app
name: Taobao
version: 7.8.3
-
user_agent: Mozilla/5.0 (Linux; U; Android 12; zh-CN; KB2000 Build/RKQ1.211119.001) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/69.0.3497.100 UWS/3.22.2.43 Mobile Safari/537.36 UCBS/3.22.2.43_220223200704 NebulaSDK/1.8.100112 Nebula AlipayDefined(nt:WIFI,ws:360|0|3.0) AliApp(AP/10.3.0.8000) AlipayClient/10.3.0.8000 Language/zh-Hans useStatusBar/true isConcaveScreen/true Region/CNAriver/1.0.0
client:
type: mobile app
name: Alipay
version: 10.3.0.8000
Loading

0 comments on commit c12bcb6

Please sign in to comment.