Skip to content

Commit

Permalink
Adds detection for CommScope brand
Browse files Browse the repository at this point in the history
  • Loading branch information
liviuconcioiu committed Dec 22, 2024
1 parent 6f5955a commit 902adab
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 0 deletions.
1 change: 1 addition & 0 deletions Parser/Device/AbstractDeviceParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
18 changes: 18 additions & 0 deletions Tests/fixtures/tv-4.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
6 changes: 6 additions & 0 deletions regexes/device/mobiles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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]+'
Expand Down

0 comments on commit 902adab

Please sign in to comment.