Skip to content

Commit

Permalink
refs matomo-org#5279 - improved detection for Sony Xperia ZL
Browse files Browse the repository at this point in the history
  • Loading branch information
sgiehl committed Oct 18, 2014
1 parent c254606 commit 896147c
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 20 deletions.
72 changes: 54 additions & 18 deletions Tests/fixtures/smartphone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20022,24 +20022,6 @@
model: W90
os_family: Android
browser_family: Android Browser
-
user_agent: Mozilla/5.0 (Linux; U; Android 4.1.2; fr-ca; SonyC6506 Build/10.1.A.1.395) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30
os:
name: Android
short_name: AND
version: 4.1.2
client:
type: browser
name: Android Browser
short_name: AN
version:
engine: WebKit
device:
type: smartphone
brand: SO
model: C6506
os_family: Android
browser_family: Android Browser
-
user_agent: Mozilla/5.0 (Linux; U; Android 4.1.2; fr-ca; SonyC6616 Build/10.1.1.A.1.319) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30
os:
Expand Down Expand Up @@ -21498,6 +21480,60 @@
model: Xperia Z2
os_family: Android
browser_family: Unknown
-
user_agent: Mozilla/5.0 (Linux; U; Android 4.1.2; fr-ca; SonyC6506 Build/10.1.A.1.395) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30
os:
name: Android
short_name: AND
version: 4.1.2
client:
type: browser
name: Android Browser
short_name: AN
version:
engine: WebKit
device:
type: smartphone
brand: SO
model: Xperia ZL
os_family: Android
browser_family: Android Browser
-
user_agent: Mozilla/5.0 (Linux; Android 4.2.2; C6502 Build/10.3.1.A.2.67) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/30.0.1599.92 Mobile Safari/537.36
os:
name: Android
short_name: AND
version: 4.2.2
client:
type: browser
name: Chrome Mobile
short_name: CM
version: 30.0.1599.92
engine: Blink
device:
type: smartphone
brand: SO
model: Xperia ZL
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 4.2.2; C6506 Build/10.3.A.0.423) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.166 Mobile Safari/537.36
os:
name: Android
short_name: AND
version: 4.2.2
client:
type: browser
name: Chrome Mobile
short_name: CM
version: 33.0.1750.166
engine: Blink
device:
type: smartphone
brand: SO
model: Xperia ZL
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 4.3; C6503 Build/10.4.1.B.0.101) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.114 Mobile Safari/537.36
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 @@ -1520,7 +1520,7 @@ Softbank:

# Sony
Sony:
regex: 'Sony(?! ?Ericsson)|SGP|Xperia|C1[569]0[45]|C2[01]0[45]|C2305|C530[236]|C6[56]03|C68(?:0[26]|[34]3)|C6903|D200[45]|D230[356]|D530[36]|D5503|D65(?:0[23]|43)|LT22i|XL39H'
regex: 'Sony(?! ?Ericsson)|SGP|Xperia|C1[569]0[45]|C2[01]0[45]|C2305|C530[236]|C650[236]|C6603|C68(?:0[26]|[34]3)|C6903|D200[45]|D230[356]|D530[36]|D5503|D65(?:0[23]|43)|LT22i|XL39H'
device: 'smartphone'
models:
# explicit smartphone models
Expand All @@ -1538,7 +1538,7 @@ Sony:
model: 'Xperia C'
- regex: '(?:Sony)?C530[236]'
model: 'Xperia SP'
- regex: '(?:Sony)?C6503'
- regex: '(?:Sony)?C650[236]'
model: 'Xperia ZL'
- regex: '(?:Sony)?C6603'
model: 'Xperia Z'
Expand Down

0 comments on commit 896147c

Please sign in to comment.