Skip to content

Commit a15c326

Browse files
committed
fixes #5274 - added detection for some lava devices
1 parent 8a53dc2 commit a15c326

File tree

4 files changed

+100
-1
lines changed

4 files changed

+100
-1
lines changed

Parser/Device/DeviceParserAbstract.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ abstract class DeviceParserAbstract extends ParserAbstract
141141
'KH' => 'KT-Tech',
142142
'KY' => 'Kyocera',
143143
'KZ' => 'Kazam',
144+
'LV' => 'Lava',
144145
'LA' => 'Lanix',
145146
'LC' => 'LCT',
146147
'LE' => 'Lenovo',

Parser/OperatingSystem.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ class OperatingSystem extends ParserAbstract
137137
'Symbian' => array('SYM', 'SYS', 'SY3', 'S60', 'S40'),
138138
'Unix' => array('SOS', 'AIX', 'HPX', 'BSD', 'NBS', 'OBS', 'DFB', 'SYL', 'IRI', 'T64', 'INF'),
139139
'WebTV' => array('WTV'),
140-
'Windows' => array('W10', 'WI7', 'WI8', 'W81', 'WVI', 'WS3', 'WXP', 'W2K', 'WNT', 'WME', 'W98', 'W95', 'WRT', 'W31', 'WIN'),
140+
'Windows' => array('WI7', 'WI8', 'W81', 'W10', 'WVI', 'WS3', 'WXP', 'W2K', 'WNT', 'WME', 'W98', 'W95', 'WRT', 'W31', 'WIN'),
141141
'Windows Mobile' => array('WPH', 'WMO', 'WCE')
142142
);
143143

Tests/fixtures/smartphone.yml

Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9692,6 +9692,96 @@
96929692
model: X330T
96939693
os_family: Unknown
96949694
browser_family: Unknown
9695+
-
9696+
user_agent: Mozilla/5.0 (Linux; U; Android 4.2.2; en-us; iris356 Build/irisIRIS356) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30
9697+
os:
9698+
name: Android
9699+
short_name: AND
9700+
version: 4.2.2
9701+
client:
9702+
type: browser
9703+
name: Android Browser
9704+
short_name: AN
9705+
version:
9706+
engine: WebKit
9707+
device:
9708+
type: smartphone
9709+
brand: LV
9710+
model: Iris 356
9711+
os_family: Android
9712+
browser_family: Android Browser
9713+
-
9714+
user_agent: Mozilla/5.0 (Linux; U; Android 4.2.2; en-us; iris402+ Build/iris402+) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30
9715+
os:
9716+
name: Android
9717+
short_name: AND
9718+
version: 4.2.2
9719+
client:
9720+
type: browser
9721+
name: Android Browser
9722+
short_name: AN
9723+
version:
9724+
engine: WebKit
9725+
device:
9726+
type: smartphone
9727+
brand: LV
9728+
model: Iris 402+
9729+
os_family: Android
9730+
browser_family: Android Browser
9731+
-
9732+
user_agent: Mozilla/5.0 (Linux; U; Android 4.2.2; en-us; iris402e Build/JDQ39) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30
9733+
os:
9734+
name: Android
9735+
short_name: AND
9736+
version: 4.2.2
9737+
client:
9738+
type: browser
9739+
name: Android Browser
9740+
short_name: AN
9741+
version:
9742+
engine: WebKit
9743+
device:
9744+
type: smartphone
9745+
brand: LV
9746+
model: Iris 402e
9747+
os_family: Android
9748+
browser_family: Android Browser
9749+
-
9750+
user_agent: Mozilla/5.0 (Linux; Android 4.1.1; IRIS_501 Build/LAVAIRIS501) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.166 Mobile Safari/535.19
9751+
os:
9752+
name: Android
9753+
short_name: AND
9754+
version: 4.1.1
9755+
client:
9756+
type: browser
9757+
name: Chrome Mobile
9758+
short_name: CM
9759+
version: 18.0.1025.166
9760+
engine: WebKit
9761+
device:
9762+
type: smartphone
9763+
brand: LV
9764+
model: Iris 501
9765+
os_family: Android
9766+
browser_family: Chrome
9767+
-
9768+
user_agent: Mozilla/5.0 (Linux; Android 4.2.2; Iris78W Build/JDQ39) AppleWebKit/537.31 (KHTML, like Gecko) Chrome/26.0.1410.58 Safari/537.31
9769+
os:
9770+
name: Android
9771+
short_name: AND
9772+
version: 4.2.2
9773+
client:
9774+
type: browser
9775+
name: Chrome
9776+
short_name: CH
9777+
version: 26.0.1410.58
9778+
engine: WebKit
9779+
device:
9780+
type: smartphone
9781+
brand: LV
9782+
model: Iris 78W
9783+
os_family: Android
9784+
browser_family: Chrome
96959785
-
96969786
user_agent: Mozilla/5.0 (Linux; U; Android 4.1.1; fr-fr; Cynus F3 Build/JRO03C) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30
96979787
os:

regexes/device/mobiles.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -858,6 +858,14 @@ Kyocera:
858858
- regex: '(?:KWC|QC)-([a-z0-9]+)'
859859
model: '$1'
860860

861+
# Lava
862+
Lava:
863+
regex: 'iris ?([^/;]+) Build'
864+
device: 'smartphone'
865+
models:
866+
- regex: 'iris[ _]?([^/;]+) Build'
867+
model: 'Iris $1'
868+
861869
# lanix
862870
Lanix:
863871
regex: 'LANIX-([a-z0-9]+)'

0 commit comments

Comments
 (0)