Skip to content

Commit

Permalink
Detect device new brands: A&K, BASE, CKK Mobile, Matco Tools, Sparx a…
Browse files Browse the repository at this point in the history
…nd Detect devices for exist brands (#158)

* Detect device new brands: A&K, BASE, CKK Mobile, Matco Tools, Sparx and Detect devices for exist brands (matomo-org#7479)
feat: detect device new brand A&K: G4040
feat: detect device new brand Matco Tools: Maximus 3.0
feat: detect device new brand Sparx: Neo 7 Pro, Neo 7, Neo 7 Pro Ultra
feat: detect device brand Vivo: Y02s (V2229)
feat: detect device brand VGO TEL: New 22
feat: detect device brand iTel: S23 (S665LN, S665L)
feat: detect device brand Acteck: Aikun AT723C
feat: detect device brand Huawei: MediaPad T1 10
feat: detect device brand Realme: C51 (RMX3830), 11 Pro+ (RMX3740)
feat: detect device brand Samsung: Galaxy M54 5G (SM-M546B)
feat: detect device brand Xiaomi: Redmi 10X
feat: detect device brand DEXP: 50UCY2-G
feat: detect device brand Asano: 24LH7011T 24.0"
feat: detect device brand Philips: Smart TV UHD
feat: detect device brand Kivi: 32H600GR
feat: detect device brand Hi: 65USY151X
feat: detect device brand HIPER: H32YQ2200GR
feat: detect device brand Leff: 55U630S
feat: detect device new brand BASE: Varia
feat: detect device new brand CKK Mobile: Inspire 1, Garnet
feat: detect device brand eSTAR: Takee 1
feat: detect device brand Huawei: Honor 90 (REA-NX9)
feat: detect device brand OPPO: Reno 5K 5G
feat: detect device brand Kogan: Agora Lite, Agora 4G Pro
feat: detect device brand Tecno Mobile: Pova Neo 2 (TECNO Mobile LG6n)
feat: detect device brand Asus: ROG Phone 7 (AI2205_D)
feat: detect device brand Vivo: Y27 5G (V2302), Y02t (V2254), Y22 (V2238)
feat: detect device brand Infinix: Hot 30 Play (X6835)
feat: detect device brand Highscreen: Explosion
feat: detect device brand OPPO: R15 Neo
feat: detect device brand Xiaomi: Pad 6 (23043RP34I)
feat: detect device brand Vityaz: 43LU1204
feat: detect device brand BBK: 40LEX-7202/FTS2C, 43LEX-7287/TS2C

chore: update device indexes

feat: set new version 2.0.17
chore: update readme
  • Loading branch information
sanchezzzhak authored Oct 5, 2023
1 parent 39dc3ed commit a726d3c
Show file tree
Hide file tree
Showing 13 changed files with 1,310 additions and 346 deletions.
607 changes: 305 additions & 302 deletions README.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "node-device-detector",
"version": "2.0.16",
"version": "2.0.17",
"description": "Nodejs device detector (port matomo-org/device-detector)",
"main": "index.js",
"scripts": {
Expand Down
5 changes: 5 additions & 0 deletions parser/device/brand-short.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ module.exports = {
'88': '8848',
'10M': '10moons',
'41': 'A1',
'AK1': 'A&K',
'00': 'Accent',
'ACC': 'Accesstyle',
'AE': 'Ace',
Expand Down Expand Up @@ -123,6 +124,7 @@ module.exports = {
'BO': 'BangOlufsen',
'BN': 'Barnes & Noble',
'BAR': 'BARTEC',
'BAS': 'BASE',
'BB': 'BBK',
'0B': 'BB Mobile',
'B6': 'BDF',
Expand Down Expand Up @@ -259,6 +261,7 @@ module.exports = {
'CW': 'Cowon',
'75': 'Covia',
'QG': 'COYOTE',
'CKK': 'CKK Mobile',
'YW': 'ClearPHONE',
'33': 'Clementoni',
'CR': 'CreNova',
Expand Down Expand Up @@ -846,6 +849,7 @@ module.exports = {
'3X': 'Mastertech',
'MAS': 'Master-G',
'50': 'Matrix',
'MAT': 'Matco Tools',
'7M': 'Maxcom',
'7M1': 'Maxfone',
'ZM': 'Maximus',
Expand Down Expand Up @@ -1308,6 +1312,7 @@ module.exports = {
'68': 'Soho Style',
'SOB': 'SobieTech',
'PK': 'Spark',
'SPX': 'Sparx',
'FS': 'SPC',
'6S': 'Spectrum',
'43': 'Spectralink',
Expand Down
10 changes: 9 additions & 1 deletion regexes/client-index-hash.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2257,7 +2257,6 @@ c577aa3:
- []
5b0126e9:
- - 23
- 362
- []
173d43e5:
- - 4
Expand Down Expand Up @@ -2943,6 +2942,12 @@ eb41fb3:
'49e26001':
- - 341
- []
72fa3446:
- - 454
- []
304965a7:
- - 341
- []
3f25a42:
- []
- []
Expand Down Expand Up @@ -3392,6 +3397,9 @@ d19f499:
389736b6:
- - 285
- []
7a8c5abf:
- - 23
- []
6b1b8276:
- []
- - 66
Expand Down
2 changes: 1 addition & 1 deletion regexes/client/browsers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@
version: ""

# Hi Browser (https://play.google.com/store/apps/details?id=com.talpa.hibrowser)
- regex: 'HiBrowser/(\d+[\.\d]+)'
- regex: 'HiBrowser/v?(\d+[\.\d]+)'
name: 'Hi Browser'
version: '$1'
engine:
Expand Down
85 changes: 85 additions & 0 deletions regexes/device-index-hash.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1191,6 +1191,8 @@ sm-f946b:
- SA
sm-f731b:
- SA
tecno mobile lg6n:
- TB
gi-626:
- A5
5039d_ru:
Expand Down Expand Up @@ -35221,6 +35223,60 @@ xiaomi 13 pro:
- XI
tecno s1:
- TB
v2229:
- VV
rmx3830:
- RE
rmx3740:
- RE
samsung sm-m546b:
- SA
sparx neo 7 pro:
- SPX
sparx neo 7:
- SPX
samsung sm-a546w:
- SA
redmi 10x lte:
- XI
new 22:
- V6
walton primo x5:
- WA
itel s665ln:
- IZ
sparx neo 7 ultra:
- SPX
takee 1:
- 6E
rea-nx9:
- HU
reno5 k 5g:
- OP
base_varia:
- BAS
agora lite:
- KG
agora 4g pro:
- KG
ckk inspire 1:
- CKK
ckk garnet:
- CKK
v2302:
- VV
infinix x6835:
- IF
explosion:
- H2
v2254:
- VV
r15 neo:
- OP
asus_ai2205_d:
- AU
v2238:
- VV
y9plus:
- DO
doro 8030/8031/8028:
Expand Down Expand Up @@ -43447,6 +43503,15 @@ tecno dp7cpro:
- TB
t50pro_w_row:
- T7
at723c:
- 3K
huawei mediapad t1 10 4g:
- HU
maximus 3.0:
- MAT
- ZM
23043rp34i:
- XI
jdn-al00:
- HU
ags2-al00hn:
Expand Down Expand Up @@ -54024,6 +54089,26 @@ u43yq2200gr:
- BB
50lu8110t:
- 8A
50ucy2-g:
- DX
24lh7011t:
- 8A
philips uhd android tv:
- PH
32h600gr:
- KV
65usy151x:
- 3H
h32yq2200gr:
- HIP
55u630s:
- 4B
43lu1204:
- VIT
40lex-7202fts2c:
- BB
43lex-7287ts2c:
- BB
bb2 pro:
- 0M
kii pro:
Expand Down
146 changes: 110 additions & 36 deletions regexes/device/mobiles.yml

Large diffs are not rendered by default.

33 changes: 33 additions & 0 deletions tests/fixtures/devices/feature_phone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1687,3 +1687,36 @@
model: X4
os_family: Real-time OS
browser_family: Unknown
-
user_agent: G4040_MAUI WAP Browser
os: [ ]
client:
type: browser
name: MAUI WAP Browser
version: ""
engine: ""
engine_version: ""
device:
type: feature phone
brand: 'A&K'
model: G4040
os_family: Unknown
browser_family: Unknown
-
user_agent: KDDI-CA32 UP.Browser/6.2.0.7.3.129 (GUI) MMP/2.0
os:
name: Java ME
version: ""
platform: ""
client:
type: browser
name: Openwave Mobile Browser
version: 6.2.0.7.3.129
engine: ""
engine_version: ""
device:
type: feature phone
brand: KDDI
model: CA32
os_family: Real-time OS
browser_family: Unknown
26 changes: 22 additions & 4 deletions tests/fixtures/devices/phablet-1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -903,8 +903,8 @@
platform: ""
client:
type: browser
name: Chrome Webview
version: 92.0.4515.131
name: Hi Browser
version: 2.6.4.1
engine: Blink
engine_version: 92.0.4515.131
device:
Expand All @@ -921,8 +921,8 @@
platform: ""
client:
type: browser
name: Chrome Webview
version: 92.0.4515.131
name: Hi Browser
version: 2.6.3.1
engine: Blink
engine_version: 92.0.4515.131
device:
Expand Down Expand Up @@ -1679,3 +1679,21 @@
model: Galaxy Z Flip 5
os_family: Android
browser_family: Unknown
-
user_agent: Mozilla/5.0 (Linux; Android 12; en; TECNO Mobile LG6n Build/SP1A.210812.016) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.5060.129 HiBrowser/v2.9.3.4 UWS/ Mobile Safari/537.36
os:
name: Android
version: "12"
platform: ""
client:
type: browser
name: Hi Browser
version: 2.9.3.4
engine: Blink
engine_version: 103.0.5060.129
device:
type: phablet
brand: Tecno Mobile
model: Pova Neo 2
os_family: Android
browser_family: Chrome
Loading

0 comments on commit a726d3c

Please sign in to comment.