Skip to content

Commit 4321484

Browse files
committed
feat(device): detect brand Realme: GT 5 (RMX3823), 11 Pro (RMX3770)
1 parent 67c4d05 commit 4321484

File tree

2 files changed

+43
-3
lines changed

2 files changed

+43
-3
lines changed

Tests/fixtures/smartphone-37.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5153,3 +5153,39 @@
51535153
model: G5 Mecha
51545154
os_family: Android
51555155
browser_family: Unknown
5156+
-
5157+
user_agent: Mozilla/5.0 (Linux; arm_64; Android 13; RMX3823) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.5845.64 YaSearchBrowser/23.99.1 BroPP/1.0 YaSearchApp/23.99.1 webOmni SA/3 Mobile Safari/537.36
5158+
os:
5159+
name: Android
5160+
version: "13"
5161+
platform: ARM
5162+
client:
5163+
type: browser
5164+
name: Yandex Browser
5165+
version: 23.99.1
5166+
engine: Blink
5167+
engine_version: 116.0.5845.64
5168+
device:
5169+
type: smartphone
5170+
brand: Realme
5171+
model: GT 5
5172+
os_family: Android
5173+
browser_family: Unknown
5174+
-
5175+
user_agent: Mozilla/5.0 (Linux; arm_64; Android 13; RMX3770) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.5993.2332 YaApp_Android/23.110.1 YaSearchBrowser/23.110.1 BroPP/1.0 SA/3 Mobile Safari/537.36
5176+
os:
5177+
name: Android
5178+
version: "13"
5179+
platform: ARM
5180+
client:
5181+
type: browser
5182+
name: Yandex Browser
5183+
version: 23.110.1
5184+
engine: Blink
5185+
engine_version: 118.0.5993.2332
5186+
device:
5187+
type: smartphone
5188+
brand: Realme
5189+
model: 11 Pro
5190+
os_family: Android
5191+
browser_family: Unknown

regexes/device/mobiles.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17936,7 +17936,7 @@ OnePlus:
1793617936

1793717937
# Realme (sub brand Oppo)
1793817938
Realme:
17939-
regex: 'Realme[ _]|(?:RMX(?:18(0[13579]|11|3[13]|2[1257]|[45]1|53|45)|19(03|4[1235]|19|9[23]|2[1579]|[01379]1|73)|20(?:[025-7]1|42|[0357]2|03|2[257]|63|7[56]|63L1|8[1356]|[2-5]0)|21(?:0[13]|1[27]|[12]1|4[24]|5[156]|6[13]|7[036]|8[0359]|9[345])|220[0125]|30(?:[3468]1|4[23]|9[23]|63|85)|31(?:15|2[125]|42|51|6[16]|71|9[1357])|32(?:0[13]|35|42|[346]1|6[0235689]|86)|33(?:[0157]0|[17]2|71|6[036]|[0186]1|57|88|9[12356])|34(?:30|78|[69]1|[67]2|7[145]|9[23])|35(?:0[1236]|1[1367]|21|[578]1|6[0123]|7[24])|36(?:1[01257]|[39]0|2[347]|8[67]|6[013])|370[0689]|37[146]0|37[47]1|3830)|(?:OPPO[ _]?)?CPH1861|RMP210[235-8]|4K Google TV Stick)(?:[);/ ]|$)'
17939+
regex: 'Realme[ _]|(?:RMX(?:18(0[13579]|11|3[13]|2[1257]|[45]1|53|45)|19(03|4[1235]|19|9[23]|2[1579]|[01379]1|73)|20(?:[025-7]1|42|[0357]2|03|2[257]|63|7[56]|63L1|8[1356]|[2-5]0)|21(?:0[13]|1[27]|[12]1|4[24]|5[156]|6[13]|7[036]|8[0359]|9[345])|220[0125]|30(?:[3468]1|4[23]|9[23]|63|85)|31(?:15|2[125]|42|51|6[16]|71|9[1357])|32(?:0[13]|35|42|[346]1|6[0235689]|86)|33(?:[0157]0|[17]2|71|6[036]|[0186]1|57|88|9[12356])|34(?:30|78|[69]1|[67]2|7[145]|9[23])|35(?:0[1236]|1[1367]|21|[578]1|6[0123]|7[24])|36(?:1[01257]|[39]0|2[347]|8[67]|6[013])|370[0689]|37[1467]0|37[47]1|3830|3823)|(?:OPPO[ _]?)?CPH1861|RMP210[235-8]|4K Google TV Stick)(?:[);/ ]|$)'
1794017940
device: 'smartphone'
1794117941
models:
1794217942
- regex: 'RMX370[68]'
@@ -18049,6 +18049,8 @@ Realme:
1804918049
model: '11 Pro+'
1805018050
- regex: 'RMX3771'
1805118051
model: '11 Pro 5G'
18052+
- regex: 'RMX3770'
18053+
model: '11 Pro'
1805218054
- regex: 'RMX1925(?:[);/ ]|$)'
1805318055
model: '5S'
1805418056
- regex: 'RMX1811(?:[);/ ]|$)'
@@ -18097,6 +18099,8 @@ Realme:
1809718099
model: 'C53'
1809818100
- regex: 'RMX3231'
1809918101
model: 'C11 (2021)'
18102+
- regex: 'RMX3823'
18103+
model: 'GT 5'
1810018104
- regex: 'RMX3709'
1810118105
model: 'GT 3'
1810218106
- regex: 'RMX330[01]'
@@ -22397,7 +22401,7 @@ QMobile:
2239722401
model: 'i8i'
2239822402
- regex: 'i6 Metal ONE'
2239922403
model: 'i6 Metal One'
22400-
- regex: 'i6 Metal (2018)'
22404+
- regex: 'i6 Metal (201[78])'
2240122405
model: 'i6 Metal ($1)'
2240222406
- regex: 'Smart HD Pro'
2240322407
model: 'Smart HD Pro'
@@ -29196,7 +29200,7 @@ Ryte:
2919629200

2919729201
# Vontar
2919829202
Vontar:
29199-
regex: '(HK1 (?:Max|MINI\+?|PLUS|PRO)|KK MAX|VONTAR[ -](?:Z[58]|[VH]1|KIII|MX-4K|X[234])|H618|R3)(?:[);/ ]|$)'
29203+
regex: '(HK1 (?:Max|MINI\+?|PLUS|PRO)|KK MAX|VONTAR[ -](?:Z[58]|[VH]1|KIII|MX-4K|X[234]|R3)|H618)(?:[);/ ]|$)'
2920029204
device: 'tv'
2920129205
models:
2920229206
- regex: 'VONTAR[ -](Z[58]|[VH]1|KIII|MX-4K|X[234]|H618|R3)(?:[);/ ]|$)'

0 commit comments

Comments
 (0)