Skip to content

Commit

Permalink
Adds detection for BMW, Jeep brands and improves detection for other …
Browse files Browse the repository at this point in the history
…brands (#7550)

* Improves detection for Amazon Fire TV 4-Series (2021)
* Adds detection for Xiaomi brand
* Adds detection for TCL 3-Series Fire TV (2023)
* Adds detection for TCL FHD Fire TV (2023)
* Adds detection for TCL 4K Fire TV (2023)
* Adds detection for Onida Fire TV (2019)
* Improves detection for tv
* Improves detection for Amazon
* Adds detection for Amazon Fire TV Stick 4K (2023)
* Adds detection for Amazon Fire TV 2-Series (2023)
* Improves detection for Amazon Fire TV 2-Series (2023)
* Improves regex for Sony PlayStation
* Adds detection for BMW brand
* Adds detection for Amazon Echo Show 15 (2021)
* Adds detection for Jeep brand
* Improves detection for Toshiba devices
* Adds detection for Funai Fire TV 4K (2022)
* Adds detection for JVC Fire TV 4K (2021)
* Adds detection for Amazon Basics Fire TV 4K (2020)
* Adds detection for JVC Fire TV 2K (2020)
* Adds detection for Onida Fire TV (2020)
* Adds detection for Amazon Fire TV 4K (2021-2022)
  • Loading branch information
liviuconcioiu committed Jan 23, 2024
1 parent 9a5a41f commit 6311886
Show file tree
Hide file tree
Showing 9 changed files with 476 additions and 27 deletions.
2 changes: 2 additions & 0 deletions Parser/Device/AbstractDeviceParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,7 @@ abstract class AbstractDeviceParser extends AbstractParser
'B1' => 'Bush',
'4Q' => 'Bundy',
'Y8' => 'Bubblegum',
'BMW' => 'BMW',
'C9' => 'CAGI',
'CT' => 'Capitel',
'G3' => 'CG Mobile',
Expand Down Expand Up @@ -815,6 +816,7 @@ abstract class AbstractDeviceParser extends AbstractParser
'JA' => 'JAY-Tech',
'KJ' => 'Jiake',
'JD' => 'Jedi',
'JEE' => 'Jeep',
'J6' => 'Jeka',
'JF' => 'JFone',
'JI' => 'Jiayu',
Expand Down
12 changes: 12 additions & 0 deletions Tests/Parser/Device/fixtures/car_browser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,15 @@
type: car browser
brand: Tesla
model: ""
-
user_agent: Mozilla/5.0 (Linux; Android 9; AFTLBT962E2) AppleWebKit/537.36 (KHTML, like Gecko) Silk/118.3.1 like Chrome/118.0.5993.155 Safari/537.36
device:
type: car browser
brand: BMW
model: Car (2022)
-
user_agent: Dalvik/2.1.0 (Linux; U; Android 9; AFTLFT962X3 Build/PMAIN1)
device:
type: car browser
brand: Jeep
model: Wagoneer
36 changes: 36 additions & 0 deletions Tests/fixtures/car_browser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -953,3 +953,39 @@
model: QUAD-CORE T3 K2001M
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 9; AFTLBT962E2) AppleWebKit/537.36 (KHTML, like Gecko) Silk/118.3.1 like Chrome/118.0.5993.155 Safari/537.36
os:
name: Fire OS
version: "7"
platform: ""
client:
type: browser
name: Mobile Silk
version: 118.3.1
engine: Blink
engine_version: 118.0.5993.155
device:
type: car browser
brand: BMW
model: Car (2022)
os_family: Android
browser_family: Chrome
-
user_agent: Dalvik/2.1.0 (Linux; U; Android 9; AFTLFT962X3 Build/PMAIN1)
os:
name: Fire OS
version: "7"
platform: ""
client:
type: browser
name: Android Browser
version: ""
engine: WebKit
engine_version: ""
device:
type: car browser
brand: Jeep
model: Wagoneer
os_family: Android
browser_family: Android Browser
8 changes: 4 additions & 4 deletions Tests/fixtures/podcasting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1982,7 +1982,7 @@
os_family: Android
browser_family: Unknown
-
user_agent: 'Amazon;AFTTI43;756a522d9f1648b89e76e80be654456a;;tpapi;3.202.356'
user_agent: Amazon;AFTTI43;756a522d9f1648b89e76e80be654456a;;tpapi;3.202.356
os:
name: Fire OS
version: ""
Expand All @@ -1992,9 +1992,9 @@
name: Amazon Fire
version: ""
device:
type: ""
brand: ""
model: ''
type: tv
brand: Amazon
model: Fire TV 4-Series (2021)
os_family: Android
browser_family: Unknown
-
Expand Down
18 changes: 18 additions & 0 deletions Tests/fixtures/smart_speaker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,3 +113,21 @@
model: ""
os_family: iOS
browser_family: Unknown
-
user_agent: Mozilla/5.0 (Linux; Android 9; AEOHY) AppleWebKit/537.36 (KHTML, like Gecko) Silk/94.3.10 like Chrome/94.0.4606.126 Safari/537.36
os:
name: Android
version: "9"
platform: ""
client:
type: browser
name: Mobile Silk
version: 94.3.10
engine: Blink
engine_version: 94.0.4606.126
device:
type: smart speaker
brand: Amazon
model: Echo Show 15 (2021)
os_family: Android
browser_family: Chrome
Loading

0 comments on commit 6311886

Please sign in to comment.