Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Detect new brands: Dora, Elista, Everfine, Horion, MECHEN, PRISM+, SINGER, Stilevs, Viendo, Weston, ZIFFLER and Detect devices for exist brands #7955

Merged
merged 9 commits into from
Dec 18, 2024
11 changes: 11 additions & 0 deletions Parser/Device/AbstractDeviceParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -486,6 +486,7 @@ abstract class AbstractDeviceParser extends AbstractParser
'DPA' => 'DPA',
'JQ' => 'Doppio',
'DR' => 'Doro',
'DOR' => 'Dora',
'ZD' => 'DORLAND',
'DRO' => 'Droidlogic',
'D8' => 'Droxio',
Expand Down Expand Up @@ -550,6 +551,7 @@ abstract class AbstractDeviceParser extends AbstractParser
'EL' => 'Elephone',
'JE' => 'Elekta',
'ELE' => 'Elevate',
'ELS' => 'Elista',
'4E' => 'Eltex',
'ELM' => 'Elong Mobile',
'ED' => 'Energizer',
Expand Down Expand Up @@ -581,6 +583,7 @@ abstract class AbstractDeviceParser extends AbstractParser
'EVE' => 'Everest',
'EV1' => 'Everex',
'EVR' => 'Everis',
'EVF' => 'Everfine',
'E3' => 'Evolio',
'EO' => 'Evolveo',
'0Q' => 'Evoo',
Expand Down Expand Up @@ -792,6 +795,7 @@ abstract class AbstractDeviceParser extends AbstractParser
'HM' => 'Homtom',
'HOP' => 'Hopeland',
'HZ' => 'Hoozo',
'HOR' => 'Horion',
'H7' => 'Horizon',
'4H' => 'Horizont',
'HO' => 'Hosin',
Expand Down Expand Up @@ -1110,6 +1114,7 @@ abstract class AbstractDeviceParser extends AbstractParser
'M3' => 'Mecer',
'M3M' => 'M3 Mobile',
'0M' => 'Mecool',
'MEC' => 'MECHEN',
'MEM' => 'MeMobile',
'MC' => 'Mediacom',
'MD' => 'Medion',
Expand Down Expand Up @@ -1423,6 +1428,7 @@ abstract class AbstractDeviceParser extends AbstractParser
'6P' => 'Primux',
'2P' => 'Prixton',
'PRI' => 'Pritom',
'PRP' => 'PRISM+',
'PF' => 'PROFiLO',
'P6' => 'Proline',
'5O' => 'Prology',
Expand Down Expand Up @@ -1582,6 +1588,7 @@ abstract class AbstractDeviceParser extends AbstractParser
'98' => 'Simply',
'SIM' => 'simfer',
'52' => 'Singtech',
'SIN' => 'SINGER',
'31' => 'Siragon',
'SIS' => 'Siswoo',
'83' => 'Sirin Labs',
Expand Down Expand Up @@ -1652,6 +1659,7 @@ abstract class AbstractDeviceParser extends AbstractParser
'71' => 'StrawBerry',
'96' => 'STRONG',
'69' => 'Stylo',
'STI' => 'Stilevs',
'9S' => 'Sugar',
'SUR' => 'Surge',
'SUF' => 'Surfans',
Expand Down Expand Up @@ -1872,6 +1880,7 @@ abstract class AbstractDeviceParser extends AbstractParser
'VD' => 'Videocon',
'VW' => 'Videoweb',
'VS' => 'ViewSonic',
'VIE' => 'Viendo',
'VIK' => 'VIKUSHA',
'V7' => 'Vinga',
'V3' => 'Vinsoc',
Expand Down Expand Up @@ -1945,6 +1954,7 @@ abstract class AbstractDeviceParser extends AbstractParser
'WE' => 'WellcoM',
'W6' => 'WELLINGTON',
'WD' => 'Western Digital',
'WST' => 'Weston',
'WT' => 'Westpoint',
'WAN' => 'Wanmukang',
'WA1' => 'WANSA',
Expand Down Expand Up @@ -2045,6 +2055,7 @@ abstract class AbstractDeviceParser extends AbstractParser
'ZF' => 'Zfiner',
'ZI' => 'Zidoo',
'FZ' => 'ZIFRO',
'ZIF' => 'ZIFFLER',
'ZX' => 'Ziox',
'ZIK' => 'ZIK',
'ZKI' => 'Z-Kai',
Expand Down
18 changes: 18 additions & 0 deletions Tests/fixtures/phablet-1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5580,3 +5580,21 @@
model: Galaxy Note 10
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 12; HarmonyOS; GRL-AL10; HMSCore 6.14.0.309) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.5735.196 HuaweiBrowser/15.0.9.300 Safari/537.36
os:
name: HarmonyOS
version: ""
platform: ""
client:
type: browser
name: Huawei Browser Mobile
version: 15.0.9.300
engine: Blink
engine_version: 114.0.5735.196
device:
type: phablet
brand: Huawei
model: Mate XT Ultimate Design
os_family: Android
browser_family: Chrome
36 changes: 36 additions & 0 deletions Tests/fixtures/portable_media_player.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1025,3 +1025,39 @@
model: M303 Pro
os_family: Android
browser_family: Unknown
-
user_agent: Mozilla/5.0 (Linux; Android 9.0.0; MECHEN H1-Pro) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Mobile Safari/537.36
os:
name: Android
version: 9.0.0
platform: ""
client:
type: browser
name: Chrome Mobile
version: 131.0.0.0
engine: Blink
engine_version: 131.0.0.0
device:
type: portable media player
brand: MECHEN
model: H1 Pro
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 9.0.0; MECHEN H11) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Mobile Safari/537.36
os:
name: Android
version: 9.0.0
platform: ""
client:
type: browser
name: Chrome Mobile
version: 131.0.0.0
engine: Blink
engine_version: 131.0.0.0
device:
type: portable media player
brand: MECHEN
model: H11
os_family: Android
browser_family: Chrome
90 changes: 90 additions & 0 deletions Tests/fixtures/smartphone-41.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3742,3 +3742,93 @@
model: 15 Pro
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; arm_64; Android 13; mipo_M46_Plus) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.6723.279 YaBrowser/24.12.0.279.00 SA/3 Mobile Safari/537.36
os:
name: Android
version: "13"
platform: ARM
client:
type: browser
name: Yandex Browser
version: 24.12.0.279.00
engine: Blink
engine_version: 130.0.6723.279
device:
type: smartphone
brand: mipo
model: M46 Plus
os_family: Android
browser_family: Unknown
-
user_agent: Mozilla/5.0 (Linux; Android 12; ADA-AL10U) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Mobile Safari/537.36
os:
name: Android
version: "12"
platform: ""
client:
type: browser
name: Chrome Mobile
version: 122.0.0.0
engine: Blink
engine_version: 122.0.0.0
device:
type: smartphone
brand: Huawei
model: Nova 12
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 4.4.2; PURE_III) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.83 Mobile Safari/537.36
os:
name: Android
version: 4.4.2
platform: ""
client:
type: browser
name: Chrome Mobile
version: 71.0.3578.83
engine: Blink
engine_version: 71.0.3578.83
device:
type: smartphone
brand: HiMax
model: Pure 3
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 5.1; LT750) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.80 Mobile Safari/537.36
os:
name: Android
version: "5.1"
platform: ""
client:
type: browser
name: Chrome Mobile
version: 70.0.3538.80
engine: Blink
engine_version: 70.0.3538.80
device:
type: smartphone
brand: Walton
model: LT750
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 14; V2423) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Mobile Safari/537.36
os:
name: Android
version: "14"
platform: ""
client:
type: browser
name: Chrome Mobile
version: 126.0.0.0
engine: Blink
engine_version: 126.0.0.0
device:
type: smartphone
brand: Vivo
model: Y19s
os_family: Android
browser_family: Chrome
54 changes: 54 additions & 0 deletions Tests/fixtures/tablet-12.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1097,3 +1097,57 @@
model: "98"
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 13; TPC1013_EEA) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Mobile Safari/537.36
os:
name: Android
version: "13"
platform: ""
client:
type: browser
name: Chrome Mobile
version: 131.0.0.0
engine: Blink
engine_version: 131.0.0.0
device:
type: tablet
brand: Lville
model: TPC1013
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; arm; Android 11; Okapi_Tab8_Pro) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.6613.629 YaApp_Android/24.101.1 YaSearchBrowser/24.101.1 BroPP/1.0 SA/3 Mobile Safari/537.36
os:
name: Android
version: "11"
platform: ARM
client:
type: browser
name: Yandex Browser
version: 24.101.1
engine: Blink
engine_version: 128.0.6613.629
device:
type: smartphone
brand: Okapi
model: Tab 8 Pro
os_family: Android
browser_family: Unknown
-
user_agent: Mozilla/5.0 (Linux; Android 11; La_tab_link_74 Build/RP1A.201005.001) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.6778.39 Mobile Safari/537.36
os:
name: Android
version: "11"
platform: ""
client:
type: browser
name: Chrome Mobile
version: 131.0.6778.39
engine: Blink
engine_version: 131.0.6778.39
device:
type: tablet
brand: Logicom
model: La Tab Link 74
os_family: Android
browser_family: Chrome
Loading
Loading