Skip to content

Commit

Permalink
Improves detection for Philips devices
Browse files Browse the repository at this point in the history
  • Loading branch information
liviuconcioiu committed Dec 22, 2024
1 parent 0d237d2 commit b646ab7
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
18 changes: 18 additions & 0 deletions Tests/fixtures/peripheral.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1648,3 +1648,21 @@
model: Xming
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 11; SCN550 Build/RTM6.230109.257; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/129.0.6668.102 Mobile Safari/537.36
os:
name: Android
version: "11"
platform: ""
client:
type: browser
name: Chrome Webview
version: 129.0.6668.102
engine: Blink
engine_version: 129.0.6668.102
device:
type: peripheral
brand: Philips
model: Screeneo U5
os_family: Android
browser_family: Chrome
6 changes: 5 additions & 1 deletion regexes/device/mobiles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36549,7 +36549,7 @@ Master-G:

# philips
Philips:
regex: 'Philips|NETTV/|2020/2021 UHD Android|10BDL4151T|Xenium S[25]66|(?:NeoViu D1|PI3210G|TPM1[79]1E|70PUH6774_96|QM152E|QM16[134]E|TLE(?:821L|722G)|AND1E|S397|W5510|S410J)(?:[);/ ]|$)'
regex: 'Philips|NETTV/|2020/2021 UHD Android|10BDL4151T|Xenium S[25]66|(?:NeoViu D1|PI3210G|TPM1[79]1E|70PUH6774_96|QM152E|QM16[134]E|TLE(?:821L|722G)|AND1E|S397|W5510|S410J|SCN550)(?:[);/ ]|$)'
device: 'smartphone'
models:
- regex: 'Philips;([a-z0-9_ \-/]+);'
Expand Down Expand Up @@ -36614,6 +36614,10 @@ Philips:
- regex: 'NeoViu D1'
device: 'peripheral'
model: 'NeoViu D1'
- regex: 'SCN550'
device: 'peripheral'
model: 'Screeneo U5'

# general detection
- regex: 'Philips[ _-]?([a-z0-9\-@]+)'
model: '$1'
Expand Down

0 comments on commit b646ab7

Please sign in to comment.