Skip to content

Commit

Permalink
Detect new brands: PC Smart, Ephone, YunSong, SYH, iRobot and Detect …
Browse files Browse the repository at this point in the history
…devices for exist brands (#7353)

* feat(device) detect new brand PC Smart: QuickTab Plus
feat(device) detect brand NASCO: Snap Pro

ref #7139

* feat(device) detect new brand Ephone: EP19 Star, EP19
feat(device) detect brand iLA: R1 Lite
feat(device) detect brand Famous: Red Royal Edition
feat(device) detect brand Blaupunkt: Polaris 808 BE, Polaris 808
feat(device) detect brand BMXC: 801
feat(device) detect brand Polar: P32L32T2CSM
feat(device) detect brand Archos: Sense 55 DC, Sense 50 DC, Core 50P, Core 70 3G, Sense 101 X, Core 101 3G

* feat(device) detect new brand SYH: Young Y56, Young Y35, Young Y51+, Young Y55, Young Y36+
feat(device) detect new brand YunSong: YS7 Pro, YS8 Pro
feat(device) detect brand Yu: Yureka Note (YU 6000)

* feat(device) added test detect brand Apple: iPhone 14 Pro (iPhone15,2)

* feat(device) detect brand Xiaomi: 12S (2206123SC),
feat(device) detect brand Sony: Xperia 5 IV (A204SO)
feat(device) detect brand Fujitsu: Arrows We (A101FC)
feat(device) detect brand Hi Nova: 9 SE (FIO-BD00)
feat(device) detect brand Samsung: Galaxy A23 5G (SCG18, SM-A233C)
feat(device) detect brand Vivo: X90 Pro (V2242A)
feat(device) detect brand OPPO: Reno 9 Pro (PGX110), A58 5G (PHJ110)
feat(device) detect brand Sharp: dtab d-51C

* feat(device) detect brand Huawei: MatePad 10.4" (2022) WiFi (BAH4-W29)

* feat(device) detect brand Huawei: Nova 10 SE (BNE-AL00)

* feat(device) detect brand Xiaomi: Redmi Note 12 Pro DE (22101316UC)
feat(device) detect brand Realme: V20 (RMX3611)
feat(device) detect brand iBall: Slide 3G (1026-Q18)

* feat(device) detect new brand iRobot: PALADIN EVO
feat(device) detect brand Huawei: BLM-00 SmartScreen, P50E (ABR-AL90), MatePad 10.4" (2022) WiFi (BAH4-W39), MediaPad C5 10.1 WiFi (BZT-W09)
feat(device) detect brand PCD: PL5507, PH4002, PH3501, E400
feat(device) detect brand Condor: G2S (PAM412)
feat(device) detect brand NGM: Forward EVOLVE
feat(device) detect brand TD Systems: K50DLX9US, K24DLX9HS
feat(device) detect brand Wiko: Kenny
feat(device) detect brand MobiWire: Kayeta
feat(device) detect brand Kata: M4s
feat(device) detect brand PCBOX: T750
feat(device) detect brand Explay: Party
feat(os) detect HarmonyOS for Hmos prefix

* fix: test

* Update regexes/device/mobiles.yml

---------

Co-authored-by: Stefan Giehl <[email protected]>
  • Loading branch information
sanchezzzhak and sgiehl authored Feb 15, 2023
1 parent 52912e4 commit a5cde8d
Show file tree
Hide file tree
Showing 10 changed files with 1,370 additions and 45 deletions.
5 changes: 5 additions & 0 deletions Parser/Device/AbstractDeviceParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -451,6 +451,7 @@ abstract class AbstractDeviceParser extends AbstractParser
'ENV' => 'Envizen',
'8E' => 'Epik One',
'XP' => 'Epson',
'EPH' => 'Ephone',
'E7' => 'Ergo',
'EC' => 'Ericsson',
'05' => 'Erisson',
Expand Down Expand Up @@ -712,6 +713,7 @@ abstract class AbstractDeviceParser extends AbstractParser
'IRE' => 'iReplace',
'IR' => 'iRola',
'IU' => 'iRulu',
'IRO' => 'iRobot',
'9I' => 'iSWAG',
'9J' => 'iSafe Mobile',
'IST' => 'iStar',
Expand Down Expand Up @@ -1089,6 +1091,7 @@ abstract class AbstractDeviceParser extends AbstractParser
'PAR' => 'Partner Mobile',
'PAP' => 'PAPYRE',
'PB' => 'PCBOX',
'PCS' => 'PC Smart',
'PC' => 'PCD',
'PD' => 'PCD Argentina',
'PE' => 'PEAQ',
Expand Down Expand Up @@ -1283,6 +1286,7 @@ abstract class AbstractDeviceParser extends AbstractParser
'SC' => 'Smartfren',
'S7' => 'Smartisan',
'JR' => 'Sylvania',
'SYH' => 'SYH',
'3Y' => 'Smarty',
'HH' => 'Smooth Mobile',
'1Q' => 'Smotreshka',
Expand Down Expand Up @@ -1619,6 +1623,7 @@ abstract class AbstractDeviceParser extends AbstractParser
'Y0' => 'YUHO',
'YN' => 'Yuno',
'YUN' => 'YUNDOO',
'YUS' => 'YunSong',
'YUM' => 'YUMKEM',
'YU' => 'Yuandao',
'YS' => 'Yusun',
Expand Down
8 changes: 8 additions & 0 deletions Tests/Parser/fixtures/oss.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3702,3 +3702,11 @@
version:
platform:
family: iOS
-
user_agent: Mozilla/5.0 (Linux; U; Android 10; zh-CN; BLM-00 Build/HUAWEIBLM-00) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/69.0.3497.100 UWS/3.22.1.228 Mobile Safari/537.36 AliApp(DingTalk/6.5.30) com.alibaba.android.rimet/25293052 Channel/227200 language/zh-CN abi/64 Pad/APad Hmos/1 UT4Aplus/0.2.25 colorScheme/light
os:
name: HarmonyOS
short_name: HAR
version: 1.0.0
platform: ""
family: Android
16 changes: 16 additions & 0 deletions Tests/fixtures/phablet-1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -771,3 +771,19 @@
model: Redmi Note 11R 5G
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 12; 22101316UC Build/SP1A.210812.016; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/103.0.5060.129 Mobile Safari/537.36 SP-engine/2.40.0 baiduboxapp/13.2.0.10 (Baidu; P1 12) NABar/1.0
os:
name: Android
version: "12"
platform: ""
client:
type: mobile app
name: Baidu Box App
version: 13.2.0.10
device:
type: phablet
brand: Xiaomi
model: Redmi Note 12 Pro DE
os_family: Android
browser_family: Unknown
16 changes: 16 additions & 0 deletions Tests/fixtures/smart_display.yml
Original file line number Diff line number Diff line change
Expand Up @@ -395,3 +395,19 @@
model: DA222HQL
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; U; Android 10; zh-CN; BLM-00 Build/HUAWEIBLM-00) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/69.0.3497.100 UWS/3.22.1.228 Mobile Safari/537.36 AliApp(DingTalk/6.5.30) com.alibaba.android.rimet/25293052 Channel/227200 language/zh-CN abi/64 Pad/APad Hmos/1 UT4Aplus/0.2.25 colorScheme/light
os:
name: HarmonyOS
version: 1.0.0
platform: ""
client:
type: mobile app
name: DingTalk
version: 6.5.30
device:
type: smart display
brand: Huawei
model: BLM-00 SmartScreen
os_family: Android
browser_family: Unknown
16 changes: 16 additions & 0 deletions Tests/fixtures/smartphone-15.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10071,3 +10071,19 @@
model: Activ
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (iPhone; CPU iPhone OS 16_1_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 Instagram 267.0.0.8.92 (iPhone15,2; iOS 16_1_1; ro_RO; ro-RO; scale=3.00; 1179x2556; 439751848)
os:
name: iOS
version: 16.1.1
platform: ""
client:
type: mobile app
name: Instagram App
version: 267.0.0.8.92
device:
type: phablet
brand: Apple
model: iPhone 14 Pro
os_family: iOS
browser_family: Unknown
Loading

0 comments on commit a5cde8d

Please sign in to comment.