Skip to content

Commit

Permalink
Detect new brands LOKMAT, Joy, iWaylink and Detect devices for severa…
Browse files Browse the repository at this point in the history
…l existing brands (matomo-org#7051)

* feat(device) detect new brand LOKMAT: APPLLP2

* feat(device) detect brand HTC: U Ultra (U-1w)
feat(device) detect brand Huawei: MediaPad C5 8" (MON-AL19B)

* feat(device) detect brand SFR: StarNaute 3
feat(device) detect brand STK: Life 8, Storm 2e Plus
feat(device) detect brand Konrow: Sweet 5
feat(device) detect brand Doogee: T5 Lite
feat(device) detect brand Archos: 45 Neon
feat(device) detect brand Accent: Surf 1000
feat(device) detect brand Cube: T10 Plus
feat(device) detect brand Acer: Iconia A3 FHD (A3-A20FHD)

* feat(device) detect new brand Joy: HH5524A, JD5546G
feat(device) detect brand Reeder: M7 Plus
feat(device) detect brand Zen: M72 Smart
feat(device) detect brand TechPad: M6 Plus
feat(device) detect brand S-TELL: M655

* feat(device) detect new brand iWaylink: MC401
feat(device) detect brand Joy: JD5024G
feat(device) detect brand iHunt: Like 7
feat(device) detect brand Leader Phone: Pro1, B50
feat(device) detect brand Ergo: LE32CT5515AK
feat(device) detect brand Xiaomi: MiTV 4A Pro (MiTV-AXSO2, MiTV-AXSO1), MiTV 4I, MiTV 4S (MiTV-MSSP2, MiTV-MSSP3), MiTV Stick 4K (MiTV-ANSP0)

* feat(device) detect brand QMobile: X10
feat(device) detect brand Positivo: Twist 2 Go
feat(device) detect brand Condor: Plume L1 Plus
feat(device) detect brand iHunt: Like Hi5
feat(device) detect brand Logicom: Le Fit

* fix: test
  • Loading branch information
sanchezzzhak authored Mar 10, 2022
1 parent ee09cdb commit 2eb72c9
Show file tree
Hide file tree
Showing 9 changed files with 768 additions and 34 deletions.
3 changes: 3 additions & 0 deletions Parser/Device/AbstractDeviceParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -584,6 +584,7 @@ abstract class AbstractDeviceParser extends AbstractParser
'IE' => 'iView',
'0J' => 'iVooMi',
'UI' => 'ivvi',
'QW' => 'iWaylink',
'I9' => 'iZotron',
'JA' => 'JAY-Tech',
'KJ' => 'Jiake',
Expand All @@ -596,6 +597,7 @@ abstract class AbstractDeviceParser extends AbstractParser
'VJ' => 'Jivi',
'JK' => 'JKL',
'JO' => 'Jolla',
'JP' => 'Joy',
'UJ' => 'Juniper Systems',
'J5' => 'Just5',
'7J' => 'Jumper',
Expand Down Expand Up @@ -682,6 +684,7 @@ abstract class AbstractDeviceParser extends AbstractParser
'YL' => 'Loview',
'1L' => 'Logic',
'LM' => 'Logicom',
'GY' => 'LOKMAT',
'0L' => 'Lumigon',
'LU' => 'Lumus',
'L9' => 'Luna',
Expand Down
18 changes: 18 additions & 0 deletions Tests/fixtures/peripheral.yml
Original file line number Diff line number Diff line change
Expand Up @@ -462,3 +462,21 @@
model: PM80
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 9; MC401_GWL) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.66 Safari/537.36
os:
name: Android
version: "9"
platform: ""
client:
type: browser
name: Chrome
version: 87.0.4280.66
engine: Blink
engine_version: ""
device:
type: peripheral
brand: iWaylink
model: MC401
os_family: Android
browser_family: Chrome
16 changes: 16 additions & 0 deletions Tests/fixtures/smartphone-26.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10005,3 +10005,19 @@
model: Xperia XZ Premium
os_family: Android
browser_family: Chrome
-
user_agent: 'Mozilla/5.0 (Linux; Android 6.0; STARTRAIL 8 NFC Build/MRA58K; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/67.0.3396.81 Mobile Safari/537.36 [FB_IAB/FB4A;FBAV/175.0.0.40.97;]'
os:
name: Android
version: "6.0"
platform: ""
client:
type: mobile app
name: Facebook
version: 175.0.0.40.97
device:
type: smartphone
brand: SFR
model: StarTrail 8
os_family: Android
browser_family: Unknown
18 changes: 18 additions & 0 deletions Tests/fixtures/smartphone-27.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9454,3 +9454,21 @@
model: Sunny 5
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 9; PRIMO N4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.74 Mobile Safari/537.36
os:
name: Android
version: "9"
platform: ""
client:
type: browser
name: Chrome Mobile
version: 95.0.4638.74
engine: Blink
engine_version: ""
device:
type: smartphone
brand: Walton
model: Primo N4
os_family: Android
browser_family: Chrome
Loading

0 comments on commit 2eb72c9

Please sign in to comment.