Skip to content

Commit

Permalink
Adds detection for Nokia branded phones by HMD Global
Browse files Browse the repository at this point in the history
  • Loading branch information
janvenekamp committed Sep 11, 2017
1 parent 64ac56a commit 0c2ddfc
Show file tree
Hide file tree
Showing 2 changed files with 113 additions and 1 deletion.
100 changes: 100 additions & 0 deletions Tests/fixtures/smartphone-5.yml
Expand Up @@ -1497,3 +1497,103 @@
model: Pro
os_family: Android
browser_family: Unknown
-
user_agent: Mozilla/5.0 (Linux; Android 7.1.1; TA-1035 Build/NMF26F) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.116 Mobile Safari/537.36
os:
name: Android
short_name: AND
version: "7.1.1"
platform: ""
client:
type: browser
name: Chrome Mobile
short_name: CM
version: "60.0.3112.116"
engine: Blink
engine_version:
device:
type: smartphone
brand: NK
model: 2
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 7.1.1; TA-1032 Build/NMF26F) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.116 Mobile Safari/537.36
os:
name: Android
short_name: AND
version: "7.1.1"
platform: ""
client:
type: browser
name: Chrome Mobile
short_name: CM
version: "60.0.3112.116"
engine: Blink
engine_version:
device:
type: smartphone
brand: NK
model: 3
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 7.1.1; TA-1024 Build/NMF26F) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.116 Mobile Safari/537.36
os:
name: Android
short_name: AND
version: "7.1.1"
platform: ""
client:
type: browser
name: Chrome Mobile
short_name: CM
version: "60.0.3112.116"
engine: Blink
engine_version:
device:
type: smartphone
brand: NK
model: 5
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 7.1.1; TA-1003 Build/NMF26F) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.116 Mobile Safari/537.36
os:
name: Android
short_name: AND
version: "7.1.1"
platform: ""
client:
type: browser
name: Chrome Mobile
short_name: CM
version: "60.0.3112.116"
engine: Blink
engine_version:
device:
type: smartphone
brand: NK
model: 6
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 7.1.1; TA-1004 Build/NMF26F) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.116 Mobile Safari/537.36
os:
name: Android
short_name: AND
version: "7.1.1"
platform: ""
client:
type: browser
name: Chrome Mobile
short_name: CM
version: "60.0.3112.116"
engine: Blink
engine_version:
device:
type: smartphone
brand: NK
model: 8
os_family: Android
browser_family: Chrome
14 changes: 13 additions & 1 deletion regexes/device/mobiles.yml
Expand Up @@ -154,7 +154,7 @@ Microsoft:

# NOKIA
Nokia:
regex: 'Nokia|Lumia|Maemo RX|portalmmm/2\.0 N7|portalmmm/2\.0 NK|nok[0-9]+|Symbian.*\s([a-z0-9]+)$|RX-51 N900'
regex: 'Nokia|Lumia|Maemo RX|portalmmm/2\.0 N7|portalmmm/2\.0 NK|nok[0-9]+|Symbian.*\s([a-z0-9]+)$|RX-51 N900|TA-[0-9]{4} Build'
device: 'smartphone'
models:
- regex: 'RX-51 N900'
Expand Down Expand Up @@ -188,6 +188,18 @@ Nokia:
device: 'feature phone'
model: '$1'

# Nokia branded phones by HMD Global
- regex: 'TA-10(07|23|29|35)'
model: '2'
- regex: 'TA-10(20|28|32|38)'
model: '3'
- regex: 'TA-10(24|27|44|53)'
model: '5'
- regex: 'TA-10(00|03|21|25|33|39)'
model: '6'
- regex: 'TA-10(04|12)'
model: '8'

# CnM
CnM:
regex: 'CnM'
Expand Down

0 comments on commit 0c2ddfc

Please sign in to comment.