Skip to content

Commit e0ae24d

Browse files
sanchezzzhaksgiehl
andauthored
Detect devices for existing brands (#7134)
* feat(device) detect brand Acer: One 8 T4-82L feat(device) detect brand Reeder: M10 Pro LTE feat(device) detect brand Logicom: La Tab Stand feat(device) detect brand Ulefone: Note 7P feat(device) detect brand BQ: 6061L Slim * feat(device) detect brand TCL: Tab 10 FHD 4G (9060G) feat(device) detect brand Philips: Smart TV UHD (2020-2021), Smart TV UHD (2021-2022) * feat(device) detect brand Vodafone: Giga TV, Smart Mini 7 Dual (VFD 301), Smart V8 (VFD 710), Smart Turbo 7 (VFD 501) feat(device) detect brand Xtouch: XP10 WiFi feat(device) detect brand LEMFO: LEM15 * feat(device) detect brand Ulefone: Vienna feat(device) detect brand Digma: DiMagic Cube DM011 feat(device) detect brand IconBIT: Movie Play feat(device) detect brand Acer: Iconia Tab 10 (A3-A50) * feat(device) detect brand Mobicel: GLO feat(device) detect brand General Mobile: GM 6 feat(device) detect brand Medion: Lifetab E1060X feat(device) detect brand Venturer: Mariner 10 Pro (CT9A03W23) * feat(device) detect brand Sony: Xperia XA2 Plus (H3413) feat(device) rename model name for Sony: Xperia XA2 Plus Dual => Xperia XA2 Plus feat(device) detect brand DEXP: Ursus H110, Ursus H210 feat(device) detect brand AllDocube: iPlay 8 Pro feat(device) detect brand Digma: DM-LED42SR24 * feat(device) detect brand Xiaomi: Redmi Note 7 Pro (M1901F7S) feat(device) detect brand Yuno * feat(device) detect new brand Orbic: Journey V * feat(device) detect brand Xiaomi: Redmi Note 11 Pro+ 5G (2201116SI) feat(device) detect brand POCO: M4 Pro (2201117PI) feat(device) detect brand Samsung: Galaxy A03s (SM-S134DL) feat(device) detect brand Microtech: E-Tab LTE (ETL101GB) feat(device) detect brand iTel: S16 Pro (W6503) feat(device) detect brand Kyocera: Easy Mobile Phone KYF41 * feat(device) detect brand MegaFon: SP-W1 feat(device) detect brand Reeder: A8i Q2 feat(device) detect brand Samsung: Omnia 7, Omnia M (GT-S7530), Focus Flash (SGH-i677), Omnia W (GT-I8350), Focus (SGH-i917), Focus S (SGH-i937) * fix: tests Co-authored-by: Stefan Giehl <[email protected]>
1 parent 6a28e13 commit e0ae24d

File tree

11 files changed

+1140
-48
lines changed

11 files changed

+1140
-48
lines changed

Tests/fixtures/peripheral.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -480,3 +480,21 @@
480480
model: MC401
481481
os_family: Android
482482
browser_family: Chrome
483+
-
484+
user_agent: Mozilla/5.0 (Linux; Android 7.1.2; DiMagic Cube DM011) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.85 Safari/537.36
485+
os:
486+
name: Android
487+
version: 7.1.2
488+
platform: ""
489+
client:
490+
type: browser
491+
name: Chrome
492+
version: 94.0.4606.85
493+
engine: Blink
494+
engine_version: 94.0.4606.85
495+
device:
496+
type: peripheral
497+
brand: Digma
498+
model: DiMagic Cube DM011
499+
os_family: Android
500+
browser_family: Chrome

Tests/fixtures/phablet.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8730,3 +8730,57 @@
87308730
model: Redmi Note 11S 5G
87318731
os_family: Android
87328732
browser_family: Chrome
8733+
-
8734+
user_agent: Mozilla/5.0 (Linux; Android 11; M1901F7S) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.61 Mobile Safari/537.36
8735+
os:
8736+
name: Android
8737+
version: "11"
8738+
platform: ""
8739+
client:
8740+
type: browser
8741+
name: Chrome Mobile
8742+
version: 101.0.4951.61
8743+
engine: Blink
8744+
engine_version: 101.0.4951.61
8745+
device:
8746+
type: phablet
8747+
brand: Xiaomi
8748+
model: Redmi Note 7 Pro
8749+
os_family: Android
8750+
browser_family: Chrome
8751+
-
8752+
user_agent: Mozilla/5.0 (Linux; U; Android 11; fr-fr; Redmi Note 11S Build/RP1A.200720.011) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/89.0.4389.116 Mobile Safari/537.36 XiaoMi/MiuiBrowser/12.22.0.2-gn
8753+
os:
8754+
name: Android
8755+
version: "11"
8756+
platform: ""
8757+
client:
8758+
type: browser
8759+
name: MIUI Browser
8760+
version: 12.22.0.2
8761+
engine: WebKit
8762+
engine_version: "537.36"
8763+
device:
8764+
type: phablet
8765+
brand: Xiaomi
8766+
model: Redmi Note 11S
8767+
os_family: Android
8768+
browser_family: Android Browser
8769+
-
8770+
user_agent: Mozilla/5.0 (Linux; Android 11; 2201116SI) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.61 Mobile Safari/537.36
8771+
os:
8772+
name: Android
8773+
version: "11"
8774+
platform: ""
8775+
client:
8776+
type: browser
8777+
name: Chrome Mobile
8778+
version: 101.0.4951.61
8779+
engine: Blink
8780+
engine_version: 101.0.4951.61
8781+
device:
8782+
type: phablet
8783+
brand: Xiaomi
8784+
model: Redmi Note 11 Pro+ 5G
8785+
os_family: Android
8786+
browser_family: Chrome

Tests/fixtures/smartphone-13.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7223,7 +7223,7 @@
72237223
device:
72247224
type: smartphone
72257225
brand: Samsung
7226-
model: SGH-i917
7226+
model: Focus
72277227
os_family: Windows Mobile
72287228
browser_family: Internet Explorer
72297229
-
@@ -7241,7 +7241,7 @@
72417241
device:
72427242
type: smartphone
72437243
brand: Samsung
7244-
model: SGH-i917
7244+
model: Focus
72457245
os_family: Windows Mobile
72467246
browser_family: Unknown
72477247
-

Tests/fixtures/smartphone-14.yml

Lines changed: 38 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6547,7 +6547,7 @@
65476547
device:
65486548
type: smartphone
65496549
brand: Sony
6550-
model: Xperia XA2 Plus Dual
6550+
model: Xperia XA2 Plus
65516551
os_family: Android
65526552
browser_family: Chrome
65536553
-
@@ -6565,7 +6565,7 @@
65656565
device:
65666566
type: smartphone
65676567
brand: Sony
6568-
model: Xperia XA2 Plus Dual
6568+
model: Xperia XA2 Plus
65696569
os_family: Android
65706570
browser_family: Chrome
65716571
-
@@ -9475,3 +9475,39 @@
94759475
model: Boost Max+
94769476
os_family: Android
94779477
browser_family: Chrome
9478+
-
9479+
user_agent: Mozilla/5.0 (Linux; Android 9; TA-1000) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.41 Mobile Safari/537.36
9480+
os:
9481+
name: Android
9482+
version: "9"
9483+
platform: ""
9484+
client:
9485+
type: browser
9486+
name: Chrome Mobile
9487+
version: 101.0.4951.41
9488+
engine: Blink
9489+
engine_version: 101.0.4951.41
9490+
device:
9491+
type: smartphone
9492+
brand: Nokia
9493+
model: "6"
9494+
os_family: Android
9495+
browser_family: Chrome
9496+
-
9497+
user_agent: Mozilla/5.0 (Linux; Android 9; SM-A205GN Build/PPR1.180610.011) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.101 Mobile Safari/537.36 YaApp_Android/9.99 YaSearchBrowser/9.99
9498+
os:
9499+
name: Android
9500+
version: "9"
9501+
platform: ""
9502+
client:
9503+
type: browser
9504+
name: Yandex Browser
9505+
version: "9.99"
9506+
engine: Blink
9507+
engine_version: 75.0.3770.101
9508+
device:
9509+
type: smartphone
9510+
brand: Samsung
9511+
model: Galaxy A20
9512+
os_family: Android
9513+
browser_family: Unknown

Tests/fixtures/smartphone-17.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3218,7 +3218,7 @@
32183218
device:
32193219
type: smartphone
32203220
brand: Kyocera
3221-
model: Easy Mobile Phone
3221+
model: Easy Mobile Phone KYF32
32223222
os_family: Android
32233223
browser_family: Chrome
32243224
-

Tests/fixtures/smartphone-21.yml

Lines changed: 198 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8691,3 +8691,201 @@
86918691
model: V7H
86928692
os_family: Android
86938693
browser_family: Chrome
8694+
-
8695+
user_agent: Mozilla/5.0 (Linux; Android 6.0; U FEEL ECOM) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Mobile Safari/537.36
8696+
os:
8697+
name: Android
8698+
version: "6.0"
8699+
platform: ""
8700+
client:
8701+
type: browser
8702+
name: Chrome Mobile
8703+
version: 100.0.4896.127
8704+
engine: Blink
8705+
engine_version: 100.0.4896.127
8706+
device:
8707+
type: smartphone
8708+
brand: Wiko
8709+
model: U Feel
8710+
os_family: Android
8711+
browser_family: Chrome
8712+
-
8713+
user_agent: Mozilla/5.0 (Linux; Android 6.0; U FEEL) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.41 Mobile Safari/537.36
8714+
os:
8715+
name: Android
8716+
version: "6.0"
8717+
platform: ""
8718+
client:
8719+
type: browser
8720+
name: Chrome Mobile
8721+
version: 101.0.4951.41
8722+
engine: Blink
8723+
engine_version: 101.0.4951.41
8724+
device:
8725+
type: smartphone
8726+
brand: Wiko
8727+
model: U Feel
8728+
os_family: Android
8729+
browser_family: Chrome
8730+
-
8731+
user_agent: Mozilla/5.0 (Linux; Android 8.0.0; W_C800S) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.159 Mobile Safari/537.36
8732+
os:
8733+
name: Android
8734+
version: 8.0.0
8735+
platform: ""
8736+
client:
8737+
type: browser
8738+
name: Chrome Mobile
8739+
version: 92.0.4515.159
8740+
engine: Blink
8741+
engine_version: 92.0.4515.159
8742+
device:
8743+
type: smartphone
8744+
brand: Wiko
8745+
model: View 2
8746+
os_family: Android
8747+
browser_family: Chrome
8748+
-
8749+
user_agent: Mozilla/5.0 (Linux; Android 12; SM-A526U) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.61 Mobile Safari/537.36
8750+
os:
8751+
name: Android
8752+
version: "12"
8753+
platform: ""
8754+
client:
8755+
type: browser
8756+
name: Chrome Mobile
8757+
version: 101.0.4951.61
8758+
engine: Blink
8759+
engine_version: 101.0.4951.61
8760+
device:
8761+
type: smartphone
8762+
brand: Samsung
8763+
model: Galaxy A52 5G
8764+
os_family: Android
8765+
browser_family: Chrome
8766+
-
8767+
user_agent: Mozilla/5.0 (Linux; Android 12; SM-A5360) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.61 Mobile Safari/537.36
8768+
os:
8769+
name: Android
8770+
version: "12"
8771+
platform: ""
8772+
client:
8773+
type: browser
8774+
name: Chrome Mobile
8775+
version: 101.0.4951.61
8776+
engine: Blink
8777+
engine_version: 101.0.4951.61
8778+
device:
8779+
type: smartphone
8780+
brand: Samsung
8781+
model: Galaxy A53 5G
8782+
os_family: Android
8783+
browser_family: Chrome
8784+
-
8785+
user_agent: Mozilla/5.0 (Linux; Android 12; SM-A536U) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.61 Mobile Safari/537.36
8786+
os:
8787+
name: Android
8788+
version: "12"
8789+
platform: ""
8790+
client:
8791+
type: browser
8792+
name: Chrome Mobile
8793+
version: 101.0.4951.61
8794+
engine: Blink
8795+
engine_version: 101.0.4951.61
8796+
device:
8797+
type: smartphone
8798+
brand: Samsung
8799+
model: Galaxy A53 5G
8800+
os_family: Android
8801+
browser_family: Chrome
8802+
-
8803+
user_agent: Mozilla/5.0 (Linux; Android 12; SM-A536U1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.61 Mobile Safari/537.36
8804+
os:
8805+
name: Android
8806+
version: "12"
8807+
platform: ""
8808+
client:
8809+
type: browser
8810+
name: Chrome Mobile
8811+
version: 101.0.4951.61
8812+
engine: Blink
8813+
engine_version: 101.0.4951.61
8814+
device:
8815+
type: smartphone
8816+
brand: Samsung
8817+
model: Galaxy A53 5G
8818+
os_family: Android
8819+
browser_family: Chrome
8820+
-
8821+
user_agent: Mozilla/5.0 (Linux; Android 12; SM-A536W) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.61 Mobile Safari/537.36
8822+
os:
8823+
name: Android
8824+
version: "12"
8825+
platform: ""
8826+
client:
8827+
type: browser
8828+
name: Chrome Mobile
8829+
version: 101.0.4951.61
8830+
engine: Blink
8831+
engine_version: 101.0.4951.61
8832+
device:
8833+
type: smartphone
8834+
brand: Samsung
8835+
model: Galaxy A53 5G
8836+
os_family: Android
8837+
browser_family: Chrome
8838+
-
8839+
user_agent: Mozilla/5.0 (Linux; Android 4.2.2; SO-04E Build/10.3.1.B.2.48) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.99 Mobile Safari/537.36 OPR/50.4.2426.146257
8840+
os:
8841+
name: Android
8842+
version: 4.2.2
8843+
platform: ""
8844+
client:
8845+
type: browser
8846+
name: Opera Mobile
8847+
version: 50.4.2426.146257
8848+
engine: Blink
8849+
engine_version: 71.0.3578.99
8850+
device:
8851+
type: smartphone
8852+
brand: Sony
8853+
model: Xperia A
8854+
os_family: Android
8855+
browser_family: Opera
8856+
-
8857+
user_agent: Mozilla/5.0 (Linux; arm_64; Android 9; Wildfire E1 Plus) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.141 YaApp_Android/22.36.1 YaSearchBrowser/22.36.1 BroPP/1.0 SA/3 Mobile Safari/537.36
8858+
os:
8859+
name: Android
8860+
version: "9"
8861+
platform: ARM
8862+
client:
8863+
type: browser
8864+
name: Yandex Browser
8865+
version: 22.36.1
8866+
engine: Blink
8867+
engine_version: 98.0.4758.141
8868+
device:
8869+
type: smartphone
8870+
brand: HTC
8871+
model: Wildfire E1 Plus
8872+
os_family: Android
8873+
browser_family: Unknown
8874+
-
8875+
user_agent: Mozilla/5.0 (Linux; Android 11; 2201116PI) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.61 Mobile Safari/537.36
8876+
os:
8877+
name: Android
8878+
version: "11"
8879+
platform: ""
8880+
client:
8881+
type: browser
8882+
name: Chrome Mobile
8883+
version: 101.0.4951.61
8884+
engine: Blink
8885+
engine_version: 101.0.4951.61
8886+
device:
8887+
type: smartphone
8888+
brand: POCO
8889+
model: X4 Pro 5G
8890+
os_family: Android
8891+
browser_family: Chrome

0 commit comments

Comments
 (0)