Skip to content

Commit

Permalink
feat(device) detect brand Haier: P2
Browse files Browse the repository at this point in the history
  • Loading branch information
sanchezzzhak committed Oct 10, 2022
1 parent 128e05f commit cfa0ed3
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 1 deletion.
36 changes: 36 additions & 0 deletions Tests/fixtures/smartphone-33.yml
Original file line number Diff line number Diff line change
Expand Up @@ -791,3 +791,39 @@
model: Nile X
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; arm_64; Android 6.0; P2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.5112.114 YaBrowser/22.9.4.79.00 SA/3 Mobile Safari/537.36
os:
name: Android
version: "6.0"
platform: ARM
client:
type: browser
name: Yandex Browser
version: 22.9.4.79.00
engine: Blink
engine_version: 104.0.5112.114
device:
type: smartphone
brand: Haier
model: P2
os_family: Android
browser_family: Unknown
-
user_agent: Mozilla/5.0 (Linux; Android 7.0; P2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Mobile Safari/537.36
os:
name: Android
version: "7.0"
platform: ""
client:
type: browser
name: Chrome Mobile
version: 103.0.0.0
engine: Blink
engine_version: 103.0.0.0
device:
type: smartphone
brand: Haier
model: P2
os_family: Android
browser_family: Chrome
4 changes: 3 additions & 1 deletion regexes/device/mobiles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8425,7 +8425,7 @@ Hafury:

# Haier (www.haier.com)
Haier:
regex: 'Haier|(?:M53-52401|I6_Infinity|Titan[ _]T[135]|(?:HW-)?W(?:71[67]|757|86[07]|970)|S5 Silk|(?:HM-)?(N505|N700|G(?:152|303|353|552|70[01])?-FL|HM-(?:I559|N50[15]|I560|G553|N70[01])-FL|HR-V101|G(?:303)?-W|I(?:557)?-FL)|(?:PAD[ _](?:D71|G781|d85))|A2_Lite_NFC|A4_Lite|HL810G|android 8([\d.]*);(?: [\w-]+;)? E13)(?:[);/ ]|$)'
regex: 'Haier|(?:M53-52401|I6_Infinity|Titan[ _]T[135]|(?:HW-)?W(?:71[67]|757|86[07]|970)|S5 Silk|(?:HM-)?(N505|N700|G(?:152|303|353|552|70[01])?-FL|HM-(?:I559|N50[15]|I560|G553|N70[01])-FL|HR-V101|G(?:303)?-W|I(?:557)?-FL)|(?:PAD[ _](?:D71|G781|d85))|A2_Lite_NFC|A4_Lite|HL810G|android 8([\d.]*);(?: [\w-]+;)? E13)(?:[);/ ]|$)|Android [67](?:[\d.]*);(?: [\w-]+;)? P2(?: Build|[;)])'
device: 'smartphone'
models:
- regex: 'A2_Lite_NFC'
Expand All @@ -8450,6 +8450,8 @@ Haier:
model: 'G7s'
- regex: 'HM-G553-FL'
model: 'G51'
- regex: ' P2(?: Build|[;)])'
model: 'P2'
- regex: '(?:HM-)?(G(?:152|353|552|70[01])|G(?:303)|I(?:557))'
model: '$1'
- regex: '(Titan[_ ]T[135]|I6_Infinity)'
Expand Down

0 comments on commit cfa0ed3

Please sign in to comment.