Skip to content

Commit

Permalink
refs #5585 - improves detection for Sony Xperia E4
Browse files Browse the repository at this point in the history
  • Loading branch information
sgiehl committed Mar 2, 2017
1 parent 9dc5f05 commit 45764b5
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
Original file line number Diff line number Diff line change
Expand Up @@ -8801,6 +8801,26 @@
model: Xperia E4
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 4.4.4; E2104 Build/24.0.A.1.34) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.98 Mobile Safari/537.36
os:
name: Android
short_name: AND
version: "4.4.4"
platform:
client:
type: browser
name: Chrome Mobile
short_name: CM
version: "52.0.2743.98"
engine: Blink
engine_version:
device:
type: smartphone
brand: SO
model: Xperia E4
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 4.4.4; E2003 Build/25.0.A.2.31) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.98 Mobile Safari/537.36
os:
Expand Down Expand Up @@ -9875,23 +9895,3 @@
model: Xperia S
os_family: Android
browser_family: Android Browser
-
user_agent: Mozilla/5.0 (Linux; U; Android 4.0.4; zh-hk; LT26i Build/6.1.A.2.45) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30
os:
name: Android
short_name: AND
version: "4.0.4"
platform:
client:
type: browser
name: Android Browser
short_name: AN
version:
engine: WebKit
engine_version: "534.30"
device:
type: smartphone
brand: SO
model: Xperia S
os_family: Android
browser_family: Android Browser
20 changes: 20 additions & 0 deletions Tests/fixtures/smartphone-4.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,24 @@
---
-
user_agent: Mozilla/5.0 (Linux; U; Android 4.0.4; zh-hk; LT26i Build/6.1.A.2.45) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30
os:
name: Android
short_name: AND
version: "4.0.4"
platform:
client:
type: browser
name: Android Browser
short_name: AN
version:
engine: WebKit
engine_version: "534.30"
device:
type: smartphone
brand: SO
model: Xperia S
os_family: Android
browser_family: Android Browser
-
user_agent: Mozilla/5.0 (Linux; U; Android 4.1.2; fr-be; SonyLT26iv Build/6.2.B.1.96) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30
os:
Expand Down
4 changes: 2 additions & 2 deletions regexes/device/mobiles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1269,7 +1269,7 @@ Rikomagic:

# Sony & Sony Ericsson (combined as they are mixed up)
Sony:
regex: 'Sony(?: ?Ericsson)?|SGP|Xperia|C1[569]0[45]|C2[01]0[45]|C2305|C530[236]|C550[23]|C6[56]0[236]|C6616|C68(?:0[26]|[34]3)|C69(?:0[236]|16|43)|D200[45]|D21(?:0[45]|14)|D22(?:0[236]|12|43)|D230[2356]|D240[36]|D25(?:02|33)|D510[236]|D530[36]|D5322|D5503|D58[03]3|D65(?:0[23]|43)|D66[035]3|E2105|E2[03]03|E2306|E58[02]3|E5603|E6553|E66[358]3|E68[58]3|F3111|F331[13]|F5121|F833[12]|(?:WT|LT|SO|ST|SK|MK)[0-9]+[a-z]*[0-9]*(?: Build|\))|X?L39H|XM50[ht]|W960|portalmmm/2\.0 K|S3[69]h|X10[ia]v?|E1[05][ai]v?|MT[0-9]{2}[a-z]? Build|SO-0(?:[345]D|[234]E|[12]C|[1235]F|[12]G)|R800[aix]|LiveWithWalkman'
regex: 'Sony(?: ?Ericsson)?|SGP|Xperia|C1[569]0[45]|C2[01]0[45]|C2305|C530[236]|C550[23]|C6[56]0[236]|C6616|C68(?:0[26]|[34]3)|C69(?:0[236]|16|43)|D200[45]|D21(?:0[45]|14)|D22(?:0[236]|12|43)|D230[2356]|D240[36]|D25(?:02|33)|D510[236]|D530[36]|D5322|D5503|D58[03]3|D65(?:0[23]|43)|D66[035]3|E210[45]|E2[03]03|E2306|E58[02]3|E5603|E6553|E66[358]3|E68[58]3|F3111|F331[13]|F5121|F833[12]|(?:WT|LT|SO|ST|SK|MK)[0-9]+[a-z]*[0-9]*(?: Build|\))|X?L39H|XM50[ht]|W960|portalmmm/2\.0 K|S3[69]h|X10[ia]v?|E1[05][ai]v?|MT[0-9]{2}[a-z]? Build|SO-0(?:[345]D|[234]E|[12]C|[1235]F|[12]G)|R800[aix]|LiveWithWalkman'
device: 'smartphone'
models:
# SONY ERICSSON: explicit smartphone models
Expand Down Expand Up @@ -1434,7 +1434,7 @@ Sony:
model: 'Xperia E'
- regex: '(?:Sony(?:Ericsson)?)?C160[45]'
model: 'Xperia E Dual'
- regex: '(?:Sony(?:Ericsson)?)?E2105'
- regex: '(?:Sony(?:Ericsson)?)?E210[45]'
model: 'Xperia E4'
- regex: '(?:Sony(?:Ericsson)?)?E2003'
model: 'Xperia E4G'
Expand Down

0 comments on commit 45764b5

Please sign in to comment.