Skip to content

Commit

Permalink
feat: detect device brand ZTE: MEO Smart A35
Browse files Browse the repository at this point in the history
feat: detect device brand Elephone: C1 Max
  • Loading branch information
sanchezzzhak committed Oct 11, 2023
1 parent e815517 commit f476f1f
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 2 deletions.
52 changes: 52 additions & 0 deletions Tests/fixtures/smartphone-37.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2001,3 +2001,55 @@
model: Q-502
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; U; Android 4.1.2; ru-ua; HTC Desire 600 dual sim Build/JZO54K) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30
os:
name: Android
version: 4.1.2
platform: ""
client:
type: browser
name: Android Browser
version: ""
engine: WebKit
engine_version: "534.30"
device:
type: smartphone
brand: HTC
model: Desire 600 Dual SIM
os_family: Android
browser_family: Android Browser
-
user_agent: Mozilla/5.0 (Linux; Android 6.0; SmartA35 Build/MRA58K; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/65.0.3325.109 Mobile Safari/537.36 Instagram 45.0.0.17.93 Android (23/6.0; 240dpi; 854x480; MOBIWIRE/ALTICE; SmartA35; SmartA35; mt6580; en_US; 108357718)
os:
name: Android
version: "6.0"
platform: ""
client:
type: mobile app
name: Instagram App
version: 45.0.0.17.93
device:
type: smartphone
brand: ZTE
model: MEO Smart A35
os_family: Android
browser_family: Unknown
-
user_agent: Mozilla/5.0 (Linux; Android 7.0; C1_Max Build/NRD90M; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/51.0.2704.91 Mobile Safari/537.36
os:
name: Android
version: "7.0"
platform: ""
client:
type: browser
name: Chrome Webview
version: 51.0.2704.91
engine: Blink
engine_version: 51.0.2704.91
device:
type: smartphone
brand: Elephone
model: C1 Max
os_family: Android
browser_family: Chrome
8 changes: 6 additions & 2 deletions regexes/device/mobiles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7091,7 +7091,7 @@ Eks Mobility:

# Elephone
Elephone:
regex: 'Elephone|Vowney(?: Lite)?|P6000(?!_Plus)( ?Pro| ?Plus|\+| ?02| 5.0 01)?|(?<!Chrome/)Soldier|(?:Trunk 1|P8_3D|P8_Max|P8_Mini|A6_mini|P9000(?:_Lite)?|Android 9;(?: [\w-]+;)? PX|PX_Pro| U3H|U_Pro|Android 10;(?: [\w-]+;)? (?:E10_Pro|E10))(?:[);/ ]|$)'
regex: 'Elephone|Vowney(?: Lite)?|P6000(?!_Plus)( ?Pro| ?Plus|\+| ?02| 5.0 01)?|(?<!Chrome/)Soldier|C1_Max|(?:Trunk 1|P8_3D|P8_Max|P8_Mini|A6_mini|P9000(?:_Lite)?|Android 9;(?: [\w-]+;)? PX|PX_Pro| U3H|U_Pro|Android 10;(?: [\w-]+;)? (?:E10_Pro|E10))(?:[);/ ]|$)'
device: 'smartphone'
models:
- regex: '(?:Elephone[_ ])?Trunk(?: 1)?(?:[);/ ]|$)'
Expand Down Expand Up @@ -7120,6 +7120,8 @@ Elephone:
model: '$1 Pro'
- regex: ' U3H(?:[);/ ]|$)'
model: 'U3H'
- regex: 'C1_Max(?:[);/ ]|$)'
model: 'C1 Max'
- regex: 'Android 9;(?: [\w-]+;)? PX(?:[);/ ]|$)'
model: 'PX'
- regex: '(P8_3D|P8_Max)(?:[);/ ]|$)'
Expand Down Expand Up @@ -26918,7 +26920,7 @@ Rakuten:

# ZTE
ZTE:
regex: 'ZTE(?!; MegaFon)|AxonPhone|([a-z0-9]+)_USA_Cricket|(?:Blade[ _](?:E01|V0820|L110|L[2357]|L7A|L8|S6|V[6789]|V8Q|V8 SE|V9 VITA|X7|A(310?|320|460|465|475|510|520|530|602|51|30|3)|V580|V Ultra|Q Lux)|N9[15]8St|N818S|N951[0579]|N91[38]0|N9101|N913[267]|N952[01]|N9560|N9810|N799D|[UV]9180|[UV]9815|Z(?:5151V|610DL|6250CC|6400C|6410S|233V|331|5031O|559DL|6621O|667T|6750M|768G|792|81[25]|818L|82[08]|83[12359]|85[125]|851M|992|(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)|V769M|Blade Apex2|G (LTE|Lux)|Vec|Z959|V865M|Z3001S|902ZT|KIS II Max|Kis 3|K3DX-V5G|Z930L|Optus X|Blade[ _](A[357] 2019(?:-T)?|A[35] 2020-T|A7S 2020-T|A6 MAX|A0622|X9)|Z3153V|Z836F|Ctyon-A9|602ZT|MO-01[JK]|Z963U|402ZT|P545|P609|P650 Pro|dandelion|901ZT|A00[13]ZT|Z-01K|UZTE (?:GRAND V7|V808)|ZTG01|K8[37]CA|K87CC|VERGATARIO ?5(?:PLUS)?|Axon mini|KIS C341|A103ZT|Z335(?:1S|[23]CA)|Z5156CC|Z5157[VY]|B867RE|MEO Smart A[48]0|P65[10] 2021|Z6201V|Z6252CA|Z6251V?|A2020N3|A202ZT|Z719DL|Z5158|B2017G)(?:[);/ ]|$)'
regex: 'ZTE(?!; MegaFon)|AxonPhone|([a-z0-9]+)_USA_Cricket|(?:Blade[ _](?:E01|V0820|L110|L[2357]|L7A|L8|S6|V[6789]|V8Q|V8 SE|V9 VITA|X7|A(310?|320|460|465|475|510|520|530|602|51|30|3)|V580|V Ultra|Q Lux)|N9[15]8St|N818S|N951[0579]|N91[38]0|N9101|N913[267]|N952[01]|N9560|N9810|N799D|[UV]9180|[UV]9815|Z(?:5151V|610DL|6250CC|6400C|6410S|233V|331|5031O|559DL|6621O|667T|6750M|768G|792|81[25]|818L|82[08]|83[12359]|85[125]|851M|992|(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)|V769M|Blade Apex2|G (LTE|Lux)|Vec|Z959|V865M|Z3001S|902ZT|KIS II Max|Kis 3|K3DX-V5G|Z930L|Optus X|Blade[ _](A[357] 2019(?:-T)?|A[35] 2020-T|A7S 2020-T|A6 MAX|A0622|X9)|Z3153V|Z836F|Ctyon-A9|602ZT|MO-01[JK]|Z963U|402ZT|P545|P609|P650 Pro|dandelion|901ZT|A00[13]ZT|Z-01K|UZTE (?:GRAND V7|V808)|ZTG01|K8[37]CA|K87CC|VERGATARIO ?5(?:PLUS)?|Axon mini|KIS C341|A103ZT|Z335(?:1S|[23]CA)|Z5156CC|Z5157[VY]|B867RE|MEO Smart A[48]0|SmartA35|P65[10] 2021|Z6201V|Z6252CA|Z6251V?|A2020N3|A202ZT|Z719DL|Z5158|B2017G)(?:[);/ ]|$)'
device: 'smartphone'
models:
# explicit smartphone models
Expand Down Expand Up @@ -27416,6 +27418,8 @@ ZTE:
model: 'Kis C341'
- regex: 'MEO Smart A([48]0)'
model: 'MEO Smart A$1'
- regex: 'Smart ?A(35)'
model: 'MEO Smart A$1'

- regex: 'A2121[LE]?(?:[);/ ]|$)'
device: 'phablet'
Expand Down

0 comments on commit f476f1f

Please sign in to comment.