Skip to content

Commit

Permalink
Detect new brands: HEC, W&O and Detect devices for exist brands (#7667)
Browse files Browse the repository at this point in the history
feat(device) detect brand F+: SH65
feat(device) detect brand Oukitel: WP2
feat(device) detect brand Hammer: Energy X
feat(device) detect brand Yandex: YNDX-00092
feat(device) detect new brand W&O: X9 Call 2
feat(device) detect brand OMIX: X400, X600
feat(device) detect brand Nokia: C300, G100
feat(device) detect brand Vortex: HD62
feat(device) detect brand NEXON: X5+
feat(device) detect brand General Mobile: GM 6 DS (G100)
feat(device) detect brand Infinix: Hot 40 (X6836)
feat(device) detect new brand HEC: R1 50S 4K (50SSD-SMART TV-R1)
  • Loading branch information
sanchezzzhak committed Apr 24, 2024
1 parent c49f7e9 commit a31536f
Show file tree
Hide file tree
Showing 5 changed files with 474 additions and 29 deletions.
2 changes: 2 additions & 0 deletions Parser/Device/AbstractDeviceParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -680,6 +680,7 @@ abstract class AbstractDeviceParser extends AbstractParser
'9F' => 'HAOVM',
'HAQ' => 'HAOQIN',
'HA' => 'Haier',
'HEC' => 'HEC',
'XH' => 'Haipai',
'HAN' => 'Handheld',
'HE' => 'HannSpree',
Expand Down Expand Up @@ -1773,6 +1774,7 @@ abstract class AbstractDeviceParser extends AbstractParser
'WAK' => 'Walker',
'WA' => 'Walton',
'WAF' => 'WAF',
'WAO' => 'W&O',
'WAL' => 'Waltter',
'WHI' => 'White Mobile',
'WBL' => 'We. by Loewe.',
Expand Down
353 changes: 353 additions & 0 deletions Tests/fixtures/smartphone-38.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6605,3 +6605,356 @@
model: Digno Keitai R
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; arm; Android 12; SH65 2GB/32GB 4800mAh GMS) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.6099.324 YaApp_Android/24.19.1 YaSearchBrowser/24.19.1 BroPP/1.0 SA/3 Mobile Safari/537.36
os:
name: Android
version: "12"
platform: ARM
client:
type: browser
name: Yandex Browser
version: 24.19.1
engine: Blink
engine_version: 120.0.6099.324
device:
type: smartphone
brand: F+
model: SH65
os_family: Android
browser_family: Unknown
-
user_agent: Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Mobile Safari/537.36
headers:
fullVersionList:
- brand: Google Chrome
version: 123.0.6312.99
- brand: Not:A-Brand
version: 8.0.0.0
- brand: Chromium
version: 123.0.6312.99
mobile: '1'
model: WP2
platform: Android
platformVersion: 8.0.0
uaFullVersion: 123.0.6312.99
os:
name: Android
version: 8.0.0
platform: ""
client:
type: browser
name: Chrome Mobile
version: 123.0.6312.99
engine: Blink
engine_version: 123.0.0.0
device:
type: smartphone
brand: Oukitel
model: WP2
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Mobile Safari/537.36
headers:
fullVersionList:
- brand: Google Chrome
version: 123.0.6312.99
- brand: Not:A-Brand
version: 8.0.0.0
- brand: Chromium
version: 123.0.6312.99
mobile: '1'
model: Hammer_Energy_X
platform: Android
platformVersion: 12.0.0
uaFullVersion: 123.0.6312.99
os:
name: Android
version: 12.0.0
platform: ""
client:
type: browser
name: Chrome Mobile
version: 123.0.6312.99
engine: Blink
engine_version: 123.0.0.0
device:
type: smartphone
brand: Hammer
model: Energy X
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 11; ONEPLUS A6000) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Mobile Safari/537.36
os:
name: Android
version: "11"
platform: ""
client:
type: browser
name: Chrome Mobile
version: 123.0.0.0
engine: Blink
engine_version: 123.0.0.0
device:
type: smartphone
brand: OnePlus
model: "6"
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; arm_64; Android 13; SM-A426N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.6261.292 YaBrowser/24.4.0.292.00 SA/3 Mobile Safari/537.36
os:
name: Android
version: "13"
platform: ARM
client:
type: browser
name: Yandex Browser
version: 24.4.0.292.00
engine: Blink
engine_version: 122.0.6261.292
device:
type: smartphone
brand: Samsung
model: Galaxy A42 5G
os_family: Android
browser_family: Unknown
-
user_agent: Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) SamsungBrowser/24.0 Chrome/117.0.0.0 Mobile Safari/537.36
headers:
model: SM-A156U
mobile: '1'
platform: Android
uaFullVersion: 24.0.7.1
fullVersionList:
- brand: Samsung Internet
version: 24.0.7.1
- brand: Chromium
version: 117.0.5938.156
- brand: Not;A=Brand
version: 8.0.0.0
platformVersion: 14.0.0
os:
name: Android
version: 14.0.0
platform: ""
client:
type: browser
name: Samsung Browser
version: "24.0"
engine: Blink
engine_version: 117.0.0.0
device:
type: smartphone
brand: Samsung
model: Galaxy A15 5G
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Mobile Safari/537.36
headers:
fullVersionList:
- brand: Google Chrome
version: 123.0.6312.99
- brand: Not:A-Brand
version: 8.0.0.0
- brand: Chromium
version: 123.0.6312.99
mobile: '1'
model: X400
platform: Android
platformVersion: 11.0.0
uaFullVersion: 123.0.6312.99
os:
name: Android
version: 11.0.0
platform: ""
client:
type: browser
name: Chrome Mobile
version: 123.0.6312.99
engine: Blink
engine_version: 123.0.0.0
device:
type: smartphone
brand: OMIX
model: X400
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Mobile Safari/537.36
headers:
fullVersionList:
- brand: Google Chrome
version: 123.0.6312.99
- brand: Not:A-Brand
version: 8.0.0.0
- brand: Chromium
version: 123.0.6312.99
mobile: '1'
model: X600
platform: Android
platformVersion: 12.0.0
uaFullVersion: 123.0.6312.99
os:
name: Android
version: 12.0.0
platform: ""
client:
type: browser
name: Chrome Mobile
version: 123.0.6312.99
engine: Blink
engine_version: 123.0.0.0
device:
type: smartphone
brand: OMIX
model: X600
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 12; Nokia C300) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Mobile Safari/537.36
os:
name: Android
version: "12"
platform: ""
client:
type: browser
name: Chrome Mobile
version: 123.0.0.0
engine: Blink
engine_version: 123.0.0.0
device:
type: smartphone
brand: Nokia
model: C300
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 13; HD62) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Mobile Safari/537.36
os:
name: Android
version: "13"
platform: ""
client:
type: browser
name: Chrome Mobile
version: 123.0.0.0
engine: Blink
engine_version: 123.0.0.0
device:
type: smartphone
brand: Vortex
model: HD62
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 8.1.0; Symphony G100 Build/O11019) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.101 Mobile Safari/537.36
os:
name: Android
version: 8.1.0
platform: ""
client:
type: browser
name: Chrome Mobile
version: 98.0.4758.101
engine: Blink
engine_version: 98.0.4758.101
device:
type: smartphone
brand: Symphony
model: G100
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 12; Nokia G100 Build/SKQ1.220119.001; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/123.0.6312.42 Mobile Safari/537.36
os:
name: Android
version: "12"
platform: ""
client:
type: browser
name: Chrome Webview
version: 123.0.6312.42
engine: Blink
engine_version: 123.0.6312.42
device:
type: smartphone
brand: Nokia
model: G100
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 9; G100) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Mobile Safari/537.36
os:
name: Android
version: "9"
platform: ""
client:
type: browser
name: Chrome Mobile
version: 123.0.0.0
engine: Blink
engine_version: 123.0.0.0
device:
type: smartphone
brand: General Mobile
model: GM 6 DS
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; arm_64; Android 13; Infinix X6836) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.6099.35 YaBrowser/24.2.0.35.00 SA/3 Mobile Safari/537.36
os:
name: Android
version: "13"
platform: ARM
client:
type: browser
name: Yandex Browser
version: 24.2.0.35.00
engine: Blink
engine_version: 120.0.6099.35
device:
type: smartphone
brand: Infinix
model: Hot 40
os_family: Android
browser_family: Unknown
-
user_agent: Mozilla/5.0 (Linux; Android 14; SM-A256E) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Mobile Safari/537.36
os:
name: Android
version: "14"
platform: ""
client:
type: browser
name: Chrome Mobile
version: 123.0.0.0
engine: Blink
engine_version: 123.0.0.0
device:
type: smartphone
brand: Samsung
model: Galaxy A25 5G
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 14; SM-A145P) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Mobile Safari/537.36
os:
name: Android
version: "14"
platform: ""
client:
type: browser
name: Chrome Mobile
version: 123.0.0.0
engine: Blink
engine_version: 123.0.0.0
device:
type: smartphone
brand: Samsung
model: Galaxy A14
os_family: Android
browser_family: Chrome
Loading

0 comments on commit a31536f

Please sign in to comment.