Skip to content
This repository has been archived by the owner on Oct 26, 2022. It is now read-only.

Commit

Permalink
Improve Tizen classification
Browse files Browse the repository at this point in the history
  • Loading branch information
nielsbasjes committed Feb 22, 2021
1 parent f1ca2c9 commit 5e10d4a
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 8 deletions.
4 changes: 2 additions & 2 deletions analyzer/src/main/resources/UserAgents/BitWalker-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5584,8 +5584,8 @@ config:
user_agent_string: 'Mozilla/5.0 (Linux; U; Tizen 2.0; en-us) AppleWebKit/537.1 (KHTML, like Gecko) Mobile TizenBrowser/2.0'
expected:
DeviceClass : 'Phone'
DeviceName : 'Linux Desktop'
DeviceBrand : 'Unknown'
DeviceName : 'Samsung Tizen Device'
DeviceBrand : 'Samsung'
OperatingSystemClass : 'Mobile'
OperatingSystemName : 'Tizen'
OperatingSystemVersion : '2.0'
Expand Down
38 changes: 38 additions & 0 deletions analyzer/src/main/resources/UserAgents/Samsung.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -672,3 +672,41 @@ config:
AgentNameVersion : 'Dalvik 2.1.0'
AgentNameVersionMajor : 'Dalvik 2'
AgentSecurity : 'Strong security'

- matcher:
extract:
- 'DeviceClass : 10 :"<<<null>>>"'
- 'DeviceName : 10 :"Tizen device"'
- 'DeviceBrand : 10 :"Samsung"'
- 'OperatingSystemClass : 501 :"Embedded"'
- 'OperatingSystemName : 501 :"Tizen"'
- 'OperatingSystemVersion : 501 :agent.(1)product.(1)comments.entry.(1)product.name="Tizen"^.version'
- 'AgentClass : 15 :"Browser"'
- 'AgentName : 15 :"TizenBrowser"'
- 'AgentVersion : 15 :"<<<null>>>"'

- test:
input:
user_agent_string: 'Mozilla/5.0 (Linux; Tizen 2.3) AppleWebKit/538.1 (KHTML, like Gecko)'
expected:
DeviceClass : 'Unknown'
DeviceName : 'Samsung Tizen Device'
DeviceBrand : 'Samsung'
OperatingSystemClass : 'Embedded'
OperatingSystemName : 'Tizen'
OperatingSystemVersion : '2.3'
OperatingSystemVersionMajor : '2'
OperatingSystemNameVersion : 'Tizen 2.3'
OperatingSystemNameVersionMajor : 'Tizen 2'
LayoutEngineClass : 'Browser'
LayoutEngineName : 'AppleWebKit'
LayoutEngineVersion : '538.1'
LayoutEngineVersionMajor : '538'
LayoutEngineNameVersion : 'AppleWebKit 538.1'
LayoutEngineNameVersionMajor : 'AppleWebKit 538'
AgentClass : 'Browser'
AgentName : 'TizenBrowser'
AgentVersion : '??'
AgentVersionMajor : '??'
AgentNameVersion : 'TizenBrowser ??'
AgentNameVersionMajor : 'TizenBrowser ??'
6 changes: 0 additions & 6 deletions analyzer/src/main/resources/UserAgents/TV.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -348,12 +348,6 @@ config:
AgentNameVersion : 'Safari 5.0'
AgentNameVersionMajor : 'Safari 5'

- matcher:
extract:
- 'OperatingSystemClass : 501 :"Embedded"'
- 'OperatingSystemName : 501 :"Tizen"'
- 'OperatingSystemVersion : 501 :agent.(1)product.(1)comments.entry.(1)product.name="Tizen"^.version'

- test:
input:
user_agent_string: 'Mozilla/5.0 (SMART-TV; Linux; Tizen 2.3) AppleWebkit/538.1 (KHTML, like Gecko) SamsungBrowser/1.0 TV Safari/538.1'
Expand Down

0 comments on commit 5e10d4a

Please sign in to comment.