Skip to content

Commit

Permalink
feat(device) detect brand Xiaomi model: Redmi 2 (WT88047)
Browse files Browse the repository at this point in the history
  • Loading branch information
sanchezzzhak committed Jun 26, 2020
1 parent e768af2 commit 2fa6d4f
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
20 changes: 20 additions & 0 deletions Tests/fixtures/smartphone-14.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6734,3 +6734,23 @@
model: Redmi 2 Pro
os_family: Android
browser_family: Android Browser
-
user_agent: Dalvik/2.1.0 (Linux; U; Android 5.1.1; wt88047 MIUI/LVY48I)
os:
name: Android
short_name: AND
version: 5.1.1
platform: ""
client:
type: browser
name: Android Browser
short_name: AN
version: ""
engine: WebKit
engine_version: ""
device:
type: smartphone
brand: XI
model: Redmi 2
os_family: Android
browser_family: Android Browser
4 changes: 3 additions & 1 deletion regexes/device/mobiles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12612,7 +12612,7 @@ X-View:

# Xiaomi
Xiaomi:
regex: 'Xiaomi(?!/(?:Miui|Mint[ ])Browser)|Mi9 Pro 5G|(?:MI [a-z0-9]+|Mi-4c|MI-One[ _]?[a-z0-9]+|MIX(?: 2S?)?)[);/ ]|HM (?:[^/;]+) (?:Build|MIUI)|(?:2014501|2014011|201481[12378]|201302[23]|2013061) Build|Redmi|MI_NOTE_Pro|POCOPHONE|(?:SHARK )?(KLE|MBU)-A0|SKR-[AH]0|SKW-[AH]0|POCO F1|DLT-[AH]0|MIBOX[34]([_ ]PRO)?|MiTV4[CSX]?|MiTV-(MSSP1|AXSO0)|AWM-A0|MI CC 9 Meitu Edition|MiBOX1S|M2002J9E|HM2014819'
regex: 'Xiaomi(?!/(?:Miui|Mint[ ])Browser)|Mi9 Pro 5G|(?:MI [a-z0-9]+|Mi-4c|MI-One[ _]?[a-z0-9]+|MIX(?: 2S?)?)[);/ ]|HM (?:[^/;]+) (?:Build|MIUI)|(?:2014501|2014011|201481[12378]|201302[23]|2013061) Build|Redmi|MI_NOTE_Pro|POCOPHONE|(?:SHARK )?(KLE|MBU)-A0|SKR-[AH]0|SKW-[AH]0|POCO F1|DLT-[AH]0|MIBOX[34]([_ ]PRO)?|MiTV4[CSX]?|MiTV-(MSSP1|AXSO0)|AWM-A0|MI CC 9 Meitu Edition|MiBOX1S|M2002J9E|HM2014819|WT88047'
device: 'smartphone'
models:
# specific smartphone models
Expand Down Expand Up @@ -12676,6 +12676,8 @@ Xiaomi:
model: 'Pocophone F1'
- regex: 'Redmi 5 Plus'
model: 'Redmi 5 Plus'
- regex: 'WT88047[);/ ]'
model: 'Redmi 2'
- regex: 'HM2014819[);/ ]'
model: 'Redmi 2 Pro'
- regex: 'HM 2A[);/ ]'
Expand Down

0 comments on commit 2fa6d4f

Please sign in to comment.