From 902adab6cfb974ad945e44a47f28df0dc06ec6d7 Mon Sep 17 00:00:00 2001 From: Liviu-Mihail Concioiu Date: Sun, 22 Dec 2024 10:07:55 +0100 Subject: [PATCH] Adds detection for CommScope brand ref #7882 --- Parser/Device/AbstractDeviceParser.php | 1 + Tests/fixtures/tv-4.yml | 18 ++++++++++++++++++ regexes/device/mobiles.yml | 6 ++++++ 3 files changed, 25 insertions(+) diff --git a/Parser/Device/AbstractDeviceParser.php b/Parser/Device/AbstractDeviceParser.php index 0a62a0d4be..650c4ac579 100644 --- a/Parser/Device/AbstractDeviceParser.php +++ b/Parser/Device/AbstractDeviceParser.php @@ -376,6 +376,7 @@ abstract class AbstractDeviceParser extends AbstractParser 'CY' => 'Coby Kyros', 'XC' => 'Cobalt', 'C6' => 'Comio', + 'COM' => 'CommScope', 'CL' => 'Compal', 'CQ' => 'Compaq', 'C7' => 'ComTrade Tesla', diff --git a/Tests/fixtures/tv-4.yml b/Tests/fixtures/tv-4.yml index 2afa6ada02..9d8f6d8ebb 100644 --- a/Tests/fixtures/tv-4.yml +++ b/Tests/fixtures/tv-4.yml @@ -7104,3 +7104,21 @@ model: AS516 os_family: Android browser_family: Chrome +- + user_agent: Mozilla/5.0 (Linux; Android 11; VIP7802 Build/RTT4.230821.001; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/130.0.6723.58 Mobile Safari/537.36 + os: + name: Android + version: "11" + platform: "" + client: + type: browser + name: Chrome Webview + version: 130.0.6723.58 + engine: Blink + engine_version: 130.0.6723.58 + device: + type: tv + brand: CommScope + model: VIP7802 + os_family: Android + browser_family: Chrome diff --git a/regexes/device/mobiles.yml b/regexes/device/mobiles.yml index 72994a4c9c..856f4d1f8d 100644 --- a/regexes/device/mobiles.yml +++ b/regexes/device/mobiles.yml @@ -6256,6 +6256,12 @@ Comio: - regex: 'Comio[ _-]?([^;/)]+)(?: Build|[);])' model: '$1' +# CommScope (https://www.commscope.com/) +CommScope: + regex: 'VIP7802(?:[);/ ]|$)' + device: 'tv' + model: 'VIP7802' + # Compal Compal: regex: 'Compal-[a-z0-9]+'