Skip to content

Commit

Permalink
feat(device) detect brand Memup model: SlidePad NG708 3G
Browse files Browse the repository at this point in the history
feat(device) detect brand Kazam model: Trooper X4.0
feat(device) detect brand ZTE model: V808
feat(device) detect brand Odys model: Uno X8
feat(device) detect brand Jinga models: IGO L1, IGO L4
feat(device) detect brand Ginzzu models: ST6010, GT-X870, GT-X853
feat(device) detect brand Digma models: Plane 10.1" 3G (TS1012E), Plane 8.1" 3G (TS7854M),
  Optima 7.3" 3G (TT7020MG), Optima 7.4" 3G (TT7024MG), Optima 7.6" 3G (TT7026MW)

issue matomo-org#6355
  • Loading branch information
sanchezzzhak committed Nov 24, 2020
1 parent ff8675e commit 54041d1
Show file tree
Hide file tree
Showing 2 changed files with 285 additions and 11 deletions.
253 changes: 253 additions & 0 deletions Tests/fixtures/smartphone-18.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5937,3 +5937,256 @@
model: 8298-M02
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 4.2.2; SP-NG708-3G Build/JDQ39) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.99 Safari/537.36 OPR/50.3.2426.136976
os:
name: Android
version: 4.2.2
platform: ""
client:
type: browser
name: Opera
version: 50.3.2426.136976
engine: Blink
engine_version: ""
device:
type: tablet
brand: Memup
model: SlidePad NG708 3G
os_family: Android
browser_family: Opera
-
user_agent: Mozilla/5.0 (Linux; Android 4.2.2; TROOPER 4.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.99 Mobile Safari/537.36
os:
name: Android
version: 4.2.2
platform: ""
client:
type: browser
name: Chrome Mobile
version: 71.0.3578.99
engine: Blink
engine_version: ""
device:
type: smartphone
brand: Kazam
model: Trooper X4.0
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 4.2.2; TS1012E 3G Build/JDQ39) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.111 Safari/537.36
os:
name: Android
version: 4.2.2
platform: ""
client:
type: browser
name: Chrome
version: 63.0.3239.111
engine: Blink
engine_version: ""
device:
type: tablet
brand: Digma
model: Plane 10.1" 3G
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 4.2.2; TS7854M) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.99 Safari/537.36
os:
name: Android
version: 4.2.2
platform: ""
client:
type: browser
name: Chrome
version: 71.0.3578.99
engine: Blink
engine_version: ""
device:
type: tablet
brand: Digma
model: Plane 8.1" 3G
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 4.2.2; TT7020MG Build/JDQ39) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.111 Safari/537.36
os:
name: Android
version: 4.2.2
platform: ""
client:
type: browser
name: Chrome
version: 42.0.2311.111
engine: Blink
engine_version: ""
device:
type: tablet
brand: Digma
model: Optima 7.3" 3G
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 4.2.2; TT7024MG) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.99 Safari/537.36
os:
name: Android
version: 4.2.2
platform: ""
client:
type: browser
name: Chrome
version: 71.0.3578.99
engine: Blink
engine_version: ""
device:
type: tablet
brand: Digma
model: Optima 7.4" 3G
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 4.2.2; TT7026MW Build/JDQ39; ru-ru) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36 Puffin/7.8.2.40664AT
os:
name: Android
version: 4.2.2
platform: ""
client:
type: browser
name: Puffin
version: 7.8.2.40664
engine: WebKit
engine_version: "537.36"
device:
type: tablet
brand: Digma
model: Optima 7.6" 3G
os_family: Android
browser_family: Unknown
-
user_agent: Mozilla/5.0 (Linux; Android 4.2.2; UZTE V808) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Mobile Safari/537.36
os:
name: Android
version: 4.2.2
platform: ""
client:
type: browser
name: Chrome Mobile
version: 70.0.3538.110
engine: Blink
engine_version: ""
device:
type: smartphone
brand: ZTE
model: V808
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 4.2.2; UNO_X8 Build/JDQ39) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.111 Safari/537.36
os:
name: Android
version: 4.2.2
platform: ""
client:
type: browser
name: Chrome
version: 42.0.2311.111
engine: Blink
engine_version: ""
device:
type: tablet
brand: Odys
model: Uno X8
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 4.4.2; Ginzzu ST6010) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.62 Mobile Safari/537.36
os:
name: Android
version: 4.4.2
platform: ""
client:
type: browser
name: Chrome Mobile
version: 78.0.3904.62
engine: Blink
engine_version: ""
device:
type: smartphone
brand: Ginzzu
model: ST6010
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 4.4.2; Ginzzu GT-X870) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.96 Safari/537.36
os:
name: Android
version: 4.4.2
platform: ""
client:
type: browser
name: Chrome
version: 78.0.3904.96
engine: Blink
engine_version: ""
device:
type: tablet
brand: Ginzzu
model: GT-X870
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 4.4.2; Ginzzu GT-X853) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.96 Safari/537.36
os:
name: Android
version: 4.4.2
platform: ""
client:
type: browser
name: Chrome
version: 78.0.3904.96
engine: Blink
engine_version: ""
device:
type: tablet
brand: Ginzzu
model: GT-X853
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 4.4.2; IGO L1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.79 Mobile Safari/537.36
os:
name: Android
version: 4.4.2
platform: ""
client:
type: browser
name: Chrome Mobile
version: 79.0.3945.79
engine: Blink
engine_version: ""
device:
type: smartphone
brand: Jinga
model: IGO L1
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 4.4.2; IGO_L4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.92 Mobile Safari/537.36
os:
name: Android
version: 4.4.2
platform: ""
client:
type: browser
name: Chrome Mobile
version: 77.0.3865.92
engine: Blink
engine_version: ""
device:
type: smartphone
brand: Jinga
model: IGO L4
os_family: Android
browser_family: Chrome

43 changes: 32 additions & 11 deletions regexes/device/mobiles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4039,7 +4039,7 @@ Digiland:

# Digma
Digma:
regex: 'Digma[_ ]([^;/]+) Build|HIT HT707[10]MG|CITI ATL 4G|CITI Kids|CITI Octa [178]0|CITI 1902 3G|CITI Z530 3G|(CITI[_ ](?:[A-Z0-9]+)[_ ][34]G)[ _][TC][ST](606[32]ML|11[459]4MG|1207MG|1210MG|1195MG|1196ML|3001ML|4024PG|500[67]PG|720[48]MG|7113PL|7193MG|820[69]MG|8139ML|8143MG|8152ML|1050PL|8205PG|7203MG)|HIT 4G|HT7074ML|IDX5|(iDx10|iDx7)|MVM900H(?:WZ|C)|MVM908HCZ|(iDxD8 3G|iDxD10 3G|iDrQ10 3G|iDxD[45]|iDxQ5|iD[nx]D7(?:[_ ]3G)?)|PS604M|PT452E|LINX B510 3G LT5037MG|LINX A452 3G LT4030PG|LINX A453 3G LT4038PG|LINX A420 3G LS4019PG|LINX A450 3G LT4028PG|Linx A400 3G LT4001PG|Linx C500 3G LT5001PG|Linx PS474S|LS504[01]PL|LT40(47|54)MG|PS1043MG|LS405[01]MG|LS5053ML|LT5048MG|HT7071MG|LT5052ML|HT5035PG|HT4039PG|LT4049PG|NS6902QL|NS9797MG|TT1004PG|TT7025MG|((?:Optima|Platina|Plane)[ _](?:[EM])?(?:[0-9\.ST]+|Prime)(?:[ _][43]G)?)|(VOX[ _](?:[0-9\.A-Z]+)[_ ][43]G)'
regex: 'Digma[_ ]([^;/]+) Build|HIT HT707[10]MG|CITI ATL 4G|CITI Kids|CITI Octa [178]0|CITI 1902 3G|CITI Z530 3G|(CITI[_ ](?:[A-Z0-9]+)[_ ][34]G)[ _][TC][ST](606[32]ML|11[459]4MG|1207MG|1210MG|1195MG|1196ML|3001ML|4024PG|500[67]PG|720[48]MG|7113PL|7193MG|820[69]MG|8139ML|8143MG|8152ML|1050PL|8205PG|7203MG)|HIT 4G|HT7074ML|IDX5|(iDx10|iDx7)|MVM900H(?:WZ|C)|MVM908HCZ|(iDxD8 3G|iDxD10 3G|iDrQ10 3G|iDxD[45]|iDxQ5|iD[nx]D7(?:[_ ]3G)?)|PS604M|PT452E|LINX B510 3G LT5037MG|LINX A452 3G LT4030PG|LINX A453 3G LT4038PG|LINX A420 3G LS4019PG|LINX A450 3G LT4028PG|Linx A400 3G LT4001PG|Linx C500 3G LT5001PG|Linx PS474S|LS504[01]PL|LT40(47|54)MG|PS1043MG|LS405[01]MG|LS5053ML|LT5048MG|HT7071MG|LT5052ML|HT5035PG|HT4039PG|LT4049PG|NS6902QL|NS9797MG|TS7854M|TS1012E 3G|TT1004PG|TT702[045]MG|TT7026MW|((?:Optima|Platina|Plane)[ _](?:[EM])?(?:[0-9\.ST]+|Prime)(?:[ _][43]G)?)|(VOX[ _](?:[0-9\.A-Z]+)[_ ][43]G)'
device: 'smartphone'
models:
- regex: 'HIT(?: 3G)? HT707[10]MG'
Expand Down Expand Up @@ -4088,9 +4088,15 @@ Digma:
- regex: '(CITI [A-Z0-9]+ [34]G) C[ST](?:606[32]ML|4024PG)'
model: '$1'

- regex: 'TS7854M'
model: 'Plane 8.1" 3G'
device: 'tablet'
- regex: 'PS1043MG'
model: 'Plane 10.3" 3G'
device: 'tablet'
- regex: 'TS1012E 3G'
model: 'Plane 10.1" 3G'
device: 'tablet'
- regex: 'MVM900H(?:WZ|C)'
model: 'iDx8'
device: 'tablet'
Expand Down Expand Up @@ -4131,6 +4137,15 @@ Digma:
- regex: 'TT7025MG'
model: 'Optima 7.5" 3G'
device: 'tablet'
- regex: 'TT7026MW'
model: 'Optima 7.6" 3G'
device: 'tablet'
- regex: 'TT7020MG'
model: 'Optima 7.3" 3G'
device: 'tablet'
- regex: 'TT7024MG'
model: 'Optima 7.4" 3G'
device: 'tablet'
- regex: '((?:Optima|Platina|Plane)[ _](?:[EM])?(?:[0-9\.STNM]+|Prime)(?:[ _][43]G)?)'
model: '$1'
device: 'tablet'
Expand Down Expand Up @@ -5439,9 +5454,9 @@ Ginzzu:
regex: 'GINZZU[_ ]|((?:RS(?:7[14]|81|9[67])D)|S50[45]0|S5120|RS(6[12]|9[45])D|S40[23]0|RS850[12]|RS9602)(?:[);/ ]|$)'
device: 'smartphone'
models:
- regex: 'GINZZU[_ ]?(S40[17]0|S4710|ST6040|ST6120)'
- regex: 'GINZZU[_ ]?(S40[17]0|S4710|ST60[14]0|ST6120)'
model: '$1'
- regex: 'GINZZU[_ ]?(GT-(?:1050|7105|70[1-4]0|7115|7210|[WX]831|X770|7810|8[01]10))'
- regex: 'GINZZU[_ ]?(GT-(?:1050|7105|70[1-4]0|7115|7210|[WX]831|X[78|70|7810|8[01]10|X853))'
model: '$1'
device: 'tablet'
- regex: '(RS6[12]D) ULTIMATE'
Expand Down Expand Up @@ -7309,13 +7324,15 @@ Kaan:

# Kazam
Kazam:
regex: 'Kazam|Trooper_X[0-9][0-9](?:[);/ ]|$)|Tornado 348'
regex: 'Kazam|Trooper_X[0-9][0-9](?:[);/ ]|$)|Tornado 348|TROOPER 4\.0'
device: 'smartphone'
models:
- regex: 'Tornado 348'
model: 'Tornado 348'
- regex: 'Thunder 450W'
model: 'Thunder 450W'
- regex: 'TROOPER 4\.0'
model: 'Trooper X4.0'
- regex: 'Trooper_X([0-9])([0-9])(?:[);/ ]|$)'
model: 'Trooper X$1.$2'
- regex: 'Kazam[; _]([^;/)]+)(?: Build|\))'
Expand Down Expand Up @@ -9108,13 +9125,15 @@ Meitu:

# Memup
Memup:
regex: 'SlidePad ?([^;/]*) Build|SPNG?[0-9]{2,4}[a-z]{0,2}(?:[);/ ]|$)|SP704CE?'
regex: 'SlidePad ?([^;/]*) Build|SPNG?[0-9]{2,4}[a-z]{0,2}(?:[);/ ]|$)|SP704CE?|SP-NG708-3G'
device: 'tablet'
models:
- regex: 'SlidePad ?([^;/]*) Build'
model: 'SlidePad $1'
- regex: 'SPNG([0-9]{2,4}[a-z]{0,2})(?:[);/ ]|$)'
model: 'SlidePad NG$1'
- regex: 'SP-NG(708)-3G(?:[);/ ]|$)'
model: 'SlidePad NG$1 3G'
- regex: 'SP704(CE?)'
model: 'SlidePad 704$1'

Expand Down Expand Up @@ -10015,7 +10034,7 @@ O2:

# Odys
Odys:
regex: 'ODYS[ _-]|IEOS[_ ]([^/;]+)|NOON(?:_PRO)? Build|SPACE10_(?:PLUS|PRO)_3G|THOR_?10|TAO_X10|RAPID_?(?:10|7)_?LTE|MAVEN_?10_|CONNECT[78]|ELEMENT10_PLUS_3G|XELIO[_0-9P]|ADM816HC|ADM8000KP|NEO6_LTE|EOS10|AEON|FALCON_10_PLUS_3G|FUSION|THANOS_10|MAVEN_X10_HD(?:_LTE)?|JUNIOR_8_PRO|PYRO_7_PLUS_3G'
regex: 'ODYS[ _-]|IEOS[_ ]([^/;]+)|NOON(?:_PRO)? Build|SPACE10_(?:PLUS|PRO)_3G|THOR_?10|TAO_X10|RAPID_?(?:10|7)_?LTE|MAVEN_?10_|CONNECT[78]|ELEMENT10_PLUS_3G|XELIO[_0-9P]|ADM816HC|ADM8000KP|NEO6_LTE|EOS10|AEON|FALCON_10_PLUS_3G|FUSION|THANOS_10|MAVEN_X10_HD(?:_LTE)?|JUNIOR_8_PRO|PYRO_7_PLUS_3G|UNO_X8'
device: 'tablet'
models:
- regex: 'XELIO[_ ]A10'
Expand Down Expand Up @@ -10074,6 +10093,8 @@ Odys:
model: 'Falcon 10 Plus 3G'
- regex: 'FUSION'
model: 'Fusion 7'
- regex: 'UNO_X8'
model: 'Uno X8'
- regex: 'NEO6[_ ]LTE'
model: 'Neo 6 LTE'
device: 'smartphone'
Expand Down Expand Up @@ -15510,7 +15531,7 @@ Zopo:

# ZTE
ZTE:
regex: 'ZTE|AxonPhone|([a-z0-9]+)_USA_Cricket|(?:Blade (?:L110|L[2357]|L7A|S6|V[6789]|V8Q|V8 SE|V9 VITA|X7|A(310|460|465|475|520|530|602)|V580|V Ultra|Q Lux)|N9[15]8St|NX(?:403A|404H|406E|40[X2]|507J|503A|505J|506J|508J|510J|512J|511J|513J|521J|523J_V1|529J|531J|541J|5[48]9J|551J|563J|569[HJ]|573J|575J|59[157]J|60[1689]J|61[12679]J|62[79]J|65[19]J|907J)|N818S|N951[0579]|N91[38]0|N9101|N913[267]|N952[01]|N9560|N9810|N799D|[UV]9180|[UV]9815|Z(?:233V|331|5031O|559DL|6621O|667T|768G|792|81[25]|818L|82[08]|83[12359]|85[125]|851M|(557|71[67]|798|836|861|916)BL|986DL|(232|718|828)TL|(?:233|353|558|717|799|837|862|899|917|963)VL|955A|95[678]|965|97[018]|98[1237]|986U|999|936L)|Apex2|G (LTE|Lux)|Vec|Z959|V865M|Z3001S|902ZT|KIS II Max|Kis 3|K3DX-V5G|Z930L|Optus X|Blade[ _](A510|A[35] 2019-T|A6 MAX|A0622|X9)|Z3153V|Nubia Z(?:9|11)|Ctyon-A9|602ZT|MO-01[JK]|Z963U|402ZT|P545|P609|dandelion|901ZT|A001ZT|Z-01K)(?:[);/ ]|$)'
regex: 'ZTE|AxonPhone|([a-z0-9]+)_USA_Cricket|(?:Blade (?:L110|L[2357]|L7A|S6|V[6789]|V8Q|V8 SE|V9 VITA|X7|A(310|460|465|475|520|530|602)|V580|V Ultra|Q Lux)|N9[15]8St|NX(?:403A|404H|406E|40[X2]|507J|503A|505J|506J|508J|510J|512J|511J|513J|521J|523J_V1|529J|531J|541J|5[48]9J|551J|563J|569[HJ]|573J|575J|59[157]J|60[1689]J|61[12679]J|62[79]J|65[19]J|907J)|N818S|N951[0579]|N91[38]0|N9101|N913[267]|N952[01]|N9560|N9810|N799D|[UV]9180|[UV]9815|Z(?:233V|331|5031O|559DL|6621O|667T|768G|792|81[25]|818L|82[08]|83[12359]|85[125]|851M|(557|71[67]|798|836|861|916)BL|986DL|(232|718|828)TL|(?:233|353|558|717|799|837|862|899|917|963)VL|955A|95[678]|965|97[018]|98[1237]|986U|999|936L)|Apex2|G (LTE|Lux)|Vec|Z959|V865M|Z3001S|902ZT|KIS II Max|Kis 3|K3DX-V5G|Z930L|Optus X|Blade[ _](A510|A[35] 2019-T|A6 MAX|A0622|X9)|Z3153V|Nubia Z(?:9|11)|Ctyon-A9|602ZT|MO-01[JK]|Z963U|402ZT|P545|P609|dandelion|901ZT|A001ZT|Z-01K|UZTE V808)(?:[);/ ]|$)'
device: 'smartphone'
models:
# explicit smartphone models
Expand Down Expand Up @@ -15910,7 +15931,7 @@ ZTE:
model: '$1'
- regex: 'ZTE-(?:G |G-)?([a-z0-9 _]+)'
model: '$1'
- regex: 'ZTE[ _]([a-z0-9]+)'
- regex: 'U?ZTE[ _]([a-z0-9]+)'
model: '$1'

Zuum:
Expand Down Expand Up @@ -17401,7 +17422,7 @@ TurboKids:

# Jinga
Jinga:
regex: 'Jinga[-_ ]|(?:Optim4G|PassPlus|PicassoNote|Hotz[_ ]M1|WinPRO)(?:[);/ ]|$)'
regex: 'Jinga[-_ ]|(?:Optim4G|PassPlus|PicassoNote|Hotz[_ ]M1|WinPRO|IGO[ _]L[41])(?:[);/ ]|$)'
device: 'smartphone'
models:
- regex: 'Optim4G(?:[);/ ]|$)'
Expand All @@ -17424,8 +17445,8 @@ Jinga:
model: 'Trezor S1 Plus'
- regex: 'JINGA_IGO_L2(?:[);/ ]|$)'
model: 'IGO L2'
- regex: 'JINGA_IGO_M1(?:[);/ ]|$)'
model: 'IGO M1'
- regex: '(?:JINGA[_ ])?IGO[_ ]([ML]1|L4)(?:[);/ ]|$)'
model: 'IGO $1'
- regex: 'Jinga Trezor S1 Plus(?:[);/ ]|$)'
model: 'Trezor S1 Plus'

Expand Down

0 comments on commit 54041d1

Please sign in to comment.