Skip to content

Commit

Permalink
Detect new brands: hoco, LUO and Detect devices for exist brands (#7962)
Browse files Browse the repository at this point in the history
* feat(device) detect new brand LUO: V78 (LU-V78)
feat(device) detect brand Xiaomi: Redmi Note 14 5G (24094RAD4C), Redmi 14C (2409BRN2CL)
feat(device) detect brand Huawei: Honor Magic 7 (PTP-AN60), Honor X60 Pro (BRP-AN00)
feat(device) detect brand HTC: Tattoo A3288
feat(device) detect brand Vivo: Y28 (V2433)
feat(device) detect brand Realme: P2 Pro 5G (RMX3987)
feat(device) detect brand Stylo: Swift 4G
feat(device) detect brand W&O: WO Pad Pro, WO10, WO12

* feat(device) detect new brand hoco: HI10
feat(device) detect brand Hotwav: Note 12 EF
feat(device) detect brand Nothing: Phone 2a Plus (A142P)
feat(device) detect brand AGM: H Max
feat(device) detect brand HMD: Skyline
feat(device) detect brand iTel: P65 (P671LN), Vista Tab 30 (P10003L)
feat(device) detect brand Doogee: S200 X, S200
feat(device) detect brand Blackview: Shark 9
feat(device) detect brand TOSCIDO: T181

* fix: Doogee S200
  • Loading branch information
sanchezzzhak authored Dec 27, 2024
1 parent 3669d0c commit cc8fa0c
Show file tree
Hide file tree
Showing 7 changed files with 564 additions and 20 deletions.
2 changes: 2 additions & 0 deletions Parser/Device/AbstractDeviceParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -795,6 +795,7 @@ abstract class AbstractDeviceParser extends AbstractParser
'HMD' => 'HMD',
'8W' => 'HKPro',
'HOF' => 'HOFER',
'HOC' => 'hoco',
'H1' => 'Hoffmann',
'HOM' => 'Homatics',
'H0' => 'Hometech',
Expand Down Expand Up @@ -1070,6 +1071,7 @@ abstract class AbstractDeviceParser extends AbstractParser
'LU' => 'Lumus',
'LUM' => 'Lumitel',
'L9' => 'Luna',
'LUO' => 'LUO',
'LR' => 'Luxor',
'LY' => 'LYF',
'LL' => 'Leader Phone',
Expand Down
36 changes: 36 additions & 0 deletions Tests/fixtures/phablet-1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5598,3 +5598,39 @@
model: Mate XT Ultimate Design
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; U; Android 14; zh-cn; 24094RAD4C Build/UP1A.231005.007) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.6261.119 Mobile Safari/537.36 XiaoMi/MiuiBrowser/18.7.921118
os:
name: Android
version: "14"
platform: ""
client:
type: browser
name: Mi Browser
version: 18.7.921118
engine: Blink
engine_version: 122.0.6261.119
device:
type: phablet
brand: Xiaomi
model: Redmi Note 14 5G
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; arm_64; Android 14; Note 12 EF) 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: "14"
platform: ARM
client:
type: browser
name: Yandex Browser
version: 24.10.6.33.00
engine: Blink
engine_version: 128.0.6613.33
device:
type: phablet
brand: Hotwav
model: Note 12 EF
os_family: Android
browser_family: Unknown
18 changes: 18 additions & 0 deletions Tests/fixtures/smartphone-1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9620,3 +9620,21 @@
model: EK-6020
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; U; Android 1.6; en-us; HTC_TATTOO_A3288 Build/DRC79) AppleWebKit/528.5 (KHTML, like Gecko) Version/3.1.2 Mobile Safari/525.20.1
os:
name: Android
version: "1.6"
platform: ""
client:
type: browser
name: Android Browser
version: ""
engine: WebKit
engine_version: "528.5"
device:
type: smartphone
brand: HTC
model: Tattoo A3288
os_family: Android
browser_family: Android Browser
252 changes: 252 additions & 0 deletions Tests/fixtures/smartphone-41.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4280,3 +4280,255 @@
model: Premier 5 Max
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; U; Android 15; zh-CN; PTP-AN60 Build/HONORPTP-AN60) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/100.0.4896.58 UCBrowser/17.2.1.1352 Mobile Safari/537.36
os:
name: Android
version: "15"
platform: ""
client:
type: browser
name: UC Browser
version: 17.2.1.1352
engine: Blink
engine_version: 100.0.4896.58
device:
type: smartphone
brand: Huawei
model: Honor Magic 7
os_family: Android
browser_family: Unknown
-
user_agent: Mozilla/5.0 (Linux; U; Android 14; zh-CN; MZ-MEIZU 20 Pro Build/MRA58K) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/73.0.3683.121 MZBrowser/11.0.11 Mobile Safari/537.36
os:
name: Android
version: "14"
platform: ""
client:
type: browser
name: Meizu Browser
version: 11.0.11
engine: Blink
engine_version: 73.0.3683.121
device:
type: smartphone
brand: Meizu
model: 20 Pro
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; U; Android 14; en-US; V2433 Build/UP1A.231005.007_MOD2) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/126.0.6478.71 UCBrowser/12.12.10.1228 Mobile Safari/537.36
os:
name: Android
version: "14"
platform: ""
client:
type: browser
name: UC Browser
version: 12.12.10.1228
engine: Blink
engine_version: 126.0.6478.71
device:
type: smartphone
brand: Vivo
model: Y28
os_family: Android
browser_family: Unknown
-
user_agent: Mozilla/5.0 (Linux; U; Android 14; en-US; RMX3987 Build/UKQ1.231108.001) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/78.0.3904.108 UCBrowser/13.4.0.1306 Mobile Safari/537.36
os:
name: Android
version: "14"
platform: ""
client:
type: browser
name: UC Browser
version: 13.4.0.1306
engine: Blink
engine_version: 78.0.3904.108
device:
type: smartphone
brand: Realme
model: P2 Pro 5G
os_family: Android
browser_family: Unknown
-
user_agent: Mozilla/5.0 (Linux; U; Android 13; en-za; SWIFT_4G Build/TP1A.220624.014) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.6723.60 Mobile Safari/537.36 PHX/16.3
os:
name: Android
version: "13"
platform: ""
client:
type: browser
name: Phoenix Browser
version: "16.3"
engine: Blink
engine_version: 130.0.6723.60
device:
type: smartphone
brand: Stylo
model: Swift 4G
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 14; 2409BRN2CL Build/UP1A.231005.007) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/130.0.6723.108 Mobile Safari/537.36
os:
name: Android
version: "14"
platform: ""
client:
type: browser
name: Chrome Webview
version: 130.0.6723.108
engine: Blink
engine_version: 130.0.6723.108
device:
type: smartphone
brand: Xiaomi
model: Redmi 14C
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 14; BRP-AN00) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Mobile Safari/537.36
os:
name: Android
version: "14"
platform: ""
client:
type: browser
name: Chrome Mobile
version: 107.0.0.0
engine: Blink
engine_version: 107.0.0.0
device:
type: smartphone
brand: Huawei
model: Honor X60 Pro
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 14; A142P Build/UP1A.231005.007) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.6723.107 Mobile Safari/537.36 OPX/2.6
os:
name: Android
version: "14"
platform: ""
client:
type: browser
name: Opera GX
version: "2.6"
engine: Blink
engine_version: 130.0.6723.107
device:
type: smartphone
brand: Nothing
model: Phone 2a Plus
os_family: Android
browser_family: Opera
-
user_agent: Mozilla/5.0 (Linux; arm_64; Android 14; AGM_H_MAX) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.6613.551 YaApp_Android/24.101.1 YaSearchBrowser/24.101.1 BroPP/1.0 SA/3 Mobile Safari/537.36
os:
name: Android
version: "14"
platform: ARM
client:
type: browser
name: Yandex Browser
version: 24.101.1
engine: Blink
engine_version: 128.0.6613.551
device:
type: smartphone
brand: AGM
model: H Max
os_family: Android
browser_family: Unknown
-
user_agent: Mozilla/5.0 (Linux; arm_64; Android 14; itel P671LN) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.6723.279 YaBrowser/24.12.0.279.00 SA/3 Mobile Safari/537.36
os:
name: Android
version: "14"
platform: ARM
client:
type: browser
name: Yandex Browser
version: 24.12.0.279.00
engine: Blink
engine_version: 130.0.6723.279
device:
type: smartphone
brand: iTel
model: P65
os_family: Android
browser_family: Unknown
-
user_agent: Mozilla/5.0 (Linux; arm_64; Android 14; HMD Skyline) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.6723.1804 YaApp_Android/24.120.1 YaSearchBrowser/24.120.1 BroPP/1.0 SA/3 Mobile Safari/537.36
os:
name: Android
version: "14"
platform: ARM
client:
type: browser
name: Yandex Browser
version: 24.120.1
engine: Blink
engine_version: 130.0.6723.1804
device:
type: smartphone
brand: HMD
model: Skyline
os_family: Android
browser_family: Unknown
-
user_agent: Mozilla/5.0 (Linux; arm_64; Android 14; S200 X) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.6613.67 YaSearchBrowser/24.106 BroPP/1.0 YaSearchApp/24.106 webOmni SA/3 Mobile Safari/537.36
os:
name: Android
version: "14"
platform: ARM
client:
type: browser
name: Yandex Browser
version: "24.106"
engine: Blink
engine_version: 128.0.6613.67
device:
type: smartphone
brand: Doogee
model: S200 X
os_family: Android
browser_family: Unknown
-
user_agent: Mozilla/5.0 (Linux; arm_64; Android 14; S200) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.6613.106 YaBrowser/24.10.4.106.00 SA/3 Mobile Safari/537.36
os:
name: Android
version: "14"
platform: ARM
client:
type: browser
name: Yandex Browser
version: 24.10.4.106.00
engine: Blink
engine_version: 128.0.6613.106
device:
type: smartphone
brand: Doogee
model: S200
os_family: Android
browser_family: Unknown
-
user_agent: Mozilla/5.0 (Linux; arm_64; Android 14; SHARK 9) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.6723.282 YaBrowser/24.12.0.282.00 SA/3 Mobile Safari/537.36
os:
name: Android
version: "14"
platform: ARM
client:
type: browser
name: Yandex Browser
version: 24.12.0.282.00
engine: Blink
engine_version: 130.0.6723.282
device:
type: smartphone
brand: Blackview
model: Shark 9
os_family: Android
browser_family: Unknown
Loading

0 comments on commit cc8fa0c

Please sign in to comment.