Skip to content

Commit

Permalink
refs #5585 - improves detection for Sony Xperia M4 Aqua
Browse files Browse the repository at this point in the history
  • Loading branch information
sgiehl committed Mar 2, 2017
1 parent 8e3d358 commit 128a20b
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 @@ -9518,6 +9518,26 @@
model: Xperia M2 Dual
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 5.0; E2353 Build/26.1.A.3.111) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.105 Mobile Safari/537.36
os:
name: Android
short_name: AND
version: "5.0"
platform:
client:
type: browser
name: Chrome Mobile
short_name: CM
version: "49.0.2623.105"
engine: Blink
engine_version:
device:
type: smartphone
brand: SO
model: Xperia M4 Aqua
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 5.0; E2306 Build/26.1.A.3.111; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/55.0.2883.91 Mobile Safari/537.36
os:
Expand Down Expand Up @@ -9875,23 +9895,3 @@
model: Xperia P
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; U; Android 2.3.7; en-gb; LT26i Build/6.0.A.3.62) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1
os:
name: Android
short_name: AND
version: "2.3.7"
platform:
client:
type: browser
name: Android Browser
short_name: AN
version:
engine: WebKit
engine_version: "533.1"
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 2.3.7; en-gb; LT26i Build/6.0.A.3.62) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1
os:
name: Android
short_name: AND
version: "2.3.7"
platform:
client:
type: browser
name: Android Browser
short_name: AN
version:
engine: WebKit
engine_version: "533.1"
device:
type: smartphone
brand: SO
model: Xperia S
os_family: Android
browser_family: Android Browser
-
user_agent: Mozilla/5.0 (Linux; U; Android 2.3.7; fr-be; SonyEricssonLT26i Build/6.0.A.3.73) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1
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|E210[45]|E2115|E2[03]03|E2306|E2312|E58[02]3|E5603|E6553|E66[358]3|E68[58]3|F3111|F331[13]|F3213|F5[13]21|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]|E2115|E2[03]03|E2306|E2312|E2353|E58[02]3|E5603|E6553|E66[358]3|E68[58]3|F3111|F331[13]|F3213|F5[13]21|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 @@ -1473,7 +1473,7 @@ Sony:
model: 'Xperia M2'
- regex: '(?:Sony(?:Ericsson)?)?D240[36]'
model: 'Xperia M2 Aqua'
- regex: '(?:Sony(?:Ericsson)?)?E230[36]'
- regex: '(?:Sony(?:Ericsson)?)?(?:E230[36]|E2353)'
model: 'Xperia M4 Aqua'
- regex: '(?:Sony(?:Ericsson)?)?E2312'
model: 'Xperia M4 Aqua Dual'
Expand Down

0 comments on commit 128a20b

Please sign in to comment.