Skip to content

Commit

Permalink
Detect devices for exist brands (matomo-org#7938)
Browse files Browse the repository at this point in the history
* feat(device) detect brand Huawei: Honor X6b (JDY-LX3), Honor X6b 5G (ALT-NX3), Honor X5b Plus (GFY-LX2P), Honor X7c 5G (ALT-NX1)

* feat(device) detect brand Tecno Mobile: Pova 6 Neo 5G (TECNO KL8), Spark 30C (TECNO KL5n)
feat(device) detect brand Xiaomi: Mi 10 (M2001J2I), Mi Mix 2 (MDE5)
feat(device) detect brand OPPO: A3 Energy (PKD110), K12x 5G (PJT110)
feat(device) detect brand Oysters: Universal Phone 1 (UBS1)
feat(device) detect brand Hotwav: T7 Pro, T5 Max
feat(device) detect brand OSCAL: Pad 80 WiFi, Pad 70 WiFi
feat(device) detect brand Blackview: Tab 10 WiFi
feat(device) detect brand HotwTCLav: 406s (T506T), 406 (T506K, T506G)

* feat(device) detect brand Motorola: Moto One Macro (PAGS0005IN)
feat(device) detect brand TCL: 408 (T507D), 405 (T506A)
feat(device) detect brand UMIDIGI: G5 Tab (MT16)
feat(device) detect brand Hotwav: Tab R5
feat(device) detect brand Kinstone: KST103SD-L

---------

Co-authored-by: Liviu-Mihail Concioiu <[email protected]>
  • Loading branch information
sanchezzzhak and liviuconcioiu authored Dec 2, 2024
1 parent 8244973 commit f966c5a
Show file tree
Hide file tree
Showing 4 changed files with 505 additions and 25 deletions.
18 changes: 18 additions & 0 deletions Tests/fixtures/phablet-1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5472,3 +5472,21 @@
model: Note 21
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 14; TECNO KL8 Build/UP1A.231005.007; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/130.0.6723.58 Mobile Safari/537.36 YandexSearch/7.54 YandexSearchBrowser/7.54
os:
name: Android
version: "14"
platform: ""
client:
type: browser
name: Yandex Browser
version: "7.54"
engine: Blink
engine_version: 130.0.6723.58
device:
type: phablet
brand: Tecno Mobile
model: Pova 6 Neo 5G
os_family: Android
browser_family: Unknown
320 changes: 320 additions & 0 deletions Tests/fixtures/smartphone-41.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2252,3 +2252,323 @@
model: Honor X7c
os_family: Android
browser_family: Chrome
-
user_agent: 'Mozilla/5.0 (Linux; Android 14; JDY-LX3 Build/HONORJDY-L13; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/129.0.6668.100 Mobile Safari/537.36 [FB_IAB/FB4A;FBAV/485.0.0.70.77;IABMV/1;]'
os:
name: Android
version: "14"
platform: ""
client:
type: mobile app
name: Facebook
version: 485.0.0.70.77
device:
type: smartphone
brand: Huawei
model: Honor X6b
os_family: Android
browser_family: Unknown
-
user_agent: Dalvik/2.1.0 (Linux; U; Android 14; ALT-NX3 Build/HONORALT-N03)
os:
name: Android
version: "14"
platform: ""
client:
type: browser
name: Android Browser
version: ""
engine: WebKit
engine_version: ""
device:
type: smartphone
brand: Huawei
model: Honor X6b 5G
os_family: Android
browser_family: Android Browser
-
user_agent: Mozilla/5.0 (Linux; Android 14; GFY-LX2P) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Mobile Safari/537.36
os:
name: Android
version: "14"
platform: ""
client:
type: browser
name: Chrome Mobile
version: 126.0.0.0
engine: Blink
engine_version: 126.0.0.0
device:
type: smartphone
brand: Huawei
model: Honor X5b Plus
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 14; ALT-NX1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Mobile Safari/537.36
os:
name: Android
version: "14"
platform: ""
client:
type: browser
name: Chrome Mobile
version: 130.0.0.0
engine: Blink
engine_version: 130.0.0.0
device:
type: smartphone
brand: Huawei
model: Honor X7c 5G
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 15; M2001J2I) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Mobile Safari/537.36
os:
name: Android
version: "15"
platform: ""
client:
type: browser
name: Chrome Mobile
version: 123.0.0.0
engine: Blink
engine_version: 123.0.0.0
device:
type: smartphone
brand: Xiaomi
model: Mi 10
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 14; TECNO KL5n Build/UP1A.231005.007) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.6723.86 Mobile Safari/537.36 OPX/2.5
os:
name: Android
version: "14"
platform: ""
client:
type: browser
name: Opera GX
version: "2.5"
engine: Blink
engine_version: 130.0.6723.86
device:
type: smartphone
brand: Tecno Mobile
model: Spark 30C
os_family: Android
browser_family: Opera
-
user_agent: Mozilla/5.0 (Linux; Android 14; PKD110 Build/UP1A.231005.007; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/97.0.4692.98 Mobile Safari/537.36 T7/13.70 SP-engine/3.11.0 baiduboxapp/13.70.0.10 (Baidu; P1 14) NABar/1.0
os:
name: Android
version: "14"
platform: ""
client:
type: mobile app
name: Baidu Box App
version: 13.70.0.10
device:
type: smartphone
brand: OPPO
model: A3 Energy
os_family: Android
browser_family: Unknown
-
user_agent: Mozilla/5.0 (Linux; Android 14; MDE5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.5845.97 Mobile Safari/537.36 OPR/102.0.4880.28
os:
name: Android
version: "14"
platform: ""
client:
type: browser
name: Opera Mobile
version: 102.0.4880.28
engine: Blink
engine_version: 116.0.5845.97
device:
type: smartphone
brand: Xiaomi
model: Mi Mix 2
os_family: Android
browser_family: Opera
-
user_agent: Mozilla/5.0 (Linux; Android 14; UBS1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Mobile Safari/537.36
os:
name: Android
version: "14"
platform: ""
client:
type: browser
name: Chrome Mobile
version: 130.0.0.0
engine: Blink
engine_version: 130.0.0.0
device:
type: smartphone
brand: Oysters
model: Universal Phone 1
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 14; PJT110) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Mobile Safari/537.36
os:
name: Android
version: "14"
platform: ""
client:
type: browser
name: Chrome Mobile
version: 130.0.0.0
engine: Blink
engine_version: 130.0.0.0
device:
type: smartphone
brand: OPPO
model: K12x 5G
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 13; T7 Pro) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Mobile Safari/537.36
os:
name: Android
version: "13"
platform: ""
client:
type: browser
name: Chrome Mobile
version: 130.0.0.0
engine: Blink
engine_version: 130.0.0.0
device:
type: smartphone
brand: Hotwav
model: T7 Pro
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 13; T5 Max) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Mobile Safari/537.36
os:
name: Android
version: "13"
platform: ""
client:
type: browser
name: Chrome Mobile
version: 130.0.0.0
engine: Blink
engine_version: 130.0.0.0
device:
type: smartphone
brand: Hotwav
model: T5 Max
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 13; T506T) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Mobile Safari/537.36
os:
name: Android
version: "13"
platform: ""
client:
type: browser
name: Chrome Mobile
version: 130.0.0.0
engine: Blink
engine_version: 130.0.0.0
device:
type: smartphone
brand: TCL
model: 406s
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 13; T506K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Mobile Safari/537.36
os:
name: Android
version: "13"
platform: ""
client:
type: browser
name: Chrome Mobile
version: 130.0.0.0
engine: Blink
engine_version: 130.0.0.0
device:
type: smartphone
brand: TCL
model: "406"
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 13; T506G) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Mobile Safari/537.36
os:
name: Android
version: "13"
platform: ""
client:
type: browser
name: Chrome Mobile
version: 130.0.0.0
engine: Blink
engine_version: 130.0.0.0
device:
type: smartphone
brand: TCL
model: "406"
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 13; PAGS0005IN) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Mobile Safari/537.36
os:
name: Android
version: "13"
platform: ""
client:
type: browser
name: Chrome Mobile
version: 126.0.0.0
engine: Blink
engine_version: 126.0.0.0
device:
type: smartphone
brand: Motorola
model: Moto One Macro
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 12; T507D Build/SP1A.210812.016; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/130.0.6723.58 Mobile Safari/537.36
os:
name: Android
version: "12"
platform: ""
client:
type: browser
name: Chrome Webview
version: 130.0.6723.58
engine: Blink
engine_version: 130.0.6723.58
device:
type: smartphone
brand: TCL
model: "408"
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 12; T506A) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Mobile Safari/537.36
os:
name: Android
version: "12"
platform: ""
client:
type: browser
name: Chrome Mobile
version: 130.0.0.0
engine: Blink
engine_version: 130.0.0.0
device:
type: smartphone
brand: TCL
model: "405"
os_family: Android
browser_family: Chrome
Loading

0 comments on commit f966c5a

Please sign in to comment.