Skip to content

Commit

Permalink
Detect DeviceBrand with Chrome 70 on Android
Browse files Browse the repository at this point in the history
  • Loading branch information
nielsbasjes committed Nov 10, 2018
1 parent 74f32d6 commit f4c81e4
Show file tree
Hide file tree
Showing 6 changed files with 6,833 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Expand Up @@ -3,6 +3,8 @@ This is intended as an overview of the major changes
v5.4
===
- Detect more Iron variations
- Major change in the Android Chrome 70 pattern --> broke DeviceBrand
- Detect Vivo brand

v5.3
===
Expand Down
Expand Up @@ -71,6 +71,15 @@ do
prefix=$(echo "${line}" | cut -d'|' -f1)
brand=$(echo "${line}" | cut -d'|' -f2)
echo "
# Chrome 70+ on Android no longer has the BUILD/... part
- matcher:
require:
- 'agent.(1)product.(1)comments.(1)entry.text=\"Linux\"'
- 'agent.(1)product.(1)comments.(2)entry.(1)product.name=\"Android\"'
extract:
- 'DeviceBrand : 323 :\"${brand}\"'
- 'DeviceName : 323 :agent.(1)product.(1)comments.(3)entry{\"${prefix}\"'
- matcher:
variable:
- 'BuildProduct: agent.(1-2)product.(1)comments.entry.product.name=\"Build\"'
Expand Down
Expand Up @@ -63,6 +63,7 @@ Avea|Avea
Avvio|Avvio
Azumi|Azumi
Lenovo|Lenovo
Vivo|Vivo

Nexus|Google
# Pixel is special because some browsers use this term when it is NOT a Pixel device.
Expand Down

0 comments on commit f4c81e4

Please sign in to comment.