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

Adds detection for Blackphone, Geo Phone, IDC, R3Di, RED-X brands, improves detection for various brands, improves detection for feature phones #7966

Open
wants to merge 52 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
956d7f3
Adds detection for Concord M20
liviuconcioiu Dec 28, 2024
7963006
Adds detection for neoCore E1 R1
liviuconcioiu Dec 28, 2024
8069ee5
Adds detection for Movic F4501
liviuconcioiu Dec 28, 2024
1e81e8d
Improves detection for JVC
liviuconcioiu Dec 28, 2024
09cfb7c
Adds detection for Crosscall Core-S4
liviuconcioiu Dec 28, 2024
31e4caf
Improves detection for feature phones
liviuconcioiu Dec 28, 2024
6959d6e
Adds detection for AT&T Cingular Flex
liviuconcioiu Dec 28, 2024
3956a83
Adds detection for UnoPhone Premier Pro
liviuconcioiu Dec 28, 2024
2ad7a71
Improves detection for Advan
liviuconcioiu Dec 28, 2024
934fa2d
Improves detection for Amazon Echo Show 8
liviuconcioiu Dec 28, 2024
8ec79d5
Improves detection for Amazon Echo Show 5
liviuconcioiu Dec 28, 2024
2f8bde6
Improves detection for Amazon Echo Show 5
liviuconcioiu Dec 28, 2024
8b80d14
Improves detection for Mione devices
liviuconcioiu Dec 28, 2024
99e9bbf
Improves detection for ViewSonic ViewPhone Q5
liviuconcioiu Dec 28, 2024
133fa40
Improves detection for Nokia devices
liviuconcioiu Dec 28, 2024
5666bf8
Fix regex
liviuconcioiu Dec 28, 2024
68f01ca
Improves detection for feature phones
liviuconcioiu Dec 28, 2024
859c0d2
Adds detection for Alcatel 3088
liviuconcioiu Dec 28, 2024
3baa042
Improves detection for Alcatel devices
liviuconcioiu Dec 28, 2024
5ace21a
Adds detection for Alcatel MyFlip 2
liviuconcioiu Dec 28, 2024
3c55581
Adds detection for Mango Akabuto 4G
liviuconcioiu Dec 28, 2024
4d437fa
Improves detection for AT&T devices
liviuconcioiu Dec 28, 2024
8902941
Improves detection for Alcatel devices
liviuconcioiu Dec 28, 2024
7cbf5e2
Improves detection for Cricket devices
liviuconcioiu Dec 28, 2024
a75509d
Adds detection for Alcatel MyFlip
liviuconcioiu Dec 28, 2024
6971d65
Adds detection for Doppio Texter
liviuconcioiu Dec 28, 2024
c4ae247
Adds detection for Blackphone brand
liviuconcioiu Dec 28, 2024
b23e112
Adds detection for Geo Phone brand
liviuconcioiu Dec 28, 2024
f5ad333
Improves detection for Accent devices
liviuconcioiu Dec 28, 2024
e41e2e4
Merge remote-tracking branch 'upstream/master' into devices
liviuconcioiu Dec 29, 2024
9c290ac
Adds detection for Blu Flex
liviuconcioiu Dec 29, 2024
eb943f3
Improves detection for Blu devices
liviuconcioiu Dec 29, 2024
1164b90
Improves detection for Jio devices
liviuconcioiu Dec 29, 2024
a4ce8f5
Improves detection for Multilaser devices
liviuconcioiu Dec 29, 2024
c67978e
Improves detection for MTN devices
liviuconcioiu Dec 29, 2024
49f0bae
Adds detection for Orange Sanza
liviuconcioiu Dec 29, 2024
0f49417
Adds detection for MTN Smart Kamunye
liviuconcioiu Dec 29, 2024
e7d8710
Adds detection for RED-X brand
liviuconcioiu Dec 29, 2024
47b18be
Adds detection for Sigma X-Style
liviuconcioiu Dec 29, 2024
e717953
Adds detection for R3Di brand
liviuconcioiu Dec 29, 2024
f2282bf
Adds detection for Symphony PD1 4G
liviuconcioiu Dec 29, 2024
d3e1677
Add test for Bmobile W125K
liviuconcioiu Dec 29, 2024
34912c1
Improves detection for Digit4G devices
liviuconcioiu Dec 29, 2024
1b76ad4
Improves detection for Orange Sanza
liviuconcioiu Dec 29, 2024
e18a5e5
Improves detection for Energizer devices
liviuconcioiu Dec 29, 2024
475644c
Adds detection for IDC brand
liviuconcioiu Dec 29, 2024
1b3598f
Adds detection for free Wi-Kif 4G
liviuconcioiu Dec 29, 2024
e81df43
Improves detection for Telma devices
liviuconcioiu Dec 29, 2024
d3c064a
Improves detection for YouTube on KaiOS
liviuconcioiu Dec 29, 2024
2659d73
Adds detection for K-Lite K301
liviuconcioiu Dec 29, 2024
d3de0bb
Improves detection for Orange devices
liviuconcioiu Dec 29, 2024
ebd8001
Fix comment
liviuconcioiu Dec 29, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion DeviceDetector.php
Original file line number Diff line number Diff line change
Expand Up @@ -1017,12 +1017,19 @@ protected function parseDevice(): void
}

/**
* All unknown devices under running Java ME are more likely a features phones
* All unknown devices under running Java ME are more likely features phones
*/
if ('Java ME' === $osName && null === $this->device) {
$this->device = AbstractDeviceParser::DEVICE_TYPE_FEATURE_PHONE;
}

/**
* All devices running KaiOS are more likely features phones
*/
if ('KaiOS' === $osName) {
$this->device = AbstractDeviceParser::DEVICE_TYPE_FEATURE_PHONE;
}

/**
* According to http://msdn.microsoft.com/en-us/library/ie/hh920767(v=vs.85).aspx
* Internet Explorer 10 introduces the "Touch" UA string token. If this token is present at the end of the
Expand Down
5 changes: 5 additions & 0 deletions Parser/Device/AbstractDeviceParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@ abstract class AbstractDeviceParser extends AbstractParser
'BLK' => 'Black Box',
'BF' => 'Black Fox',
'BPC' => 'Blackpcs',
'BLP' => 'Blackphone',
'BLT' => 'Blackton',
'B2' => 'Blackview',
'2Y' => 'b2m',
Expand Down Expand Up @@ -690,6 +691,7 @@ abstract class AbstractDeviceParser extends AbstractParser
'GD' => 'Gemini',
'GN' => 'General Mobile',
'2G' => 'Genesis',
'GEP' => 'Geo Phone',
'G2' => 'GEOFOX',
'GE' => 'Geotel',
'Q4' => 'Geotex',
Expand Down Expand Up @@ -849,6 +851,7 @@ abstract class AbstractDeviceParser extends AbstractParser
'IC' => 'iDroid',
'IDI' => 'iDino',
'6Z' => 'iData',
'IDC' => 'IDC',
'IG' => 'iGet',
'IHL' => 'iHome Life',
'IH' => 'iHunt',
Expand Down Expand Up @@ -1471,6 +1474,7 @@ abstract class AbstractDeviceParser extends AbstractParser
'WJ' => 'Qware',
'QWT' => 'QWATT',
'R2' => 'R-TV',
'R3D' => 'R3Di',
'RA' => 'Ramos',
'0R' => 'Raspberry',
'R9' => 'Ravoz',
Expand All @@ -1487,6 +1491,7 @@ abstract class AbstractDeviceParser extends AbstractParser
'RE' => 'Realme',
'RE1' => 'Redbean',
'R8' => 'RED',
'RDX' => 'RED-X',
'REW' => 'Redway',
'6F' => 'Redfox',
'RE2' => 'RedLine',
Expand Down
12 changes: 12 additions & 0 deletions Tests/Parser/Client/fixtures/mobile_app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2315,3 +2315,15 @@
type: mobile app
name: Edmodo
version: 10.43.5
-
user_agent: Mozilla/5.0 (Mobile; LYF/F10Q/LYF-F10Q-000-01-31-071119; Android; rv:48.0) Gecko/48.0 Firefox/48.0 KAIOS/2.5 YouTube/1.92.52.J
client:
type: mobile app
name: YouTube
version: 1.92.52
-
user_agent: Mozilla/5.0 (Mobile; ALCATEL A406DL; rv:48.0) Gecko/48.0 Firefox/48.0 KAIOS/2.5.4 YouTube/1.92.52.K
client:
type: mobile app
name: YouTube
version: 1.92.52
Loading
Loading