Skip to content

Commit c14d221

Browse files
committed
feat: detect device brand Tecno Mobile: Pova Neo 2 (TECNO Mobile LG6n)
feat: detect device brand Asus: ROG Phone 7 (AI2205_D) feat: detect device brand Vivo: Y27 5G (V2302), Y02t (V2254), Y22 (V2238) feat: detect device brand Infinix: Hot 30 Play (X6835) feat: detect device brand Highscreen: Explosion feat: detect device brand OPPO: R15 Neo feat: detect device brand Xiaomi: Pad 6 (23043RP34I) feat: detect device brand Vityaz: 43LU1204 feat: detect device brand BBK: 40LEX-7202/FTS2C, 43LEX-7287/TS2C
1 parent c10998d commit c14d221

File tree

6 files changed

+244
-18
lines changed

6 files changed

+244
-18
lines changed

Tests/fixtures/phablet-1.yml

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -903,8 +903,8 @@
903903
platform: ""
904904
client:
905905
type: browser
906-
name: Chrome Webview
907-
version: 92.0.4515.131
906+
name: Hi Browser
907+
version: 2.6.4.1
908908
engine: Blink
909909
engine_version: 92.0.4515.131
910910
device:
@@ -921,8 +921,8 @@
921921
platform: ""
922922
client:
923923
type: browser
924-
name: Chrome Webview
925-
version: 92.0.4515.131
924+
name: Hi Browser
925+
version: 2.6.3.1
926926
engine: Blink
927927
engine_version: 92.0.4515.131
928928
device:
@@ -1679,3 +1679,21 @@
16791679
model: Galaxy Z Flip 5
16801680
os_family: Android
16811681
browser_family: Unknown
1682+
-
1683+
user_agent: Mozilla/5.0 (Linux; Android 12; en; TECNO Mobile LG6n Build/SP1A.210812.016) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.5060.129 HiBrowser/v2.9.3.4 UWS/ Mobile Safari/537.36
1684+
os:
1685+
name: Android
1686+
version: "12"
1687+
platform: ""
1688+
client:
1689+
type: browser
1690+
name: Hi Browser
1691+
version: 2.9.3.4
1692+
engine: Blink
1693+
engine_version: 103.0.5060.129
1694+
device:
1695+
type: phablet
1696+
brand: Tecno Mobile
1697+
model: Pova Neo 2
1698+
os_family: Android
1699+
browser_family: Chrome

Tests/fixtures/smartphone-37.yml

Lines changed: 126 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2089,3 +2089,129 @@
20892089
model: Garnet
20902090
os_family: Android
20912091
browser_family: Android Browser
2092+
-
2093+
user_agent: Mozilla/5.0 (Linux; Android 13; V2302; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/87.0.4280.141 Mobile Safari/537.36 VivoBrowser/11.1.0.0
2094+
os:
2095+
name: Android
2096+
version: "13"
2097+
platform: ""
2098+
client:
2099+
type: browser
2100+
name: vivo Browser
2101+
version: 11.1.0.0
2102+
engine: WebKit
2103+
engine_version: "537.36"
2104+
device:
2105+
type: smartphone
2106+
brand: Vivo
2107+
model: Y27 5G
2108+
os_family: Android
2109+
browser_family: Unknown
2110+
-
2111+
user_agent: Mozilla/5.0 (Linux; Android 13; Infinix X6835) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Mobile Safari/537.36
2112+
os:
2113+
name: Android
2114+
version: "13"
2115+
platform: ""
2116+
client:
2117+
type: browser
2118+
name: Chrome Mobile
2119+
version: 108.0.0.0
2120+
engine: Blink
2121+
engine_version: 108.0.0.0
2122+
device:
2123+
type: smartphone
2124+
brand: Infinix
2125+
model: Hot 30 Play
2126+
os_family: Android
2127+
browser_family: Chrome
2128+
-
2129+
user_agent: Mozilla/5.0 (Linux; Android 4.1; Explosion) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.80 Mobile Safari/537.36
2130+
os:
2131+
name: Android
2132+
version: "4.1"
2133+
platform: ""
2134+
client:
2135+
type: browser
2136+
name: Chrome Mobile
2137+
version: 70.0.3538.80
2138+
engine: Blink
2139+
engine_version: 70.0.3538.80
2140+
device:
2141+
type: smartphone
2142+
brand: Highscreen
2143+
model: Explosion
2144+
os_family: Android
2145+
browser_family: Chrome
2146+
-
2147+
user_agent: Mozilla/5.0 (Linux; Android 13; V2254) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Mobile Safari/537.36
2148+
os:
2149+
name: Android
2150+
version: "13"
2151+
platform: ""
2152+
client:
2153+
type: browser
2154+
name: Chrome Mobile
2155+
version: 104.0.0.0
2156+
engine: Blink
2157+
engine_version: 104.0.0.0
2158+
device:
2159+
type: smartphone
2160+
brand: Vivo
2161+
model: Y02t
2162+
os_family: Android
2163+
browser_family: Chrome
2164+
-
2165+
user_agent: Mozilla/5.0 (Linux; Android 8.1; R15 Neo) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Mobile Safari/537.36 EdgA/85.0.564.63
2166+
os:
2167+
name: Android
2168+
version: "8.1"
2169+
platform: ""
2170+
client:
2171+
type: browser
2172+
name: Microsoft Edge
2173+
version: 85.0.564.63
2174+
engine: Blink
2175+
engine_version: 85.0.4183.121
2176+
device:
2177+
type: smartphone
2178+
brand: OPPO
2179+
model: R15 Neo
2180+
os_family: Android
2181+
browser_family: Internet Explorer
2182+
-
2183+
user_agent: Mozilla/5.0 (Linux; Android 13; en-US; ASUS_AI2205_D Build/TKQ1.220928.001) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Mobile Safari/537.36
2184+
os:
2185+
name: Android
2186+
version: "13"
2187+
platform: ""
2188+
client:
2189+
type: browser
2190+
name: Chrome Mobile
2191+
version: 78.0.3904.108
2192+
engine: Blink
2193+
engine_version: 78.0.3904.108
2194+
device:
2195+
type: smartphone
2196+
brand: Asus
2197+
model: ROG Phone 7
2198+
os_family: Android
2199+
browser_family: Chrome
2200+
-
2201+
user_agent: Mozilla/5.0 (Linux; Android 13; V2238) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Mobile Safari/537.36
2202+
os:
2203+
name: Android
2204+
version: "13"
2205+
platform: ""
2206+
client:
2207+
type: browser
2208+
name: Chrome Mobile
2209+
version: 104.0.0.0
2210+
engine: Blink
2211+
engine_version: 104.0.0.0
2212+
device:
2213+
type: smartphone
2214+
brand: Vivo
2215+
model: Y22
2216+
os_family: Android
2217+
browser_family: Chrome

Tests/fixtures/tablet-10.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1185,3 +1185,21 @@
11851185
model: Maximus 3.0
11861186
os_family: Android
11871187
browser_family: Chrome
1188+
-
1189+
user_agent: Mozilla/5.0 (Linux; arm_64; Android 13; 23043RP34I) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.5845.761 YaApp_Android/23.92/apad YaSearchBrowser/23.92/apad BroPP/1.0 SA/3 Mobile Safari/537.36
1190+
os:
1191+
name: Android
1192+
version: "13"
1193+
platform: ARM
1194+
client:
1195+
type: browser
1196+
name: Yandex Browser
1197+
version: "23.92"
1198+
engine: Blink
1199+
engine_version: 116.0.5845.761
1200+
device:
1201+
type: tablet
1202+
brand: Xiaomi
1203+
model: Pad 6
1204+
os_family: Android
1205+
browser_family: Unknown

Tests/fixtures/tv-2.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5125,3 +5125,57 @@
51255125
model: 55U630S
51265126
os_family: Android
51275127
browser_family: Unknown
5128+
-
5129+
user_agent: Mozilla/5.0 (Linux; arm; Android 9; 43LU1204) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.167 YaApp_Android/22.79/apad YaSearchBrowser/22.79/apad BroPP/1.0 SA/3 Mobile Safari/537.36
5130+
os:
5131+
name: Android
5132+
version: "9"
5133+
platform: ARM
5134+
client:
5135+
type: browser
5136+
name: Yandex Browser
5137+
version: "22.79"
5138+
engine: Blink
5139+
engine_version: 102.0.5005.167
5140+
device:
5141+
type: tv
5142+
brand: Vityaz
5143+
model: 43LU1204
5144+
os_family: Android
5145+
browser_family: Unknown
5146+
-
5147+
user_agent: Mozilla/5.0 (Linux; Android 11; 40LEX-7202FTS2C Build/RP1A.200720.011; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/109.0.5414.117 YaBrowser/23.1.0.62 (lite) TV Safari/537.36
5148+
os:
5149+
name: Android
5150+
version: "11"
5151+
platform: ""
5152+
client:
5153+
type: browser
5154+
name: Yandex Browser Lite
5155+
version: 23.1.0.62
5156+
engine: Blink
5157+
engine_version: 109.0.5414.117
5158+
device:
5159+
type: tv
5160+
brand: BBK
5161+
model: 40LEX-7202/FTS2C
5162+
os_family: Android
5163+
browser_family: Unknown
5164+
-
5165+
user_agent: Mozilla/5.0 (Linux; Android 9; 43LEX-7287TS2C Build/PPR2.180905.006.A1; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/113.0.5672.163 YaBrowser/23.1.0.59 (lite) TV Safari/537.36
5166+
os:
5167+
name: Android
5168+
version: "9"
5169+
platform: ""
5170+
client:
5171+
type: browser
5172+
name: Yandex Browser Lite
5173+
version: 23.1.0.59
5174+
engine: Blink
5175+
engine_version: 113.0.5672.163
5176+
device:
5177+
type: tv
5178+
brand: BBK
5179+
model: 43LEX-7287/TS2C
5180+
os_family: Android
5181+
browser_family: Unknown

regexes/client/browsers.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@
159159
version: ""
160160

161161
# Hi Browser (https://play.google.com/store/apps/details?id=com.talpa.hibrowser)
162-
- regex: 'HiBrowser/(\d+[\.\d]+)'
162+
- regex: 'HiBrowser/v?(\d+[\.\d]+)'
163163
name: 'Hi Browser'
164164
version: '$1'
165165
engine:

0 commit comments

Comments
 (0)