Skip to content

Commit

Permalink
Detect new brands: Atozee, Orange Pi, Relndoo, Rhino, Scoole, VIKUSHA…
Browse files Browse the repository at this point in the history
… and Detect devices for exist brands and Detect ZTE Browser (matomo-org#7730)

feat(client) detect browser: ZTE Browser
feat(device) detect new brand Orange Pi: 3 LTS
feat(device) detect new brand VIKUSHA: V-Z40
feat(device) detect brand Samsung: Galaxy Z Flip 4 (SM-F7210)
feat(device) detect brand OPPO: K12 5G (PJR110)
feat(device) detect brand POCO: Pad 12.1" (2405CPCFBG)
feat(device) detect brand Vivo: iQOO Z9 (V2361A), iQOO Neo 9S Pro (V2339FA)
feat(device) detect brand UMIDIGI: G5A (MP38)
feat(device) detect brand Vortex: ZG55
feat(device) detect brand HeadWolf: HPad1
feat(device) detect brand iTel: A50 (A667L), A18s (A513W), A33 Plus (A509WP), A58 Pro (A661WP)
feat(device) detect brand ZTE: Axon 11 5G
feat(device) detect brand Aligator: S5550
feat(device) detect new brand Atozee: YQ10S Max, YQ10S Gold
feat(device) detect new brand Relndoo: TB02
feat(device) detect new brand Rhino: Pace A1
feat(device) detect new brand Scoole: SL-LED32S49T2S
feat(device) detect brand Xiaomi: 14 Pro (23116PN5BG)
feat(device) detect brand OSCAL: Pilot 2
feat(device) detect brand Tanix: A3
feat(device) detect brand Soundmax: SM-LED32M13S, SM-LED43M01SU, SM-LED43M02S
feat(device) detect brand Erisson: 43FLES902T2SM, 43FLES901T2SM
feat(device) detect brand Thomson: TEOX10
feat(device) detect brand Zebra: TC27
feat(device) detect brand Aocwei: X700
feat(device) detect brand Oukitel: WP38
feat(device) detect brand CUBOT: X30P
feat(device) detect brand OPPO: X30P
feat(device) detect brand General Mobile: GM Phoenix 5G (G901)
feat(device) detect brand Sonim: XP10 (XP9900)
feat(device) detect brand Blu: G53, M10L Plus
feat(device) detect brand Xsmart: Core X
feat(device) detect brand Green Lion: G-10 Pro
feat(device) detect brand Realme: Reno 4 SE 5G
feat(device) detect brand Stylo: Inkosi Pro 4G
feat(device) detect brand Blackview: BV8100
feat(device) detect brand Ulefone: Armor 26 Ultra, Armor 22
feat(device) detect brand ZTE: Libero 5G IV (A302ZT), Blade X10 II Pro+ (T1004)
feat(device) detect brand Kalley: Silver Max Pro 2
feat(device) detect brand Majestic: Tab 918 Pro 4G
feat(device) detect brand Lenovo: Tab M8 (Gen 4) (2024) (TB301FU)
feat(device) detect brand Huawei: Honor Magic 6 Lite 5G (ALI-NX3)
feat(device) detect brand ZTE: Axon 60 (Z2356), Axon 50 Ultra 5G (A2024H)
feat(device) detect brand Eltex: NV-731-WB, NV-730-WB, NV-731
  • Loading branch information
sanchezzzhak authored Jul 4, 2024
1 parent edf0ad0 commit 125b643
Show file tree
Hide file tree
Showing 10 changed files with 1,211 additions and 55 deletions.
3 changes: 2 additions & 1 deletion Parser/Client/Browser.php
Original file line number Diff line number Diff line change
Expand Up @@ -682,6 +682,7 @@ class Browser extends AbstractClientParser
'ZV' => 'Zvu',
'ZI' => 'Zirco Browser',
'ZR' => 'Zordo Browser',
'ZT' => 'ZTE Browser',

// detected browsers in older versions
// 'IA' => 'Iceape', => pim
Expand Down Expand Up @@ -773,7 +774,7 @@ class Browser extends AbstractClientParser
'H5', 'V3', 'G2', 'BG', 'OL', 'II', 'TL', 'M6', 'Y3',
'M7', 'GN', 'D3', 'IG', 'HW', '4O', 'OU', '5P', 'KE',
'5A', 'TT', '6P', 'G3', '7P', 'VU', 'F8', 'L4', 'DK',
'DP', 'KL', 'K4', 'N6', 'KU', 'WK', 'M8', 'UP',
'DP', 'KL', 'K4', 'N6', 'KU', 'WK', 'M8', 'UP', 'ZT',
];

/**
Expand Down
6 changes: 6 additions & 0 deletions Parser/Device/AbstractDeviceParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ abstract class AbstractDeviceParser extends AbstractParser
'5Q' => 'Atmaca Elektronik',
'YH' => 'ATMAN',
'2A' => 'Atom',
'AT1' => 'Atozee',
'ATO' => 'ATOL',
'Z2' => 'Atvio',
'ATI' => 'Attila',
Expand Down Expand Up @@ -1246,6 +1247,7 @@ abstract class AbstractDeviceParser extends AbstractParser
'OPT' => 'Optoma',
'OPH' => 'Ophone',
'OR' => 'Orange',
'ORP' => 'Orange Pi',
'ORA' => 'Orava',
'O5' => 'Orbic',
'Y6' => 'Orbita',
Expand Down Expand Up @@ -1383,6 +1385,7 @@ abstract class AbstractDeviceParser extends AbstractParser
'RC' => 'RCA Tablets',
'2R' => 'Reach',
'REL' => 'RelNAT',
'RE4' => 'Relndoo',
'RB' => 'Readboy',
'RE' => 'Realme',
'RE1' => 'Redbean',
Expand All @@ -1397,6 +1400,7 @@ abstract class AbstractDeviceParser extends AbstractParser
'REV' => 'Revomovil',
'8R' => 'Retroid Pocket',
'REN' => 'Renova',
'RHI' => 'Rhino',
'RIC' => 'Ricoh',
'RI' => 'Rikomagic',
'RM' => 'RIM',
Expand Down Expand Up @@ -1454,6 +1458,7 @@ abstract class AbstractDeviceParser extends AbstractParser
'Y4' => 'SCBC',
'CZ' => 'Schneider',
'SCO' => 'Scosmos',
'SC1' => 'Scoole',
'ZG' => 'Schok',
'G8' => 'SEG',
'SEX' => 'SEHMAX',
Expand Down Expand Up @@ -1765,6 +1770,7 @@ abstract class AbstractDeviceParser extends AbstractParser
'VD' => 'Videocon',
'VW' => 'Videoweb',
'VS' => 'ViewSonic',
'VIK' => 'VIKUSHA',
'V7' => 'Vinga',
'V3' => 'Vinsoc',
'XD' => 'Vinabox',
Expand Down
9 changes: 9 additions & 0 deletions Tests/Parser/Client/fixtures/browser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9595,3 +9595,12 @@
engine: NetFront
engine_version: "3.5"
family: NetFront
-
user_agent: Mozilla/5.0 (Linux; Android 10.0; ZTE Axon 11 5G) AppleWebKit/547.2 (KHTML, like Gecko) ZTE Browser/73.4.1895.8 Mobile Safari/510.83
client:
type: browser
name: ZTE Browser
version: ""
engine: WebKit
engine_version: "547.2"
family: ""
18 changes: 18 additions & 0 deletions Tests/fixtures/peripheral.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1414,3 +1414,21 @@
model: Projector
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 9; OrangePi_3_LTS) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36
os:
name: Android
version: "9"
platform: ""
client:
type: browser
name: Chrome
version: 116.0.0.0
engine: Blink
engine_version: 116.0.0.0
device:
type: peripheral
brand: Orange Pi
model: 3 LTS
os_family: Android
browser_family: Chrome
18 changes: 18 additions & 0 deletions Tests/fixtures/phablet-1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4766,3 +4766,21 @@
model: Galaxy W24 Flip
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; arm_64; Android 14; SM-F7210) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.6367.678 YaSearchBrowser/24.61.1 BroPP/1.0 YaSearchApp/24.61.1 webOmni SA/3 Mobile Safari/537.36
os:
name: Android
version: "14"
platform: ARM
client:
type: browser
name: Yandex Browser
version: 24.61.1
engine: Blink
engine_version: 124.0.6367.678
device:
type: phablet
brand: Samsung
model: Galaxy Z Flip 4
os_family: Android
browser_family: Unknown
Loading

0 comments on commit 125b643

Please sign in to comment.