Skip to content

Commit

Permalink
feat(device) detect brand IconBIT model: Omnicast UHD
Browse files Browse the repository at this point in the history
feat(device) detect brand Polaroid model: P902/A900
feat(device) detect brand Lenovo model: Vibe C
feat(device) detect brand Doogee model: X5
feat(device) detect brand Allview models: Viva C701, Viva i701G
feat(device) detect brand BB Mobile models: Techno 7.85" Mozg I785AP, Techno 10.1" Mozg I101BI

issue matomo-org#6355
  • Loading branch information
sanchezzzhak committed Nov 24, 2020
1 parent 6cb8a94 commit a5a2df8
Show file tree
Hide file tree
Showing 2 changed files with 164 additions and 8 deletions.
145 changes: 145 additions & 0 deletions Tests/fixtures/smartphone-18.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5667,3 +5667,148 @@
model: Uni Pad RP-UDM02A
os_family: Android
browser_family: Android Browser
-
user_agent: Mozilla/5.0 (Linux; Android 5.1.1; Omnicast UHD Build/LMY47V) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.89 Safari/537.36
os:
name: Android
version: 5.1.1
platform: ""
client:
type: browser
name: Chrome
version: 40.0.2214.89
engine: Blink
engine_version: ""
device:
type: tv
brand: IconBIT
model: Omnicast UHD
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 5.1.1; P902/A900) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.92 Safari/537.36
os:
name: Android
version: 5.1.1
platform: ""
client:
type: browser
name: Chrome
version: 77.0.3865.92
engine: Blink
engine_version: ""
device:
type: tablet
brand: Polaroid
model: P902/A900
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 5.1.1; Techno-I785AP) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.62 Mobile Safari/537.36
os:
name: Android
version: 5.1.1
platform: ""
client:
type: browser
name: Chrome Mobile
version: 78.0.3904.62
engine: Blink
engine_version: ""
device:
type: tablet
brand: BB Mobile
model: Techno 7.85" Mozg I785AP
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 5.1.1; Techno I101BI) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.96 Safari/537.36
os:
name: Android
version: 5.1.1
platform: ""
client:
type: browser
name: Chrome
version: 78.0.3904.96
engine: Blink
engine_version: ""
device:
type: tablet
brand: BB Mobile
model: Techno 10.1" Mozg I101BI
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 5.1.1; VIBE C Build/LMY47V) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/38.0.0.0 Mobile Safari/537.36
os:
name: Android
version: 5.1.1
platform: ""
client:
type: browser
name: Chrome Webview
version: 38.0.0.0
engine: Blink
engine_version: ""
device:
type: smartphone
brand: Lenovo
model: Vibe C
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 5.1.1; Viva_C701) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.116 Safari/537.36
os:
name: Android
version: 5.1.1
platform: ""
client:
type: browser
name: Chrome
version: 77.0.3865.116
engine: Blink
engine_version: ""
device:
type: tablet
brand: Allview
model: Viva C701
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 5.1.1; Viva_i701G) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.157 Safari/537.36
os:
name: Android
version: 5.1.1
platform: ""
client:
type: browser
name: Chrome
version: 74.0.3729.157
engine: Blink
engine_version: ""
device:
type: tablet
brand: Allview
model: Viva i701G
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 5.1.1; x5_doogee) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.111 Mobile Safari/537.36
os:
name: Android
version: 5.1.1
platform: ""
client:
type: browser
name: Chrome Mobile
version: 76.0.3809.111
engine: Blink
engine_version: ""
device:
type: smartphone
brand: Doogee
model: X5
os_family: Android
browser_family: Chrome

27 changes: 19 additions & 8 deletions regexes/device/mobiles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1467,7 +1467,7 @@ Alcatel:

# Allview
Allview:
regex: 'Allview|A4You|A5_(?:Easy(?:_TM)?|Ready(?:_TM)?|Quad|Quad_Plus_TM)|A[56789]_Lite|A5Smiley|A6_Duo|A10_Lite_2019|A10_Plus|AX2_Frenzy|AX4Nano|AX5NanoQ|C6_Duo|E[23]_Living|E3_(?:Jump|Sign)|E4_Lite|M9_Connect|P(?:43_Easy|[5689]_Energy|6_Energy_Lite|[68]_Energy_Mini(?:_TM)?|(41|[458])_eMagic(?:_TM)?|[589](?:_)?Life(?:_TM)?|[567]_Lite(?:_TM)?|6_plus|[45678]_Pro|7_Seon|10_Life|10_Max|10_Style|7_Xtreme|6_Qmax|4_Quad)|V(?:[134]_Viper|1_Viper_I|2_Viper_(?:E|I|S|X|X_plus|Xe))|X4_Soul_Vision|X(?:[12346]_Soul_Xtreme|[12345]_Soul|3_Soul_Lite|[23456]_Soul_Mini(?:_TM)?|4_Soul_Mini_S(?:_TM)?|[2345]_Soul_Style(?:_TM)?|2_Soul_Style_Plus|2_Twin)|Viva_(H801|100[13]G|H1001_LTE)'
regex: 'Allview|A4You|A5_(?:Easy(?:_TM)?|Ready(?:_TM)?|Quad|Quad_Plus_TM)|A[56789]_Lite|A5Smiley|A6_Duo|A10_Lite_2019|A10_Plus|AX2_Frenzy|AX4Nano|AX5NanoQ|C6_Duo|E[23]_Living|E3_(?:Jump|Sign)|E4_Lite|M9_Connect|P(?:43_Easy|[5689]_Energy|6_Energy_Lite|[68]_Energy_Mini(?:_TM)?|(41|[458])_eMagic(?:_TM)?|[589](?:_)?Life(?:_TM)?|[567]_Lite(?:_TM)?|6_plus|[45678]_Pro|7_Seon|10_Life|10_Max|10_Style|7_Xtreme|6_Qmax|4_Quad)|V(?:[134]_Viper|1_Viper_I|2_Viper_(?:E|I|S|X|X_plus|Xe))|X4_Soul_Vision|X(?:[12346]_Soul_Xtreme|[12345]_Soul|3_Soul_Lite|[23456]_Soul_Mini(?:_TM)?|4_Soul_Mini_S(?:_TM)?|[2345]_Soul_Style(?:_TM)?|2_Soul_Style_Plus|2_Twin)|Viva_(H801|100[13]G|H1001_LTE|C701|i701G)'
device: 'smartphone'
models:
- regex: 'A4You'
Expand Down Expand Up @@ -1605,7 +1605,7 @@ Allview:
- regex: 'Allview3SpeedQuad'
device: 'tablet'
model: 'Alldro 3 Speed Quad'
- regex: 'Viva_(H801|100[13]G|H1001_LTE)'
- regex: 'Viva_(H801|100[13]G|H1001_LTE|C701|i701G)'
device: 'tablet'
model: 'Viva $1'
- regex: 'ALLVIEW ?SPEEDI'
Expand Down Expand Up @@ -4152,7 +4152,7 @@ DoCoMo:

# Doogee
Doogee:
regex: 'DOOGEE[ _-]|Valencia2_Y100_?(?:pro|plus)|Y100_Plus|X5max(?:[_ ]PRO)?|(KISSME|BIGBOY|COLLO[23]?|DAGGER|DISCOVERY2?|FIND|HOTWIND|LATTE|MAX|MINT|MOON|PIXELS|RAINBOX|TURBO|VALENCIA|VOYAGER2?|TITANS2?)[ -_](DG[0-9]+C?)(?:[);/ ]|$)|BL[579]000(?:[);/ ]|$)|BL12000|BL5500[_ ]Lite|X9 Mini|LEO_DG280|Y9Plus|Hitman_DG850|S(?:68|9[05])Pro|S40Lite|(?<!Lenovo )S90C'
regex: 'DOOGEE[ _-]|Valencia2_Y100_?(?:pro|plus)|Y100_Plus|X5max(?:[_ ]PRO)?|x5_doogee|(KISSME|BIGBOY|COLLO[23]?|DAGGER|DISCOVERY2?|FIND|HOTWIND|LATTE|MAX|MINT|MOON|PIXELS|RAINBOX|TURBO|VALENCIA|VOYAGER2?|TITANS2?)[ -_](DG[0-9]+C?)(?:[);/ ]|$)|BL[579]000(?:[);/ ]|$)|BL12000|BL5500[_ ]Lite|X9 Mini|LEO_DG280|Y9Plus|Hitman_DG850|S(?:68|9[05])Pro|S40Lite|(?<!Lenovo )S90C'
device: 'smartphone'
models:
- regex: '(?:Valencia2_)?Y100_Plus(?:[);/ ]|$)'
Expand All @@ -4179,6 +4179,8 @@ Doogee:
model: 'Hitman DG580'
- regex: 'X9 Mini'
model: 'X9 Mini'
- regex: 'x5_doogee'
model: 'X5'
- regex: '(X5max(?:[_ ]PRO)?)'
model: '$1'
- regex: '(?:DOOGEE[ _-])?(BIGBOY|COLLO[23]?|DAGGER|DISCOVERY2?|FIND|HOTWIND|LATTE|MAX|MINT|MOON|PIXELS|RAINBOX|TURBO|VALENCIA|Valencia2_Y100pro|VOYAGER2?|TITANS2?)[ -_](DG[0-9]+C?)(?:[);/ ]|$)'
Expand Down Expand Up @@ -6628,7 +6630,7 @@ iHunt:

# IconBIT
IconBIT:
regex: 'IconBIT|NT-(3506M|0704S|0909T|1009T|10[01]1T|1017T|3601P/3602P|3603P|3702S|3805C|3905T|3701S|0701S|0805C|0902S|370[23]M)|XDS[789]4K'
regex: 'IconBIT|NT-(3506M|0704S|0909T|1009T|10[01]1T|1017T|3601P/3602P|3603P|3702S|3805C|3905T|3701S|0701S|0805C|0902S|370[23]M)|XDS[789]4K|Omnicast UHD'
device: 'tablet'
models:
- regex: 'NT-3506M'
Expand Down Expand Up @@ -6667,7 +6669,7 @@ IconBIT:
- regex: 'NT-3703M'
model: 'NetTAB Matrix 3GT'

- regex: '(?:iconBIT )?(Movie Ultra HD 4K|XDS[789]4K)'
- regex: '(?:iconBIT )?(Movie Ultra HD 4K|XDS[789]4K|Omnicast UHD)'
model: '$1'
device: 'tv'

Expand Down Expand Up @@ -7960,7 +7962,7 @@ Lenco:

# lenovo
Lenovo:
regex: '(?:LNV-)?Lenovo|IdeaTab|IdeaPad|Thinkpad|Yoga Tablet|Tab2A[0-9]-[0-9]{2}[a-z]?|ZUK[ -_]|(?:TB2-X30L|TB3-710I|YT3-X50[ML]|K50a40|TB-(?:X103F|8504F|X304F|X704V|X704A)|A5500-H|A2107A-H|S6000|Z2 Plus|Vibe P1|VIBE [ZX]2|Vibe K5(?: Plus)?|P2A42|L18011|[5-8]01LV|Z2131|K350t|K31-t3|TAB 2 A8-50LC)(?:[);/ ]|$)'
regex: '(?:LNV-)?Lenovo|IdeaTab|IdeaPad|Thinkpad|Yoga Tablet|Tab2A[0-9]-[0-9]{2}[a-z]?|ZUK[ -_]|(?:TB2-X30L|TB3-710I|YT3-X50[ML]|K50a40|TB-(?:X103F|8504F|X304F|X704V|X704A)|A5500-H|A2107A-H|S6000|Z2 Plus|Vibe P1|VIBE C|VIBE [ZX]2|Vibe K5(?: Plus)?|P2A42|L18011|[5-8]01LV|Z2131|K350t|K31-t3|TAB 2 A8-50LC)(?:[);/ ]|$)'
device: 'smartphone'
models:
- regex: 'Lenovo ?G780'
Expand Down Expand Up @@ -8123,6 +8125,8 @@ Lenovo:
model: 'Vibe K5'
- regex: 'VIBE Z2(?:[);/ ]|$)'
model: 'Vibe Z2'
- regex: 'VIBE C(?:[);/ ]|$)'
model: 'Vibe C'
- regex: 'VIBE X2(?:[);/ ]|$)'
model: 'Vibe X2'
- regex: 'k33a48(?:[);/ ]|$)'
Expand Down Expand Up @@ -12515,7 +12519,7 @@ Plum:

# Polaroid
Polaroid:
regex: 'Polaroid|(?:PMID|MIDC)[0-9a-z]+(?:[);/ ]|$)|MID(?:1014|0714)|PRO[VG]?(?:[0-9]{3,}[a-z]*|[0-9]{2}[a-z])|(?:P(?:400[56]|4526|500[56]|502[56]|504[67]|552[56])A|PSPC(?:505|550|[MZL]20A0|K21NA)|SIGMA 5)(?:[);/ ]|$)'
regex: 'Polaroid|(?:PMID|MIDC)[0-9a-z]+(?:[);/ ]|$)|MID(?:1014|0714)|PRO[VG]?(?:[0-9]{3,}[a-z]*|[0-9]{2}[a-z])|(?:P(?:400[56]|4526|500[56]|502[56]|504[67]|552[56])A|P902/A900|PSPC(?:505|550|[MZL]20A0|K21NA)|SIGMA 5)(?:[);/ ]|$)'
device: 'smartphone'
models:
# explicit smartphone models
Expand Down Expand Up @@ -12568,6 +12572,9 @@ Polaroid:
- regex: '((?:PMID|MIDC)[0-9a-z]+)(?:[);/ ]|$)'
model: '$1'
device: 'tablet'
- regex: '(P902/A900)(?:[);/ ]|$)'
model: '$1'
device: 'tablet'
- regex: 'Polaroid'
model: ''
device: 'tablet'
Expand Down Expand Up @@ -17313,7 +17320,7 @@ Wortmann:

# BB Mobile
BB Mobile:
regex: 'Techno[_ ](8\.0|9\.7|TQ863Q|X595BT|S700BF|I700AJ|10.1 LTE TQ060X|7.0 LTE TQ763I)(?:[);/ ]|$)'
regex: 'Techno[-_ ](8\.0|9\.7|TQ863Q|X595BT|S700BF|I700AJ|10.1 LTE TQ060X|7.0 LTE TQ763I|I785AP|I101BI)(?:[);/ ]|$)'
device: 'tablet'
models:
- regex: 'Techno[_ ]S700BF(?:[);/ ]|$)'
Expand All @@ -17324,6 +17331,10 @@ BB Mobile:
model: 'Techno 8.0" Poplar LTE TQ863Q'
- regex: 'Techno[_ ]I700AJ(?:[);/ ]|$)'
model: 'Techno 7.0" Mozg LTE I700AJ'
- regex: 'Techno[-_ ]I785AP(?:[);/ ]|$)'
model: 'Techno 7.85" Mozg I785AP'
- regex: 'Techno[-_ ]I101BI(?:[);/ ]|$)'
model: 'Techno 10.1" Mozg I101BI'
- regex: 'Techno[_ ]7.0 LTE TQ763I(?:[);/ ]|$)'
model: 'Techno 7.0" Kalash LTE TQ763I'

Expand Down

0 comments on commit a5a2df8

Please sign in to comment.