Skip to content

Commit

Permalink
Adds detection for Blackphone, Geo Phone, IDC, R3Di, RED-X brands, im…
Browse files Browse the repository at this point in the history
…proves detection for various brands, improves detection for feature phones (#7966)

* Adds detection for Concord M20
* Adds detection for neoCore E1 R1
* Adds detection for Movic F4501
* Improves detection for JVC
* Adds detection for Crosscall Core-S4
* Improves detection for feature phones
* Adds detection for AT&T Cingular Flex
* Adds detection for UnoPhone Premier Pro
ref #7957
---
* Improves detection for Advan
* Improves detection for Amazon Echo Show 8
* Improves detection for Amazon Echo Show 5
* Improves detection for Amazon Echo Show 5
* Improves detection for Mione devices
* Improves detection for ViewSonic ViewPhone Q5
* Improves detection for Nokia devices
* Improves detection for feature phones
* Adds detection for Alcatel 3088
* Improves detection for Alcatel devices
* Adds detection for Alcatel MyFlip 2
* Adds detection for Mango Akabuto 4G
* Improves detection for AT&T devices
* Improves detection for Alcatel devices
* Improves detection for Cricket devices
* Adds detection for Alcatel MyFlip
* Adds detection for Doppio Texter
* Adds detection for Blackphone brand
* Adds detection for Geo Phone brand
* Improves detection for Accent devices
* Adds detection for Blu Flex
* Improves detection for Blu devices
* Improves detection for Jio devices
* Improves detection for Multilaser devices
* Improves detection for MTN devices
* Adds detection for Orange Sanza
* Adds detection for MTN Smart Kamunye
* Adds detection for RED-X brand
* Adds detection for Sigma X-Style
* Adds detection for R3Di brand
* Adds detection for Symphony PD1 4G
* Add test for Bmobile W125K
* Improves detection for Digit4G devices
* Improves detection for Orange Sanza
* Improves detection for Energizer devices
* Adds detection for IDC brand
* Adds detection for free Wi-Kif 4G
* Improves detection for Telma devices
* Improves detection for YouTube on KaiOS
* Adds detection for K-Lite K301
* Improves detection for Orange devices
  • Loading branch information
liviuconcioiu authored Jan 9, 2025
1 parent 235e8cd commit bffd0ff
Show file tree
Hide file tree
Showing 18 changed files with 1,823 additions and 168 deletions.
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 @@ -2321,3 +2321,15 @@
type: mobile app
name: HeartFocus Education
version: 1.0.6
-
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

0 comments on commit bffd0ff

Please sign in to comment.