Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Detect new brands: BYD, EGOTEK, GDL, VIVIBright, ZZB, Dykemann and Detect devices for exist brands #7781

Merged
merged 5 commits into from
Aug 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions Parser/Device/AbstractDeviceParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,7 @@ abstract class AbstractDeviceParser extends AbstractParser
'Y8' => 'Bubblegum',
'BMW' => 'BMW',
'BYY' => 'BYYBUO',
'BYD' => 'BYD',
'C9' => 'CAGI',
'CAD' => 'CADENA',
'CT' => 'Capitel',
Expand Down Expand Up @@ -478,6 +479,7 @@ abstract class AbstractDeviceParser extends AbstractParser
'DUU' => 'Duubee',
'DUR' => 'Durabook',
'DYO' => 'Dyon',
'DYM' => 'Dykemann',
'DTE' => 'D-Tech',
'DLI' => 'D-Link',
'ENO' => 'eNOVA',
Expand Down Expand Up @@ -505,6 +507,7 @@ abstract class AbstractDeviceParser extends AbstractParser
'EDE' => 'Edenwood',
'E6' => 'EE',
'GW' => 'EGL',
'EGO' => 'EGOTEK',
'EFT' => 'EFT',
'EK' => 'EKO',
'EY' => 'Einstein',
Expand Down Expand Up @@ -635,6 +638,7 @@ abstract class AbstractDeviceParser extends AbstractParser
'GFO' => 'Gfone',
'GTM' => 'GTMEDIA',
'GTX' => 'GTX',
'GDL' => 'GDL',
'0G' => 'GFive',
'GM' => 'Garmin-Asus',
'GA' => 'Gateway',
Expand Down Expand Up @@ -1810,6 +1814,7 @@ abstract class AbstractDeviceParser extends AbstractParser
'8V' => 'Viumee',
'V5' => 'Vivax',
'VIV' => 'VIVIMAGE',
'VI2' => 'VIVIBright',
'VV' => 'Vivo',
'6V' => 'VIWA',
'VII' => 'VIIPOO',
Expand Down Expand Up @@ -1954,6 +1959,7 @@ abstract class AbstractDeviceParser extends AbstractParser
'0Z' => 'Zatec',
'2Z' => 'Zaith',
'ZAM' => 'Zamolxe',
'ZZB' => 'ZZB',
'ZEA' => 'Zealot',
'PZ' => 'Zebra',
'ZE1' => 'Zeblaze',
Expand Down
18 changes: 18 additions & 0 deletions Tests/fixtures/car_browser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1025,3 +1025,21 @@
model: tb8163p3 bsp
os_family: Android
browser_family: Unknown
-
user_agent: Mozilla/5.0 (Linux; U; Android 12; en-us; DiLink5.0 For BYD AUTO Build/SKQ1.230128.001) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/109.0.5414.86 MQQBrowser/13.1 Mobile Safari/537.36 COVC/047113
os:
name: Android
version: "12"
platform: ""
client:
type: browser
name: QQ Browser
version: "13.1"
engine: Blink
engine_version: 109.0.5414.86
device:
type: car browser
brand: BYD
model: CarPad
os_family: Android
browser_family: Unknown
72 changes: 72 additions & 0 deletions Tests/fixtures/phablet-1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4892,3 +4892,75 @@
model: Galaxy Z Flip 3
os_family: Android
browser_family: Unknown
-
user_agent: Mozilla/5.0 (Linux; Android 14; XIG05) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Mobile Safari/537.36
os:
name: Android
version: "14"
platform: ""
client:
type: browser
name: Chrome Mobile
version: 127.0.0.0
engine: Blink
engine_version: 127.0.0.0
device:
type: phablet
brand: Xiaomi
model: Redmi Note 13 Pro 5G
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; arm_64; Android 14; SM-F741W) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.6367.26 YaBrowser/24.6.6.26.00 SA/3 Mobile Safari/537.36
os:
name: Android
version: "14"
platform: ARM
client:
type: browser
name: Yandex Browser
version: 24.6.6.26.00
engine: Blink
engine_version: 124.0.6367.26
device:
type: phablet
brand: Samsung
model: Galaxy Z Flip 6
os_family: Android
browser_family: Unknown
-
user_agent: Mozilla/5.0 (Linux; Android 14; SM-F741B) AppleWebKit/537.36 (KHTML, like Gecko) SamsungBrowser/25.0 Chrome/121.0.0.0 Mobile Safari/537.36
os:
name: Android
version: "14"
platform: ""
client:
type: browser
name: Samsung Browser
version: "25.0"
engine: Blink
engine_version: 121.0.0.0
device:
type: phablet
brand: Samsung
model: Galaxy Z Flip 6
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 14; Infinix X6850B Build/UP1A.231005.007; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/127.0.6533.64 Mobile Safari/537.36
os:
name: Android
version: "14"
platform: ""
client:
type: browser
name: Chrome Webview
version: 127.0.6533.64
engine: Blink
engine_version: 127.0.6533.64
device:
type: phablet
brand: Infinix
model: Note 40S
os_family: Android
browser_family: Chrome
Loading
Loading