Skip to content

Commit

Permalink
feat: detect device new brand Z-Kai: ZMOOTH
Browse files Browse the repository at this point in the history
feat: detect device brand Amazon: Fire Max 11 (KFSNWI)
feat: detect device brand Google: Pixel 8 Pro
feat: detect device brand BMAX: MaxPad I10 Plus
feat: detect device brand Teclast: P40HD
feat: detect device brand Kyocera: Katan Sumaho 3 (A205KC)
feat: detect device brand Sony: Xperia 1 V (SOG10), Xperia 10 V (SO-52D)
feat: detect device brand Multilaser: H 5G
feat: detect device brand Huawei: Honor 90 (REA-AN00), Honor 80 GT (AGT-AN00)
feat: detect device brand Samsung: Galaxy A54 5G (SC-53D), Galaxy S23 Ultra (SC-52D)
  • Loading branch information
sanchezzzhak committed Oct 30, 2023
1 parent 766646a commit 9e8bd61
Show file tree
Hide file tree
Showing 5 changed files with 350 additions and 15 deletions.
1 change: 1 addition & 0 deletions Parser/Device/AbstractDeviceParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -1758,6 +1758,7 @@ abstract class AbstractDeviceParser extends AbstractParser
'FZ' => 'ZIFRO',
'ZX' => 'Ziox',
'ZIK' => 'ZIK',
'ZKI' => 'Z-Kai',
'ZIG' => 'Zigo',
'ZIN' => 'Zinox',
'ZO' => 'Zonda',
Expand Down
16 changes: 16 additions & 0 deletions Tests/fixtures/portable_media_player.yml
Original file line number Diff line number Diff line change
Expand Up @@ -845,3 +845,19 @@
model: P5
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (iPod touch; CPU iPhone OS 10_1_1 like Mac OS X) AppleWebKit/602.2.14 (KHTML, like Gecko) Mobile/14B100 Instagram 46.0.0.14.96 (iPod7,1; iOS 10_1_1; pt_PT; pt-PT; scale=2.00; gamut=normal; 640x1136)
os:
name: iOS
version: 10.1.1
platform: ""
client:
type: mobile app
name: Instagram App
version: 46.0.0.14.96
device:
type: portable media player
brand: Apple
model: iPod Touch 6
os_family: iOS
browser_family: Unknown
212 changes: 212 additions & 0 deletions Tests/fixtures/smartphone-37.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2787,3 +2787,215 @@
model: Galaxy A04s
os_family: Android
browser_family: Unknown
-
user_agent: Dalvik/2.1.0 (Linux; U; Android 14; Pixel 8 Pro Build/UD1A.230803.041)
os:
name: Android
version: "14"
platform: ""
client:
type: browser
name: Android Browser
version: ""
engine: WebKit
engine_version: ""
device:
type: smartphone
brand: Google
model: Pixel 8 Pro
os_family: Android
browser_family: Android Browser
-
user_agent: Mozilla/5.0 (Linux; Android 13; A205KC) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Mobile Safari/537.36
os:
name: Android
version: "13"
platform: ""
client:
type: browser
name: Chrome Mobile
version: 106.0.0.0
engine: Blink
engine_version: 106.0.0.0
device:
type: smartphone
brand: Kyocera
model: Katan Sumaho 3
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 13; SOG10 Build/67.0.C.4.117; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/118.0.0.0 Mobile Safari/537.36
os:
name: Android
version: "13"
platform: ""
client:
type: browser
name: Chrome Webview
version: 118.0.0.0
engine: Blink
engine_version: 118.0.0.0
device:
type: smartphone
brand: Sony
model: Xperia 1 V
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 13; SC-53D) AppleWebKit/537.36 (KHTML, like Gecko) SamsungBrowser/22.0 Chrome/111.0.5563.116 Mobile Safari/537.36
os:
name: Android
version: "13"
platform: ""
client:
type: browser
name: Samsung Browser
version: "22.0"
engine: WebKit
engine_version: "537.36"
device:
type: smartphone
brand: Samsung
model: Galaxy A54 5G
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 13; SO-52D Build/68.0.B.0.507; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/117.0.0.0 Mobile Safari/537.36
os:
name: Android
version: "13"
platform: ""
client:
type: browser
name: Chrome Webview
version: 117.0.0.0
engine: Blink
engine_version: 117.0.0.0
device:
type: smartphone
brand: Sony
model: Xperia 10 V
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 13; SC-52D Build/TP1A.220624.014; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/116.0.0.0 Mobile Safari/537.36
os:
name: Android
version: "13"
platform: ""
client:
type: browser
name: Chrome Webview
version: 116.0.0.0
engine: Blink
engine_version: 116.0.0.0
device:
type: smartphone
brand: Samsung
model: Galaxy S23 Ultra
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; U; Android 4.2.2; ja-jp; SonySO-02E Build/10.3.1.B.1.1) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30
os:
name: Android
version: 4.2.2
platform: ""
client:
type: browser
name: Android Browser
version: ""
engine: WebKit
engine_version: "534.30"
device:
type: smartphone
brand: Sony
model: Xperia Z
os_family: Android
browser_family: Android Browser
-
user_agent: Mozilla/5.0 (Linux; Android 13; REA-AN00; HMSCore 6.12.0.302) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.88 HuaweiBrowser/14.0.3.300 Mobile Safari/537.36
os:
name: Android
version: "13"
platform: ""
client:
type: browser
name: Huawei Browser Mobile
version: 14.0.3.300
engine: Blink
engine_version: 99.0.4844.88
device:
type: smartphone
brand: Huawei
model: Honor 90
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 12; AGT-AN00; HMSCore 6.11.0.332) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.88 HuaweiBrowser/14.0.1.303 Mobile Safari/537.36
os:
name: Android
version: "12"
platform: ""
client:
type: browser
name: Huawei Browser Mobile
version: 14.0.1.303
engine: Blink
engine_version: 99.0.4844.88
device:
type: smartphone
brand: Huawei
model: Honor 80 GT
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; U; Android 2.3.5; ja-jp; SH-01D Build/S6270) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1
os:
name: Android
version: 2.3.5
platform: ""
client:
type: browser
name: Android Browser
version: ""
engine: WebKit
engine_version: "533.1"
device:
type: smartphone
brand: Sharp
model: SH-01D
os_family: Android
browser_family: Android Browser
-
user_agent: Mozilla/5.0 (Linux; Android 12; Multilaser_H_5G Build/V16_20230613; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/114.0.5735.196 Mobile Safari/537.36 Instagram 293.0.2.28.93 Android (31/12; 445dpi; 1080x2155; Multilaser; Multilaser_H_5G; Multilaser_H_5G; mt6833; pt_BR; 497870485)
os:
name: Android
version: "12"
platform: ""
client:
type: mobile app
name: Instagram App
version: 293.0.2.28.93
device:
type: smartphone
brand: Multilaser
model: H 5G
os_family: Android
browser_family: Unknown
-
user_agent: Mozilla/5.0 (iPhone; CPU iPhone OS 10_3_3 like Mac OS X) AppleWebKit/603.3.8 (KHTML, like Gecko) Mobile/14G60 Instagram 44.0.0.17.95 (iPhone5,3; iOS 10_3_3; pt_CA; pt-PT; scale=2.00; gamut=normal; 640x1136)
os:
name: iOS
version: 10.3.3
platform: ""
client:
type: mobile app
name: Instagram App
version: 44.0.0.17.95
device:
type: smartphone
brand: Apple
model: iPhone 5C
os_family: iOS
browser_family: Unknown
88 changes: 88 additions & 0 deletions Tests/fixtures/tablet-10.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1275,3 +1275,91 @@
model: PhonePAD 83G
os_family: Android
browser_family: Android Browser
-
user_agent: Mozilla/5.0 (Linux; Android 9; ZMOOTH) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36 EdgA/111.0.1661.59
os:
name: Android
version: "9"
platform: ""
client:
type: browser
name: Microsoft Edge
version: 111.0.1661.59
engine: Blink
engine_version: 111.0.0.0
device:
type: tablet
brand: Z-Kai
model: ZMOOTH
os_family: Android
browser_family: Internet Explorer
-
user_agent: Mozilla/5.0 (Linux; Android 11; KFSNWI) AppleWebKit/537.36 (KHTML, like Gecko) Silk/116.5.8 like Chrome/116.0.5845.229 Safari/537.36
os:
name: Android
version: "11"
platform: ""
client:
type: browser
name: Mobile Silk
version: 116.5.8
engine: Blink
engine_version: 116.0.5845.229
device:
type: tablet
brand: Amazon
model: Fire Max 11
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 10; I10Plus Build/QP1A.190711.020; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/81.0.4044.138 Safari/537.36 Sleipnir/3.7.1
os:
name: Android
version: "10"
platform: ""
client:
type: browser
name: Sleipnir
version: 3.7.1
engine: WebKit
engine_version: "537.36"
device:
type: tablet
brand: BMAX
model: MaxPad I10 Plus
os_family: Android
browser_family: Unknown
-
user_agent: Mozilla/5.0 (Linux; Android 13; P40HD_T_EEA) AppleWebKit/537.36 (KHTML, like Gecko) SamsungBrowser/23.0 Chrome/115.0.0.0 Safari/537.36
os:
name: Android
version: "13"
platform: ""
client:
type: browser
name: Samsung Browser
version: "23.0"
engine: WebKit
engine_version: "537.36"
device:
type: tablet
brand: Teclast
model: P40HD
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (iPhone; CPU iPhone OS 11_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E302 Instagram 46.0.0.14.96 (iPad6,11; iOS 11_3_1; en_150; en-150; scale=2.00; gamut=normal; 960x640)
os:
name: iOS
version: "11.3"
platform: ""
client:
type: mobile app
name: Instagram App
version: 46.0.0.14.96
device:
type: tablet
brand: Apple
model: iPad 5 9.7
os_family: iOS
browser_family: Unknown
Loading

0 comments on commit 9e8bd61

Please sign in to comment.