Skip to content

Commit

Permalink
fixes #6141 - Improves detection for Oppo A5
Browse files Browse the repository at this point in the history
  • Loading branch information
sgiehl committed Dec 21, 2019
1 parent 34408d5 commit 5040c45
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
20 changes: 20 additions & 0 deletions Tests/fixtures/smartphone-9.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9975,3 +9975,23 @@
model: GALAXY S7 edge
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; U; Android 8.1.0; en-us; PBBT30 Build/JSS15J) Version/4.0 Mobile Safari/534.30
os:
name: Android
short_name: AND
version: "8.1.0"
platform: ""
client:
type: browser
name: Android Browser
short_name: AN
version: ""
engine: WebKit
engine_version: ""
device:
type: smartphone
brand: OP
model: A5
os_family: Android
browser_family: Android Browser
4 changes: 2 additions & 2 deletions regexes/device/mobiles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8381,7 +8381,7 @@ OnePlus:

# oppo
OPPO:
regex: '(?:OB-)?OPPO[ _]?([a-z0-9]+)|N1T|(?:X90[07][0679]|U707T?|X909T?|R(?:10[01]1|2001|201[07]|6007|7005|7007|80[13579]|81[13579]|82[01379]|83[013]|800[067]|8015|810[679]|811[13]|820[057])[KLSTW]?|N520[79]|N5117|A33f|A33fw|A37fw?|PAAM00|PAC[T|M]00|PBAM00)[);/ ]|R7kf|R7plusf|R7Plusm|A1601|CPH[0-9]{4}|PCAM10|PADM00|PBBT00|PBBM[03]0|RMX18(0[1579]|11|3[13]|2[15]|[45]1|45)|CPH19(69|79|23|1[179])|RMX(1827|194[135]|19[01]1|1971|1921)|PC[CD]M00|PBAT00|PBCM[13]0|P[CB]E[MT]00|PBFM00|PAFM00'
regex: '(?:OB-)?OPPO[ _]?([a-z0-9]+)|N1T|(?:X90[07][0679]|U707T?|X909T?|R(?:10[01]1|2001|201[07]|6007|7005|7007|80[13579]|81[13579]|82[01379]|83[013]|800[067]|8015|810[679]|811[13]|820[057])[KLSTW]?|N520[79]|N5117|A33f|A33fw|A37fw?|PAAM00|PAC[T|M]00|PBAM00)[);/ ]|R7kf|R7plusf|R7Plusm|A1601|CPH[0-9]{4}|PCAM10|PADM00|PBBT00|PBBM[03]0|RMX18(0[1579]|11|3[13]|2[15]|[45]1|45)|CPH19(69|79|23|1[179])|RMX(1827|194[135]|19[01]1|1971|1921)|PC[CD]M00|PBAT00|PBBT30|PBCM[13]0|P[CB]E[MT]00|PBFM00|PAFM00'
device: 'smartphone'
models:
- regex: '(?:OPPO[ _]?)?U707T?[);/ ]'
Expand Down Expand Up @@ -8484,7 +8484,7 @@ OPPO:
model: 'A71'
- regex: '(?:OPPO[ _]?)?CPH18(0[35]|53)[);/ ]'
model: 'A3s'
- regex: '(?:OPPO[ _]?)?(?:CPH1809|PBAT00)[);/ ]'
- regex: '(?:OPPO[ _]?)?(?:CPH1809|PBAT00|PBBT30)[);/ ]'
model: 'A5'
- regex: 'CPH193[13]'
model: 'A5 (2020)'
Expand Down

0 comments on commit 5040c45

Please sign in to comment.