Skip to content

Commit

Permalink
feat(device) detect new brand LUO: V78 (LU-V78)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
sanchezzzhak committed Dec 20, 2024
1 parent ea5a7bb commit 490ceb8
Show file tree
Hide file tree
Showing 7 changed files with 264 additions and 9 deletions.
1 change: 1 addition & 0 deletions Parser/Device/AbstractDeviceParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -1065,6 +1065,7 @@ abstract class AbstractDeviceParser extends AbstractParser
'LU' => 'Lumus',
'LUM' => 'Lumitel',
'L9' => 'Luna',
'LUO' => 'LUO',
'LR' => 'Luxor',
'LY' => 'LYF',
'LL' => 'Leader Phone',
Expand Down
18 changes: 18 additions & 0 deletions Tests/fixtures/phablet-1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5598,3 +5598,21 @@
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
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
126 changes: 126 additions & 0 deletions Tests/fixtures/smartphone-41.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4280,3 +4280,129 @@
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
54 changes: 54 additions & 0 deletions Tests/fixtures/tablet-12.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1259,3 +1259,57 @@
model: Note Air 4C
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; arm; Android 9; WO Pad Pro) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.6723.1742 YaApp_Android/24.120 YaSearchBrowser/24.120 BroPP/1.0 SA/3 Mobile Safari/537.36
os:
name: Android
version: "9"
platform: ARM
client:
type: browser
name: Yandex Browser
version: "24.120"
engine: Blink
engine_version: 130.0.6723.1742
device:
type: tablet
brand: 'W&O'
model: WO Pad Pro
os_family: Android
browser_family: Unknown
-
user_agent: Mozilla/5.0 (Linux; arm; Android 9; WO 10) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.6613.67 YaSearchBrowser/24.106.1 BroPP/1.0 YaSearchApp/24.106.1 webOmni SA/3 Mobile Safari/537.36
os:
name: Android
version: "9"
platform: ARM
client:
type: browser
name: Yandex Browser
version: 24.106.1
engine: Blink
engine_version: 128.0.6613.67
device:
type: tablet
brand: 'W&O'
model: WO10
os_family: Android
browser_family: Unknown
-
user_agent: Mozilla/5.0 (Linux; arm; Android 9; WO 12) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.6613.67 YaSearchBrowser/24.106.1 BroPP/1.0 YaSearchApp/24.106.1 webOmni SA/3 Mobile Safari/537.36
os:
name: Android
version: "9"
platform: ARM
client:
type: browser
name: Yandex Browser
version: 24.106.1
engine: Blink
engine_version: 128.0.6613.67
device:
type: tablet
brand: 'W&O'
model: WO12
os_family: Android
browser_family: Unknown
18 changes: 18 additions & 0 deletions Tests/fixtures/tv-4.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6996,3 +6996,21 @@
model: 24HEY1
os_family: Android
browser_family: Unknown
-
user_agent: Mozilla/5.0 (Linux; Android 11.1; LU-V78) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.121 Safari/537.36
os:
name: Android
version: "11.1"
platform: ""
client:
type: browser
name: Chrome
version: 72.0.3626.121
engine: Blink
engine_version: 72.0.3626.121
device:
type: tv
brand: LUO
model: V78
os_family: Android
browser_family: Chrome
Loading

0 comments on commit 490ceb8

Please sign in to comment.