Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Detect new brands: TYD, HMD, VALE and Detect devices for exist brands #7716

Merged
merged 3 commits into from
Jun 21, 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
3 changes: 3 additions & 0 deletions Parser/Device/AbstractDeviceParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -735,6 +735,7 @@ abstract class AbstractDeviceParser extends AbstractParser
'8X' => 'Hi Nova',
'HLL' => 'HLLO',
'HKC' => 'HKC',
'HMD' => 'HMD',
'8W' => 'HKPro',
'HOF' => 'HOFER',
'H1' => 'Hoffmann',
Expand Down Expand Up @@ -1649,6 +1650,7 @@ abstract class AbstractDeviceParser extends AbstractParser
'T1' => 'Tolino',
'0T' => 'Tone',
'TY' => 'Tooky',
'TYD' => 'TYD',
'TOO' => 'TOOGO',
'T9' => 'Top House',
'DK' => 'Topelotek',
Expand Down Expand Up @@ -1730,6 +1732,7 @@ abstract class AbstractDeviceParser extends AbstractParser
'VP' => 'Vargo',
'VC' => 'Vankyo',
'VAL' => 'VALEM',
'VA2' => 'VALE',
'VAT' => 'VALTECH',
'VAN' => 'VANGUARD',
'VAW' => 'VANWIN',
Expand Down
90 changes: 90 additions & 0 deletions Tests/fixtures/phablet-1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4606,3 +4606,93 @@
model: Redmi Note 12R Pro
os_family: Android
browser_family: Android Browser
-
user_agent: Mozilla/5.0 (Linux; Android 14; Infinix X6851) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Mobile Safari/537.36
os:
name: Android
version: "14"
platform: ""
client:
type: browser
name: Chrome Mobile
version: 125.0.0.0
engine: Blink
engine_version: 125.0.0.0
device:
type: phablet
brand: Infinix
model: Note 40 Pro 5G
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 14; Infinix X6851B Build/UP1A.231005.007; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/125.0.6422.148 YaBrowser/22.8.1.94 (lite) Mobile Safari/537.36
os:
name: Android
version: "14"
platform: ""
client:
type: browser
name: Yandex Browser Lite
version: 22.8.1.94
engine: Blink
engine_version: 125.0.6422.148
device:
type: phablet
brand: Infinix
model: Note 40 Pro+ 5G
os_family: Android
browser_family: Unknown
-
user_agent: Mozilla/5.0 (Linux; arm_64; Android 14; SM-F946N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.6261.39 YaBrowser/24.4.7.39.00 SA/3 Mobile Safari/537.36
os:
name: Android
version: "14"
platform: ARM
client:
type: browser
name: Yandex Browser
version: 24.4.7.39.00
engine: Blink
engine_version: 122.0.6261.39
device:
type: phablet
brand: Samsung
model: Galaxy Z Fold 5
os_family: Android
browser_family: Unknown
-
user_agent: Mozilla/5.0 (Linux; arm_64; Android 14; SM-F9460) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.6261.39 YaBrowser/24.4.7.39.00 SA/3 Mobile Safari/537.36
os:
name: Android
version: "14"
platform: ARM
client:
type: browser
name: Yandex Browser
version: 24.4.7.39.00
engine: Blink
engine_version: 122.0.6261.39
device:
type: phablet
brand: Samsung
model: Galaxy Z Fold 5
os_family: Android
browser_family: Unknown
-
user_agent: Mozilla/5.0 (Linux; arm_64; Android 12; SM-N976N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.6261.71 YaSearchBrowser/24.47.1 BroPP/1.0 YaSearchApp/24.47.1 webOmni SA/3 Mobile Safari/537.36
os:
name: Android
version: "12"
platform: ARM
client:
type: browser
name: Yandex Browser
version: 24.47.1
engine: Blink
engine_version: 122.0.6261.71
device:
type: phablet
brand: Samsung
model: Galaxy Note 10+
os_family: Android
browser_family: Unknown
Loading
Loading