From 61a24021b4205d7c5fabd6df382e2de70c3f17c2 Mon Sep 17 00:00:00 2001 From: Charles Bell Date: Sun, 26 Nov 2017 10:25:40 +0100 Subject: [PATCH] Adds detection for various Huawei and Samsung devices (#5688) --- Tests/fixtures/smartphone-5.yml | 62 ++++++++++++++++++++++++++++++++- regexes/device/mobiles.yml | 10 ++++-- 2 files changed, 69 insertions(+), 3 deletions(-) diff --git a/Tests/fixtures/smartphone-5.yml b/Tests/fixtures/smartphone-5.yml index 8c7c170c82..e6cc117d61 100644 --- a/Tests/fixtures/smartphone-5.yml +++ b/Tests/fixtures/smartphone-5.yml @@ -3985,7 +3985,7 @@ device: type: smartphone brand: HU - model: P8 Lite + model: P8 Lite (2015) os_family: Android browser_family: Chrome - @@ -4088,3 +4088,63 @@ model: GALAXY A3 (2017) os_family: Android browser_family: Chrome +- + user_agent: Mozilla/5.0 (Linux; Android 5.1.1; SM-J320FN Build/LMY47V) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.91 Mobile Safari/537.36 + os: + name: Android + short_name: AND + version: 5.1.1 + platform: "" + client: + type: browser + name: Chrome Mobile + short_name: CM + version: 55.0.2883.91 + engine: Blink + engine_version: "" + device: + type: smartphone + brand: SA + model: GALAXY J3 (2016) + os_family: Android + browser_family: Chrome +- + user_agent: Mozilla/5.0 (Linux; Android 7.0; VTR-L09 Build/HUAWEIVTR-L09) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.116 Mobile Safari/537.36 + os: + name: Android + short_name: AND + version: "7.0" + platform: "" + client: + type: browser + name: Chrome Mobile + short_name: CM + version: 60.0.3112.116 + engine: Blink + engine_version: "" + device: + type: smartphone + brand: HU + model: P10 + os_family: Android + browser_family: Chrome +- + user_agent: Mozilla/5.0 (Linux; Android 7.0; PRA-LX1 Build/HUAWEIPRA-LX1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.98 Mobile Safari/537.36 + os: + name: Android + short_name: AND + version: "7.0" + platform: "" + client: + type: browser + name: Chrome Mobile + short_name: CM + version: 61.0.3163.98 + engine: Blink + engine_version: "" + device: + type: smartphone + brand: HU + model: P8 Lite (2017) + os_family: Android + browser_family: Chrome diff --git a/regexes/device/mobiles.yml b/regexes/device/mobiles.yml index 1d12342ff2..5c5128885e 100644 --- a/regexes/device/mobiles.yml +++ b/regexes/device/mobiles.yml @@ -2396,8 +2396,12 @@ Huawei: model: 'Honor 5C Dual SIM' - regex: '(?:Honor_|HW-)?NEM-L21[);/ ]' model: 'Honor 7 Lite' - - regex: 'ALE-L21' - model: 'P8 Lite' + - regex: 'ALE-L(02|21|23)' + model: 'P8 Lite (2015)' + - regex: 'PRA-LX1' + model: 'P8 Lite (2017)' + - regex: 'VTR-L09' + model: 'P10' - regex: 'CAM-L21' model: 'Y6II' - regex: 'T1-A21w' @@ -4565,6 +4569,8 @@ Samsung: model: 'GALAXY A5 (2017)' - regex: '(?:SAMSUNG-)?GT-I9301I' model: 'GALAXY S III Neo' + - regex: '(?:SAMSUNG-)?SM-J320FN' + model: 'GALAXY J3 (2016)' - regex: '(?:SAMSUNG-)?SM-J500FN' model: 'GALAXY J5' - regex: '(?:SAMSUNG-)?SM-G850F'