Skip to content

Commit

Permalink
Improved Huawei/Honor detection
Browse files Browse the repository at this point in the history
  • Loading branch information
nielsbasjes committed Dec 12, 2019
1 parent f66b86c commit 191d4a3
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Expand Up @@ -2,7 +2,8 @@ This is intended as an overview of the major changes

v5.15-SNAPSHOT
===
...
- New/improved detections
- Brand: Huawei/Honor

v5.14.1
===
Expand Down
29 changes: 29 additions & 0 deletions analyzer/src/main/resources/UserAgents/Huawei.yaml
Expand Up @@ -171,3 +171,32 @@ config:
AgentVersionMajor : '61'
AgentNameVersion : 'Chrome 61.0.3163.98'
AgentNameVersionMajor : 'Chrome 61'


- test:
input:
user_agent_string: 'Dalvik/2.1.0 (Linux; U; Android 9; HLK-AL00 Build/HONORHLK-AL00)'
expected:
DeviceClass : 'Mobile'
DeviceName : 'Huawei HLK-AL00'
DeviceBrand : 'Huawei'
OperatingSystemClass : 'Mobile'
OperatingSystemName : 'Android'
OperatingSystemVersion : '9'
OperatingSystemVersionMajor : '9'
OperatingSystemNameVersion : 'Android 9'
OperatingSystemNameVersionMajor : 'Android 9'
OperatingSystemVersionBuild : 'HONORHLK-AL00'
LayoutEngineClass : 'Unknown'
LayoutEngineName : 'Unknown'
LayoutEngineVersion : '??'
LayoutEngineVersionMajor : '??'
LayoutEngineNameVersion : 'Unknown ??'
LayoutEngineNameVersionMajor : 'Unknown ??'
AgentClass : 'Special'
AgentName : 'Dalvik'
AgentVersion : '2.1.0'
AgentVersionMajor : '2'
AgentNameVersion : 'Dalvik 2.1.0'
AgentNameVersionMajor : 'Dalvik 2'
AgentSecurity : 'Strong security'
9 changes: 9 additions & 0 deletions analyzer/src/main/resources/UserAgents/MobileBrands.yaml
Expand Up @@ -368,6 +368,15 @@ config:
"W1-" : "Huawei"
"W2-" : "Huawei"
"WAS-" : "Huawei"
"BKK-" : "Huawei" # Honor
"HDL-" : "Huawei" # Honor
"HiTV-" : "Huawei" # Honor
"HLK-" : "Huawei" # Honor
"HRY-" : "Huawei" # Honor
"JAT-" : "Huawei" # Honor
"NTS-" : "Huawei" # Honor
"TNY-" : "Huawei" # Honor
"YAL-" : "Huawei" # Honor

"Arc 10" : "Kobo"
"Arc 6" : "Kobo"
Expand Down

0 comments on commit 191d4a3

Please sign in to comment.