Skip to content

Commit

Permalink
Improves detection for various devices (#7517)
Browse files Browse the repository at this point in the history
* Improves detection for Sunny devices
* Improves detection for Roku OS
* Adds detection for Roku Browser
* Improves detection for TCL devices
* Improves detection for DIJITSU devices
* Improves detection for LG devices
* Improves detection for ONVO devices
* Adds detection for simfer brand
* Improves detection for PROFiLO devices
* Improves detection for Panasonic devices
* Improves detection for Altus devices
* Improves detection for Beko devices
* Improves detection for Grundig devices
* Improves detection for JVC devices
* Adds detection for BAUHN brand
* Improves detection for MStar devices
* Improves detection for REGAL devices
* Improves detection for Fire OS
* Improves detection for Xiaomi devices
* Improves detection for Toshiba devices
* Improves detection for Grundig devices
* Improves detection for Amazon devices

ref #7513, ref #7514, ref #7515, ref #7516
  • Loading branch information
liviuconcioiu committed Nov 21, 2023
1 parent 3577abb commit 4d945ba
Show file tree
Hide file tree
Showing 9 changed files with 640 additions and 30 deletions.
3 changes: 2 additions & 1 deletion Parser/Client/Browser.php
Original file line number Diff line number Diff line change
Expand Up @@ -437,6 +437,7 @@ class Browser extends AbstractClientParser
'RE' => 'Realme Browser',
'RK' => 'Rekonq',
'RM' => 'RockMelt',
'RB' => 'Roku Browser',
'SB' => 'Samsung Browser',
'3L' => 'Samsung Browser Lite',
'SA' => 'Sailfish Browser',
Expand Down Expand Up @@ -599,7 +600,7 @@ class Browser extends AbstractClientParser
'HO', 'A5', 'X1', '18', 'B5', 'B6', 'TC', 'A6', '2X',
'F4', 'YG', 'WR', 'NA', 'DM', '1M', 'A7', 'XN', 'XT',
'XB', 'W1', 'HT', 'B8', 'F5', 'B9', 'WA', 'T0', 'HC',
'O6', 'P7', 'LJ', 'LC', 'O7', 'N2', 'A8', 'P8',
'O6', 'P7', 'LJ', 'LC', 'O7', 'N2', 'A8', 'P8', 'RB',
],
'Firefox' => [
'AX', 'BI', 'BF', 'BH', 'BN', 'C0', 'CU', 'EI', 'F1',
Expand Down
2 changes: 2 additions & 0 deletions Parser/Device/AbstractDeviceParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,7 @@ abstract class AbstractDeviceParser extends AbstractParser
'BN' => 'Barnes & Noble',
'BAR' => 'BARTEC',
'BAS' => 'BASE',
'BAU' => 'BAUHN',
'BB' => 'BBK',
'0B' => 'BB Mobile',
'B6' => 'BDF',
Expand Down Expand Up @@ -1363,6 +1364,7 @@ abstract class AbstractDeviceParser extends AbstractParser
'SJ' => 'Silent Circle',
'10' => 'Simbans',
'98' => 'Simply',
'SIM' => 'simfer',
'52' => 'Singtech',
'31' => 'Siragon',
'83' => 'Sirin Labs',
Expand Down
9 changes: 9 additions & 0 deletions Tests/Parser/Client/fixtures/browser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7630,3 +7630,12 @@
engine: Blink
engine_version: 114.0.5735.33
family:
-
user_agent: RokuBrowser/84.42.14 (TV-G000X-12.5.0.4176) Chrome/84.0.4147.38 HbbTV/1.6.1 (+DRM; SHARP; 50FJ2E; 12.5.0.4176-84.42.14; ; com.roku.G000X; )
client:
type: browser
name: Roku Browser
version: 84.42.14
engine: Blink
engine_version: 84.0.4147.38
family: Chrome
16 changes: 16 additions & 0 deletions Tests/Parser/fixtures/oss.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3974,3 +3974,19 @@
version: "17.2"
platform:
family: iOS
-
user_agent: RokuBrowser/84.42.14 (TV-G000X-12.5.0.4176) Chrome/84.0.4147.38 HbbTV/1.6.1 (+DRM; SHARP; 50FJ2E; 12.5.0.4176-84.42.14; ; com.roku.G000X; )
os:
name: Roku OS
short_name: ROK
version: 12.5.0.4176
platform:
family: GNU/Linux
-
user_agent: Mozilla/5.0 (Linux; Andr0id 9; AFTBOXE1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.5359.59 Safari/537.36 OPR/46.0.2207.0 OMI/4.23.2.73.AFTdev.465 HbbTV/1.5.1 (+DRM;Amazon;AFTBOXE1-TOSHIBA-65UF3D63DA;0024126536068;unknown;com.amazon.m7632;) smarttv_AFTBOXE1-TOSHIBA-65UF3D63DA_Build_0024126536068_Chromium_108.0.5359.59
os:
name: Fire OS
short_name: FIR
version: "7"
platform:
family: Android
Loading

0 comments on commit 4d945ba

Please sign in to comment.