Skip to content

Commit

Permalink
Detect new brand: HAVIT and Detect devices for exist brands (#7989)
Browse files Browse the repository at this point in the history
feat(device) detect brand OSCAL: Tiger 13
feat(device) detect brand Huawei: Honor Magic 7 Pro (PTP-AN70)
feat(device) detect brand Cricket: Magic 2 5G (U655AC)
feat(device) detect brand Ulefone: Armor Pad Pro
feat(device) detect brand Symphony: SymTab 20
feat(device) detect brand Lenovo: Tab Plus (TB351FU), Legion Y700 (TB321FU)
feat(device) detect brand Asano: 40LF7010T 40.0"
feat(device) detect new brand HAVIT: PJ209 Pro
feat(device) detect brand Samsung: Galaxy Xcover 7 (SM-G556B)
feat(device) detect brand OPPO: A60 (CPH3669)
feat(device) detect brand Vivo: iQOO Neo 10 (V2425A)
feat(device) detect brand POCO: X7 Pro (2412DPC0AG)
feat(device) detect brand IconBIT: Movie 2100 (XLR3089)
feat(device) detect brand Tecno Mobile: MegaPad 11 (TECNO T1101)
feat(device) detect brand Huawei: MatePad Pro 12.2" (2024) WiFi (MRO-W09)
  • Loading branch information
sanchezzzhak authored Feb 6, 2025
1 parent c543321 commit cd2846d
Show file tree
Hide file tree
Showing 6 changed files with 352 additions and 15 deletions.
1 change: 1 addition & 0 deletions Parser/Device/AbstractDeviceParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -768,6 +768,7 @@ abstract class AbstractDeviceParser extends AbstractParser
'8H' => 'Hamlet',
'HAM' => 'Hammer',
'HAT' => 'Hathway',
'HAV' => 'HAVIT',
'HEM' => 'Hemilton',
'H6' => 'Helio',
'HQ' => 'HERO',
Expand Down
18 changes: 18 additions & 0 deletions Tests/fixtures/peripheral.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1702,3 +1702,21 @@
model: Horizon Pro
os_family: Android
browser_family: Unknown
-
user_agent: Mozilla/5.0 (Linux; Android 9; HAVIT PJ209 PRO) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.101 Safari/537.36
os:
name: Android
version: "9"
platform: ""
client:
type: browser
name: Chrome
version: 87.0.4280.101
engine: Blink
engine_version: 87.0.4280.101
device:
type: peripheral
brand: HAVIT
model: PJ209 Pro
os_family: Android
browser_family: Chrome
126 changes: 126 additions & 0 deletions Tests/fixtures/smartphone-40.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8930,3 +8930,129 @@
model: Pixel 9
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; arm_64; Android 14; TIGER 13) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.6613.74 YaSearchBrowser/24.106.1 BroPP/1.0 YaSearchApp/24.106.1 webOmni SA/3 Mobile Safari/537.36
os:
name: Android
version: "14"
platform: ARM
client:
type: browser
name: Yandex Browser
version: 24.106.1
engine: Blink
engine_version: 128.0.6613.74
device:
type: smartphone
brand: OSCAL
model: Tiger 13
os_family: Android
browser_family: Unknown
-
user_agent: Mozilla/5.0 (Linux; arm_64; Android 15; PTP-AN70) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.6613.33 YaBrowser/24.10.6.33.00 SA/3 Mobile Safari/537.36
os:
name: Android
version: "15"
platform: ARM
client:
type: browser
name: Yandex Browser
version: 24.10.6.33.00
engine: Blink
engine_version: 128.0.6613.33
device:
type: smartphone
brand: Huawei
model: Honor Magic 7 Pro
os_family: Android
browser_family: Unknown
-
user_agent: Mozilla/5.0 (Linux; arm_64; Android 14; U655AC) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.6613.50 YaBrowser/24.10.5.50.00 SA/3 Mobile Safari/537.36
os:
name: Android
version: "14"
platform: ARM
client:
type: browser
name: Yandex Browser
version: 24.10.5.50.00
engine: Blink
engine_version: 128.0.6613.50
device:
type: smartphone
brand: Cricket
model: Magic 2 5G
os_family: Android
browser_family: Unknown
-
user_agent: Mozilla/5.0 (Linux; Android 14; SM-G556B) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Mobile Safari/537.36
os:
name: Android
version: "14"
platform: ""
client:
type: browser
name: Chrome Mobile
version: 131.0.0.0
engine: Blink
engine_version: 131.0.0.0
device:
type: smartphone
brand: Samsung
model: Galaxy Xcover 7
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 14; CPH3669 Build/UP1A.231005.007; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/132.0.6834.163 Mobile Safari/537.36
os:
name: Android
version: "14"
platform: ""
client:
type: browser
name: Chrome Webview
version: 132.0.6834.163
engine: Blink
engine_version: 132.0.6834.163
device:
type: smartphone
brand: OPPO
model: A60
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; arm_64; Android 15; V2425A) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.6723.797 YaApp_Android/24.123.1 YaSearchBrowser/24.123.1 BroPP/1.0 SA/3 Mobile Safari/537.36
os:
name: Android
version: "15"
platform: ARM
client:
type: browser
name: Yandex Browser
version: 24.123.1
engine: Blink
engine_version: 130.0.6723.797
device:
type: smartphone
brand: Vivo
model: iQOO Neo 10
os_family: Android
browser_family: Unknown
-
user_agent: Mozilla/5.0 (Linux; Android 15; 2412DPC0AG) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Mobile Safari/537.36
os:
name: Android
version: "15"
platform: ""
client:
type: browser
name: Chrome Mobile
version: 132.0.0.0
engine: Blink
engine_version: 132.0.0.0
device:
type: smartphone
brand: POCO
model: X7 Pro
os_family: Android
browser_family: Chrome
126 changes: 126 additions & 0 deletions Tests/fixtures/tablet-12.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1529,3 +1529,129 @@
model: A133P
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 13; Armor Pad Pro) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Mobile Safari/537.36
os:
name: Android
version: "13"
platform: ""
client:
type: browser
name: Chrome Mobile
version: 131.0.0.0
engine: Blink
engine_version: 131.0.0.0
device:
type: tablet
brand: Ulefone
model: Armor Pad Pro
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 4.4.2; Symtab20) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.99 Safari/537.36
os:
name: Android
version: 4.4.2
platform: ""
client:
type: browser
name: Chrome
version: 71.0.3578.99
engine: Blink
engine_version: 71.0.3578.99
device:
type: tablet
brand: Symphony
model: SymTab 20
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; arm_64; Android 14; TB351FU) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.6613.33 YaBrowser/24.10.6.33.01 Safari/537.36
os:
name: Android
version: "14"
platform: ARM
client:
type: browser
name: Yandex Browser
version: 24.10.6.33.01
engine: Blink
engine_version: 128.0.6613.33
device:
type: tablet
brand: Lenovo
model: Tab Plus
os_family: Android
browser_family: Unknown
-
user_agent: Mozilla/5.0 (Linux; arm_64; Android 14; TB321FU) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.6723.279 YaBrowser/24.12.0.279.01 Safari/537.36
os:
name: Android
version: "14"
platform: ARM
client:
type: browser
name: Yandex Browser
version: 24.12.0.279.01
engine: Blink
engine_version: 130.0.6723.279
device:
type: tablet
brand: Lenovo
model: Legion Y700
os_family: Android
browser_family: Unknown
-
user_agent: Mozilla/5.0 (Linux; arm_64; Android 12; MRO-W09) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.6613.53 YaBrowser/24.10.5.53.01 Safari/537.36
os:
name: Android
version: "12"
platform: ARM
client:
type: browser
name: Yandex Browser
version: 24.10.5.53.01
engine: Blink
engine_version: 128.0.6613.53
device:
type: tablet
brand: Huawei
model: MatePad Pro 12.2" (2024) WiFi
os_family: Android
browser_family: Unknown
-
user_agent: Mozilla/5.0 (Linux; Android 14; TECNO T1101 Build/UP1A.231005.007; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/131.0.6778.201 Safari/537.36 YandexSearch/7.54/apad YandexSearchBrowser/7.54
os:
name: Android
version: "14"
platform: ""
client:
type: browser
name: Yandex Browser
version: "7.54"
engine: Blink
engine_version: 131.0.6778.201
device:
type: tablet
brand: Tecno Mobile
model: MegaPad 11
os_family: Android
browser_family: Unknown
-
user_agent: Mozilla/5.0 (Linux; Android 7.1.1; SM-P555M) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.72 Mobile Safari/537.36
os:
name: Android
version: 7.1.1
platform: ""
client:
type: browser
name: Chrome Mobile
version: 90.0.4430.72
engine: Blink
engine_version: 90.0.4430.72
device:
type: tablet
brand: Samsung
model: Galaxy Tab A 9.7" LTE
os_family: Android
browser_family: Chrome
36 changes: 36 additions & 0 deletions Tests/fixtures/tv-4.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7338,3 +7338,39 @@
model: Smart TV (2017)
os_family: GNU/Linux
browser_family: Opera
-
user_agent: Mozilla/5.0 (Linux; Android 9; 40LF7010T Build/PPR2.180905.006.A1; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/66.0.3359.158 Safari/537.36
os:
name: Android
version: "9"
platform: ""
client:
type: browser
name: Chrome Webview
version: 66.0.3359.158
engine: Blink
engine_version: 66.0.3359.158
device:
type: tv
brand: Asano
model: 40LF7010T 40.0"
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 12; iconBIT XLR3089) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36
os:
name: Android
version: "12"
platform: ""
client:
type: browser
name: Chrome
version: 131.0.0.0
engine: Blink
engine_version: 131.0.0.0
device:
type: tv
brand: IconBIT
model: Movie 2100
os_family: Android
browser_family: Chrome
Loading

0 comments on commit cd2846d

Please sign in to comment.