From db4d12274f1905f0230aee5b79067b12f80654fe Mon Sep 17 00:00:00 2001 From: Alexsandr Tutik Date: Fri, 20 Dec 2024 13:55:24 +0300 Subject: [PATCH] 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 --- Parser/Device/AbstractDeviceParser.php | 1 + Tests/fixtures/phablet-1.yml | 18 ++++ Tests/fixtures/smartphone-41.yml | 126 +++++++++++++++++++++++++ Tests/fixtures/tablet-12.yml | 54 +++++++++++ regexes/device/mobiles.yml | 38 ++++++-- 5 files changed, 227 insertions(+), 10 deletions(-) diff --git a/Parser/Device/AbstractDeviceParser.php b/Parser/Device/AbstractDeviceParser.php index 49252c64d9..b213063679 100644 --- a/Parser/Device/AbstractDeviceParser.php +++ b/Parser/Device/AbstractDeviceParser.php @@ -790,6 +790,7 @@ abstract class AbstractDeviceParser extends AbstractParser 'HMD' => 'HMD', '8W' => 'HKPro', 'HOF' => 'HOFER', + 'HOC' => 'hoco', 'H1' => 'Hoffmann', 'HOM' => 'Homatics', 'H0' => 'Hometech', diff --git a/Tests/fixtures/phablet-1.yml b/Tests/fixtures/phablet-1.yml index 602ad7b274..4500a78de3 100644 --- a/Tests/fixtures/phablet-1.yml +++ b/Tests/fixtures/phablet-1.yml @@ -5616,3 +5616,21 @@ 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 diff --git a/Tests/fixtures/smartphone-41.yml b/Tests/fixtures/smartphone-41.yml index fc34faf057..f3f7339471 100644 --- a/Tests/fixtures/smartphone-41.yml +++ b/Tests/fixtures/smartphone-41.yml @@ -4406,3 +4406,129 @@ 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 diff --git a/Tests/fixtures/tablet-12.yml b/Tests/fixtures/tablet-12.yml index 72ca5dd3da..9a6b89008e 100644 --- a/Tests/fixtures/tablet-12.yml +++ b/Tests/fixtures/tablet-12.yml @@ -1313,3 +1313,57 @@ model: WO12 os_family: Android browser_family: Unknown +- + user_agent: Mozilla/5.0 (Linux; arm_64; Android 14.0; T181-EEA) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.6723.264 YaBrowser/24.12.0.264.01 (beta) Safari/537.36 + os: + name: Android + version: "14.0" + platform: ARM + client: + type: browser + name: Yandex Browser + version: 24.12.0.264.01 beta + engine: Blink + engine_version: 130.0.6723.264 + device: + type: tablet + brand: TOSCIDO + model: T181 + os_family: Android + browser_family: Unknown +- + user_agent: Mozilla/5.0 (Linux; arm_64; Android 14; itel P10003L) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.6613.36 YaBrowser/24.10.6.36.01 Safari/537.36 + os: + name: Android + version: "14" + platform: ARM + client: + type: browser + name: Yandex Browser + version: 24.10.6.36.01 + engine: Blink + engine_version: 128.0.6613.36 + device: + type: tablet + brand: iTel + model: Vista Tab 30 + os_family: Android + browser_family: Unknown +- + user_agent: Mozilla/5.0 (Linux; arm_64; Android 14; hoco_HI10) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.6613.67 YaSearchBrowser/24.106/apad BroPP/1.0 YaSearchApp/24.106/apad 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: tablet + brand: hoco + model: HI10 + os_family: Android + browser_family: Unknown diff --git a/regexes/device/mobiles.yml b/regexes/device/mobiles.yml index 2203b225c3..c40bb5cdb7 100644 --- a/regexes/device/mobiles.yml +++ b/regexes/device/mobiles.yml @@ -2318,6 +2318,8 @@ AGM: model: '$1' - regex: 'AGM A9(?:[);/ ]|$)' model: 'A9' + - regex: 'AGM_H_MAX' + model: 'H Max' - regex: 'AGM_H3(?:[);/ ]|$)' model: 'H3' - regex: 'AGM_H5_PRO(?:[);/ ]|$)' @@ -4226,7 +4228,7 @@ Bluegood: # Blackview Blackview: - regex: 'Blackview|(BL8[08]00|BV([24-9]000|8[18]00|[468]900|(5[1589]|9[135689])00|6[12368]00|7100)(?:[ _](?:PRO))?|(?