Skip to content

Commit

Permalink
feat(device) detect brand Vertex models: Tab 3G 7.2", Tab 4G 10.1",
Browse files Browse the repository at this point in the history
feat(device) detect brand Krüger&Matz model: LIVE 6 Plus
feat(device) detect brand Lava model: A1
feat(device) detect brand Lephone model: P1
feat(device) detect brand Klipad models: V355B, V355, KL600, KL4889

issue matomo-org#6355
  • Loading branch information
sanchezzzhak committed Nov 26, 2020
1 parent 1d0c640 commit ab482b7
Show file tree
Hide file tree
Showing 2 changed files with 181 additions and 9 deletions.
162 changes: 162 additions & 0 deletions Tests/fixtures/smartphone-18.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7359,3 +7359,165 @@
model: +VTQ007C
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 7.0; Tab 3G 7-2 Build/NRD90M; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/73.0.3683.90 Safari/537.36 YandexSearch/8.05/apad YandexSearchBrowser/8.05
os:
name: Android
version: "7.0"
platform: ""
client:
type: browser
name: Chrome Webview
version: 73.0.3683.90
engine: Blink
engine_version: ""
device:
type: tablet
brand: Vertex
model: Tab 3G 7.2"
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 7.0; Tab 4G 10-1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.96 Safari/537.36
os:
name: Android
version: "7.0"
platform: ""
client:
type: browser
name: Chrome
version: 78.0.3904.96
engine: Blink
engine_version: ""
device:
type: tablet
brand: Vertex
model: Tab 4G 10.1"
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 7.0; LIVE_6plus) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.93 Mobile Safari/537.36
os:
name: Android
version: "7.0"
platform: ""
client:
type: browser
name: Chrome Mobile
version: 79.0.3945.93
engine: Blink
engine_version: ""
device:
type: smartphone
brand: 'Krüger&Matz'
model: LIVE 6 Plus
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 7.0; LAVAA1 Build/NRD90M; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/64.0.3282.137 Mobile Safari/537.36
os:
name: Android
version: "7.0"
platform: ""
client:
type: browser
name: Chrome Webview
version: 64.0.3282.137
engine: Blink
engine_version: ""
device:
type: smartphone
brand: Lava
model: A1
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 7.0; KLIPAD_V355B) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Mobile Safari/537.36
os:
name: Android
version: "7.0"
platform: ""
client:
type: browser
name: Chrome Mobile
version: 76.0.3809.132
engine: Blink
engine_version: ""
device:
type: smartphone
brand: Klipad
model: V355B
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 7.0; KLIPAD_V355) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.116 Mobile Safari/537.36
os:
name: Android
version: "7.0"
platform: ""
client:
type: browser
name: Chrome Mobile
version: 79.0.3945.116
engine: Blink
engine_version: ""
device:
type: smartphone
brand: Klipad
model: V355
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 7.0; KLIPAD_KL600) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.101 Mobile Safari/537.36
os:
name: Android
version: "7.0"
platform: ""
client:
type: browser
name: Chrome Mobile
version: 75.0.3770.101
engine: Blink
engine_version: ""
device:
type: smartphone
brand: Klipad
model: KL600
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 7.0; KL4889 Build/NBD91U) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36
os:
name: Android
version: "7.0"
platform: ""
client:
type: browser
name: Chrome
version: 56.0.2924.87
engine: Blink
engine_version: ""
device:
type: tablet
brand: Klipad
model: KL4889
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 7.0; lephoneP1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.116 Mobile Safari/537.36
os:
name: Android
version: "7.0"
platform: ""
client:
type: browser
name: Chrome Mobile
version: 77.0.3865.116
engine: Blink
engine_version: ""
device:
type: smartphone
brand: Lephone
model: P1
os_family: Android
browser_family: Chrome
28 changes: 19 additions & 9 deletions regexes/device/mobiles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7723,7 +7723,7 @@ Kyocera:

# Krüger&Matz (Kruger&Matz)
Krüger&Matz:
regex: 'Kruger[ _&]Matz|KrugerMatz[ _]|FLOW5PLUS|FLOW7|FLOW6S|DRIVE[_ ]6S?|MOVE_|LIVE4_KM043[89]|KM(?:106[67]|1065G|0701_1|0702|0805_1)'
regex: 'Kruger[ _&]Matz|KrugerMatz[ _]|FLOW5PLUS|FLOW7|FLOW6S|DRIVE[_ ]6S?|MOVE_|LIVE_6plus|LIVE4_KM043[89]|KM(?:106[67]|1065G|0701_1|0702|0805_1)'
device: 'smartphone'
models:
- regex: 'MOVE_6_mini'
Expand All @@ -7744,6 +7744,8 @@ Krüger&Matz:
model: 'LIVE 4'
- regex: '_LIVE5_(KM0450)(?:[);/ ]|$)'
model: 'LIVE 5 $1'
- regex: 'LIVE_6plus(?:[);/ ]|$)'
model: 'LIVE 6 Plus' # KM0454

- regex: 'KM(106[67])(?:[);/ ]|$)'
device: 'tablet'
Expand Down Expand Up @@ -7781,7 +7783,7 @@ AIS:

# Lava (Lavamobiles.com)
Lava:
regex: 'Lava[ _]|(?:DISCOVER136|KKT QUADRA)|iris[ _]?([^/;]+)(?:\)| Build)|A(?:67|76) Build|X1 Selfie Build|X41 Plus Build|(?:Flair Z1|PixelV1|Z61_2GB|A97 IPS)(?:[);/ ]|$)'
regex: 'Lava[ _]|LAVAA1|(?:DISCOVER136|KKT QUADRA)|iris[ _]?([^/;]+)(?:\)| Build)|A(?:67|76) Build|X1 Selfie Build|X41 Plus Build|(?:Flair Z1|PixelV1|Z61_2GB|A97 IPS)(?:[);/ ]|$)'
device: 'smartphone'
models:
- regex: 'Flair Z1(?:[);/ ]|$)'
Expand All @@ -7798,8 +7800,8 @@ Lava:
model: 'Iris X1 Selfie'
- regex: 'X41 Plus Build'
model: 'X41 Plus'
- regex: 'LAVA_A3'
model: 'A3'
- regex: 'LAVA[_ ]?A([13])(?:[);/ ]|$)'
model: 'A$1'
- regex: 'LAVA_R1'
model: 'R1'
- regex: 'Z61_2GB(?:[);/ ]|$)'
Expand Down Expand Up @@ -8002,13 +8004,13 @@ Leotec:

# Lephone
Lephone:
regex: 'lephone[ _]'
regex: 'lephone[ _]|lephoneP1'
device: 'smartphone'
models:
- regex: 'lephone[ _](K7|K10)'
device: 'feature phone'
model: '$1'
- regex: 'lephone[ _](W(1[0125]|[279])|T2)(?:[);/ ]|$)'
- regex: 'lephone(?:[ _])?(W(1[0125]|[279])|T2|P1)(?:[);/ ]|$)'
model: '$1'
- regex: 'lephone_W7_plus'
model: 'W7 Plus'
Expand Down Expand Up @@ -16103,7 +16105,7 @@ Inoi:

# Vertex
Vertex:
regex: 'Lion_Dual|V709X|Pro_P3[01]0_4G|Baccara|Eagle[ _]4G|ImpressMAX|Impress[ _]([^;/]+)(?:Build|\))'
regex: 'Lion_Dual|V709X|Tab [43]G (?:7-2|8-1|10-1)|Pro_P3[01]0_4G|Baccara|Eagle[ _]4G|ImpressMAX|Impress[ _]([^;/]+)(?:Build|\))'
device: 'smartphone'
models:
- regex: '(Lion_Dual|Baccara|Eagle[ _]4G)'
Expand All @@ -16117,6 +16119,9 @@ Vertex:
- regex: '(V709X)'
device: 'tablet'
model: '$1'
- regex: 'Tab ([43])G ([78]|10)-([21])'
device: 'tablet'
model: 'Tab $1G $2.$3"'

# Devices with undectable brand, but detectable model
Unknown:
Expand Down Expand Up @@ -17465,9 +17470,14 @@ Alfawise:

# Klipad
Klipad:
regex: '(KL-V905)(?:[);/ ]|$)'
regex: 'KLIPAD_|(?:KL-V905|KL4889)(?:[);/ ]|$)'
device: 'smartphone'
model: '$1'
models:
- regex: '(?:KLIPAD_)?(V355B?|KL600|KL-V905)(?:[);/ ]|$)'
model: '$1'
- regex: '(KL4889)(?:[);/ ]|$)'
device: 'tablet'
model: '$1'

# SQOOL (sqool.fr)
SQOOL:
Expand Down

0 comments on commit ab482b7

Please sign in to comment.