Skip to content

Commit

Permalink
Adds detection for various Huawei and Samsung devices (#5685)
Browse files Browse the repository at this point in the history
  • Loading branch information
cb8 authored and sgiehl committed Nov 25, 2017
1 parent 12adf85 commit 98e210c
Show file tree
Hide file tree
Showing 2 changed files with 133 additions and 1 deletion.
120 changes: 120 additions & 0 deletions Tests/fixtures/smartphone-5.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3968,3 +3968,123 @@
model: ZMAX Pro
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 6.0; ALE-L21 Build/HuaweiALE-L21) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.84 Mobile Safari/537.36
os:
name: Android
short_name: AND
version: "6.0"
platform: ""
client:
type: browser
name: Chrome Mobile
short_name: CM
version: 62.0.3202.84
engine: Blink
engine_version: ""
device:
type: smartphone
brand: HU
model: P8 Lite
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 6.0; CAM-L21 Build/HUAWEICAM-L21) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.84 Mobile Safari/537.36
os:
name: Android
short_name: AND
version: "6.0"
platform: ""
client:
type: browser
name: Chrome Mobile
short_name: CM
version: 62.0.3202.84
engine: Blink
engine_version: ""
device:
type: smartphone
brand: HU
model: Y6II
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 7.0; SM-G950F Build/NRD90M) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.84 Mobile Safari/537.36
os:
name: Android
short_name: AND
version: "7.0"
platform: ""
client:
type: browser
name: Chrome Mobile
short_name: CM
version: 62.0.3202.84
engine: Blink
engine_version: ""
device:
type: smartphone
brand: SA
model: GALAXY S8
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 7.0; SM-G955F Build/NRD90M) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.84 Mobile Safari/537.36
os:
name: Android
short_name: AND
version: "7.0"
platform: ""
client:
type: browser
name: Chrome Mobile
short_name: CM
version: 62.0.3202.84
engine: Blink
engine_version: ""
device:
type: smartphone
brand: SA
model: GALAXY S8+
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 7.0; SAMSUNG SM-A520F Build/NRD90M) AppleWebKit/537.36 (KHTML, like Gecko) SamsungBrowser/6.2 Chrome/56.0.2924.87 Mobile Safari/537.36
os:
name: Android
short_name: AND
version: "7.0"
platform: ""
client:
type: browser
name: Samsung Browser
short_name: SB
version: "6.2"
engine: WebKit
engine_version: "537.36"
device:
type: smartphone
brand: SA
model: GALAXY A5 (2017)
os_family: Android
browser_family: Unknown
-
user_agent: Mozilla/5.0 (Linux; Android 7.0; SM-A320FL Build/NRD90M) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.84 Mobile Safari/537.36
os:
name: Android
short_name: AND
version: "7.0"
platform: ""
client:
type: browser
name: Chrome Mobile
short_name: CM
version: 62.0.3202.84
engine: Blink
engine_version: ""
device:
type: smartphone
brand: SA
model: GALAXY A3 (2017)
os_family: Android
browser_family: Chrome
14 changes: 13 additions & 1 deletion regexes/device/mobiles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2396,6 +2396,10 @@ Huawei:
model: 'Honor 5C Dual SIM'
- regex: '(?:Honor_|HW-)?NEM-L21[);/ ]'
model: 'Honor 7 Lite'
- regex: 'ALE-L21'
model: 'P8 Lite'
- regex: 'CAM-L21'
model: 'Y6II'
- regex: 'T1-A21w'
device: 'tablet'
model: 'Honor Tablet Note'
Expand Down Expand Up @@ -4533,6 +4537,10 @@ Samsung:
model: 'GALAXY S7'
- regex: '(?:SAMSUNG-)?SM-G935F|SC-02H'
model: 'GALAXY S7 edge'
- regex: '(?:SAMSUNG-)?SM-G950F'
model: 'GALAXY S8'
- regex: '(?:SAMSUNG-)?SM-G955F'
model: 'GALAXY S8+'
- regex: '(?:SAMSUNG-)?SCH-I200'
model: 'GALAXY Stellar'
- regex: '(?:SAMSUNG-)?SCH-I829'
Expand All @@ -4543,14 +4551,18 @@ Samsung:
model: 'GALAXY Centura'
- regex: 'vollo Vi86[);/ ]'
model: 'Vollo Vi86'
- regex: '(?:SAMSUNG-)?SM-A300FU'
model: 'GALAXY A3 (2015)'
- regex: '(?:SAMSUNG-)?SM-A310F'
model: 'GALAXY A3 (2016)'
- regex: '(?:SAMSUNG-)?SM-A300FU'
- regex: '(?:SAMSUNG-)?SM-A320FL'
model: 'GALAXY A3 (2017)'
- regex: '(?:SAMSUNG-)?SM-A500FU'
model: 'GALAXY A5 (2015)'
- regex: '(?:SAMSUNG-)?SM-A510F'
model: 'GALAXY A5 (2016)'
- regex: '(?:SAMSUNG-)?SM-A520F'
model: 'GALAXY A5 (2017)'
- regex: '(?:SAMSUNG-)?GT-I9301I'
model: 'GALAXY S III Neo'
- regex: '(?:SAMSUNG-)?SM-J500FN'
Expand Down

0 comments on commit 98e210c

Please sign in to comment.