From 94e83db918fe1638a53f7c5ee467c164c3c21887 Mon Sep 17 00:00:00 2001 From: sgiehl Date: Tue, 31 Mar 2015 23:06:02 +0200 Subject: [PATCH] fixes #5327 - fixed detection for Samsung E2152 feautre phone --- Tests/fixtures/feature_phone.yml | 17 ++++++++++++++++- regexes/device/mobiles.yml | 5 +++++ 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/Tests/fixtures/feature_phone.yml b/Tests/fixtures/feature_phone.yml index f7f1bd8637..98f44a61b8 100644 --- a/Tests/fixtures/feature_phone.yml +++ b/Tests/fixtures/feature_phone.yml @@ -29,7 +29,22 @@ model: CF61 os_family: Unknown browser_family: Unknown -- +- + user_agent: SAMSUNG-GT-E2152/E2152XXJK2 NetFront/3.5 Profile/MIDP-2.0 Configuration/CLDC-1.1 + os: [ ] + client: + type: browser + name: NetFront + short_name: NF + version: 3.5 + engine: NetFront + device: + type: feature phone + brand: SA + model: E2152 + os_family: Unknown + browser_family: NetFront +- user_agent: Cricket-A310/1.0 UP.Browser/6.3.0.7 (GUI) MMP/2.0 os: [ ] client: diff --git a/regexes/device/mobiles.yml b/regexes/device/mobiles.yml index efa485452f..b48fd679ef 100644 --- a/regexes/device/mobiles.yml +++ b/regexes/device/mobiles.yml @@ -2299,6 +2299,11 @@ Samsung: model: 'GALAXY Mega 6.3' device: 'phablet' + # explicit feature phones + - regex: '(?:SAMSUNG-)?GT-E2152' + model: 'E2152' + device: 'feature phone' + # general detections - regex: '(?:SAMSUNG-)?(GT-(P|N8|N5)[0-9]+[a-z]?)' device: 'tablet'