Skip to content

Commit b8880e5

Browse files
sanchezzzhaksgiehl
andauthored
Detect new brands: FEONAL, Ematic, Sunmi and Detect devices for existing brands: Xolo, Motorola, Samsung, LG, Sony, IconBIT, OPPO, POCO, Lava, Huawei, TechPad, NEC, Lenovo, Asus, KDDI, ZTE, Sharp, Alcatel, DIXON, Hurricane, LeEco, HTC, Santin, Polaroid (#6956)
* feat(device) detect brand Xolo: A1000s Lite * feat(device) detect brand Motorola: Moto 360, Moto ACTV feat(device) detect brand Samsung: Gear Live, Gear S 40mm (SM-R750, SM-R750A), Gear S2 42mm (SM-R732) feat(device) detect brand LG: G Watch, G Watch R feat(device) detect brand Sony: SmartWatch 3 feat(device) detect brand IconBIT: Callisto 100 (NT-1501C) * feat(device) detect new brand FEONAL: K118 feat(device) detect brand POCO: X3 feat(device) detect brand Lava: Z3 (LZG403) feat(device) detect brand Huawei: Honor 50 Lite (NTN-LX3) feat(device) detect brand TechPad: Note 4 Cam feat(device) added test for brand MyPhone: Now eSIM * feat(device) detect brand NEC: LAVIE Tab E TE510, LAVIE Tab E TE410, LAVIE Tab E TE507, LAVIE Tab S TS508, LAVIE Tab E 10FHD2 feat(device) detect brand Lenovo: Yoga Pad Pro (YT-K606F), dtab Compact 42A (d-42A) feat(device) detect brand Asus: ZenPad 7.0 (P002) feat(device) detect brand KDDI: iida InfoBar A01 feat(device) detect brand ZTE: Blade V8 (BV0800) feat(device) detect brand Motorola: Moto G50 5G feat(device) detect brand Sharp: Aquos Zero 6 (SH-RM18) feat(device) added test for brand Sony: Xperia Z1 (SonySOL23) feat(device) added test for brand Samsung: Galaxy Z Fold 3 5G (SM-F926U1), Galaxy S9+ (SM-G965U1) feat(phpunit) set memory limit 512Mb for config * feat(device) detect new brand Sunmi: V1s feat(device) detect brand Alcatel: 1L Plus (4063F) feat(device) detect brand DIXON: DFM48 feat(device) detect brand Huawei: Honor 50 SE (JLH-AN00) feat(device) detect brand Hurricane: Iris Plus (2021) feat(device) detect brand LeEco: Le Max 2 (LEX829) feat(device) detect brand HTC: One M7 feat(device) detect brand Santin: FS500Z, S505 feat(device) detect brand Lenovo: Yoga Tab 11 (YT-J706X) feat(device) detect brand Polaroid: POMDTB006 feat(device) added test for brand TCL: 20E (6125H) feat(device) added test for brand Alcatel: 1S (6025H_RU) feat(device) added test for brand Samsung: Galaxy A03s (SM-A037M) * fix: tests * feat(device) detect new brand Ematic: EGQ101 feat(device) detect brand M-Horse: Power 1 feat(device) detect brand QMobile: i8i Pro feat(device) detect brand ZTE: Blade A6 feat(device) detect brand OPPO: A11k (CPH2071) feat(device) added test for brand Walton: Primo N3 Co-authored-by: Stefan Giehl <[email protected]>
1 parent 3dd88ef commit b8880e5

File tree

8 files changed

+1059
-65
lines changed

8 files changed

+1059
-65
lines changed

Parser/Device/AbstractDeviceParser.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,7 @@ abstract class AbstractDeviceParser extends AbstractParser
338338
'EK' => 'EKO',
339339
'EY' => 'Einstein',
340340
'EM' => 'Eks Mobility',
341+
'UE' => 'Ematic',
341342
'4K' => 'EKT',
342343
'7E' => 'ELARI',
343344
'03' => 'Electroneum',
@@ -387,6 +388,7 @@ abstract class AbstractDeviceParser extends AbstractParser
387388
'FB' => 'Fantec',
388389
'FE' => 'Fengxiang',
389390
'F7' => 'Fero',
391+
'67' => 'FEONAL',
390392
'FI' => 'FiGO',
391393
'F9' => 'FiiO',
392394
'F1' => 'FinePower',
@@ -1022,6 +1024,7 @@ abstract class AbstractDeviceParser extends AbstractParser
10221024
'79' => 'SuperTab',
10231025
'S5' => 'Supra',
10241026
'ZS' => 'Suzuki',
1027+
'2J' => 'Sunmi',
10251028
'0W' => 'Swipe',
10261029
'SS' => 'SWISSMOBILITY',
10271030
'1W' => 'Swisstone',

Tests/fixtures/peripheral.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -354,3 +354,21 @@
354354
model: MobiPrint 4 Plus
355355
os_family: Android
356356
browser_family: Chrome
357+
-
358+
user_agent: Mozilla/5.0 (Linux; Android 6.0; V1s-G Build/MRA58K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Mobile Safari/537.36
359+
os:
360+
name: Android
361+
version: "6.0"
362+
platform: ""
363+
client:
364+
type: browser
365+
name: Chrome Mobile
366+
version: 56.0.2924.87
367+
engine: Blink
368+
engine_version: ""
369+
device:
370+
type: peripheral
371+
brand: Sunmi
372+
model: V1s
373+
os_family: Android
374+
browser_family: Chrome

Tests/fixtures/smartphone-19.yml

Lines changed: 36 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -323,24 +323,6 @@
323323
model: 10 Pro
324324
os_family: Android
325325
browser_family: Chrome
326-
-
327-
user_agent: Mozilla/5.0 (Linux; Android 7.0; PC-TE507JAW) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.110 Mobile Safari/537.36
328-
os:
329-
name: Android
330-
version: "7.0"
331-
platform: ""
332-
client:
333-
type: browser
334-
name: Chrome Mobile
335-
version: 86.0.4240.110
336-
engine: Blink
337-
engine_version: ""
338-
device:
339-
type: tablet
340-
brand: NEC
341-
model: LAVIE Tab E TS507
342-
os_family: Android
343-
browser_family: Chrome
344326
-
345327
user_agent: Mozilla/5.0 (Linux; Android 5.0.2; P360X) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.81 Safari/537.36
346328
os:
@@ -9963,3 +9945,39 @@
99639945
model: Veer
99649946
os_family: Other Mobile
99659947
browser_family: Unknown
9948+
-
9949+
user_agent: Mozilla/5.0 (Linux; U; Android 4.4.2; ja-jp; SonySOL23 Build/14.3.C.0.239) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30
9950+
os:
9951+
name: Android
9952+
version: 4.4.2
9953+
platform: ""
9954+
client:
9955+
type: browser
9956+
name: Android Browser
9957+
version: ""
9958+
engine: WebKit
9959+
engine_version: "534.30"
9960+
device:
9961+
type: smartphone
9962+
brand: Sony
9963+
model: Xperia Z1
9964+
os_family: Android
9965+
browser_family: Android Browser
9966+
-
9967+
user_agent: Mozilla/5.0 (Linux; U; Android 2.3.3; ja-jp; INFOBAR A01 Build/S9081) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1
9968+
os:
9969+
name: Android
9970+
version: 2.3.3
9971+
platform: ""
9972+
client:
9973+
type: browser
9974+
name: Android Browser
9975+
version: ""
9976+
engine: WebKit
9977+
engine_version: "533.1"
9978+
device:
9979+
type: smartphone
9980+
brand: KDDI
9981+
model: iida InfoBar A01
9982+
os_family: Android
9983+
browser_family: Android Browser

0 commit comments

Comments
 (0)