Skip to content

Commit

Permalink
improve detections for Samsung Galaxy 7 Edge
Browse files Browse the repository at this point in the history
  • Loading branch information
sgiehl committed Dec 6, 2016
1 parent cc26380 commit 119bbad
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 22 deletions.
40 changes: 20 additions & 20 deletions Tests/fixtures/smartphone-3.yml
Expand Up @@ -1839,6 +1839,26 @@
model: GALAXY S6
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 6.0.1; SC-02H Build/MMB29M) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.76 Mobile Safari/537.36
os:
name: Android
short_name: AND
version: "6.0.1"
platform:
client:
type: browser
name: Chrome Mobile
short_name: CM
version: "46.0.2490.76"
engine: Blink
engine_version:
device:
type: smartphone
brand: SA
model: GALAXY S7 edge
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 6.0.1; SM-G935F Build/MMB29K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.124 Mobile Safari/537.36
os:
Expand Down Expand Up @@ -9878,23 +9898,3 @@
model: Xperia V
os_family: Android
browser_family: Android Browser
-
user_agent: Mozilla/5.0 (Linux; Android 4.1.2; LT25i Build/9.1.A.1.140) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.166 Mobile Safari/535.19
os:
name: Android
short_name: AND
version: "4.1.2"
platform:
client:
type: browser
name: Chrome Mobile
short_name: CM
version: "18.0.1025.166"
engine: WebKit
engine_version: "535.19"
device:
type: smartphone
brand: SO
model: Xperia V
os_family: Android
browser_family: Chrome
20 changes: 20 additions & 0 deletions Tests/fixtures/smartphone-4.yml
@@ -1,4 +1,24 @@
---
-
user_agent: Mozilla/5.0 (Linux; Android 4.1.2; LT25i Build/9.1.A.1.140) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.166 Mobile Safari/535.19
os:
name: Android
short_name: AND
version: "4.1.2"
platform:
client:
type: browser
name: Chrome Mobile
short_name: CM
version: "18.0.1025.166"
engine: WebKit
engine_version: "535.19"
device:
type: smartphone
brand: SO
model: Xperia V
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 4.4.2; Xperia V Build/KVT49L) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/30.0.0.0 Mobile Safari/537.36
os:
Expand Down
4 changes: 2 additions & 2 deletions regexes/device/mobiles.yml
Expand Up @@ -3477,7 +3477,7 @@ Siemens:

# Samsung
Samsung:
regex: 'SAMSUNG|Maple |SC-(?:02C|04E|01F)|N[57]100|N5110|N9100|S(?:CH|GH|PH|EC|AM|HV|HW|M)-|SMART-TV|GT-|Galaxy|(?:portalmmm|o2imode)/2\.0 [SZ]|sam[rua]|vollo Vi86[);/ ]|(?:OTV-)?SMT-E5015|ISW11SC'
regex: 'SAMSUNG|Maple |SC-(?:02[CH]|04E|01F)|N[57]100|N5110|N9100|S(?:CH|GH|PH|EC|AM|HV|HW|M)-|SMART-TV|GT-|Galaxy|(?:portalmmm|o2imode)/2\.0 [SZ]|sam[rua]|vollo Vi86[);/ ]|(?:OTV-)?SMT-E5015|ISW11SC'
device: 'smartphone'
models:
# explicit tv models
Expand Down Expand Up @@ -3771,7 +3771,7 @@ Samsung:
model: 'GALAXY S5 Neo'
- regex: '(?:SAMSUNG-)?SM-G920F'
model: 'GALAXY S6'
- regex: '(?:SAMSUNG-)?SM-G935F'
- regex: '(?:SAMSUNG-)?SM-G935F|SC-02H'
model: 'GALAXY S7 edge'
- regex: '(?:SAMSUNG-)?SCH-I200'
model: 'GALAXY Stellar'
Expand Down

0 comments on commit 119bbad

Please sign in to comment.