Skip to content

Commit

Permalink
Detect new brands: Airtel, MAXX, TENPLUS, HAOVM, COMPUMAX and Detect …
Browse files Browse the repository at this point in the history
…devices for several existing brands (#7084)

* feat(device) detect new brand Airtel models: AirPad 7S

* feat(device) detect new brand MAXX: T1270G
feat(device) detect brand Samsung: Galaxy Tab S8 11.0" WiFi (SM-X700)
feat(device) detect brand Oysters: T12 3G, T12V 3G

* feat(device) detect brand Jesy: J9s Pro

* feat(device) detect brand Xiaomi: Pocophone F1 (beryllium)
feat(device) detect brand Wileyfox: Swift (crackling)
feat(device) detect brand Asus: MeMO Pad FHD 10 LTE (AOSP on Duma)
feat(device) detect brand Unknown: Audi KS (ks1280x480)

* feat(device) detect new brand TENPLUS: X12
feat(device) detect brand Xiaomi: Redmi Note 11 Pro 5G (2201116SG)
feat(device) detect brand Tecno Mobile: Camon iAir 2+ (TECNO ID3k)
feat(device) detect brand Casper: VIA L30
feat(device) detect brand Chuwi: SurPad
feat(device) detect brand Allview: Viva 1003G Lite
feat(device) detect brand Sony: Bravia 8K UR3

issue #7083

* feat(device) detect brand Tecno Mobile: Camon i2 (TECNO ID5a), Camon iAce 2 (TECNO KB2)

* feat(device) detect new brand HAOVM: T2000
feat(device) detect brand Tecno Mobile: Camon iTwin (TECNO IA5)
feat(device) detect brand Realme: C21Y (RMX3262)
feat(device) detect brand Wiko: View 4 (W-V830-ID)
feat(device) detect brand Zebra: TC21

* feat(device) detect new brand COMPUMAX: Blue S10
feat(device) detect brand Philco: Hit P10
feat(device) detect brand Chuwi: HiPad Plus

* feat(device) detect brand Infinix: Note 11, Zero X Neo, Zero X Pro, Smart 6, Hot 11 (X662), Note 10 Pro
feat(device) detect brand iTel: P37 Pro (P681LM)
feat(device) detect brand Hotwav: Cyber 9 Pro

* fix: tests
  • Loading branch information
sanchezzzhak authored Apr 11, 2022
1 parent 67377d7 commit 0c06547
Show file tree
Hide file tree
Showing 8 changed files with 952 additions and 26 deletions.
5 changes: 5 additions & 0 deletions Parser/Device/AbstractDeviceParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ abstract class AbstractDeviceParser extends AbstractParser
'AZ' => 'Ainol',
'AI' => 'Airness',
'AT' => 'Airties',
'7U' => 'Airtel',
'U0' => 'AIRON',
'0A' => 'AIS',
'AW' => 'Aiwa',
Expand Down Expand Up @@ -270,6 +271,7 @@ abstract class AbstractDeviceParser extends AbstractParser
'CL' => 'Compal',
'CQ' => 'Compaq',
'C7' => 'ComTrade Tesla',
'7Z' => 'COMPUMAX',
'C8' => 'Concord',
'CC' => 'ConCorde',
'C5' => 'Condor',
Expand Down Expand Up @@ -484,6 +486,7 @@ abstract class AbstractDeviceParser extends AbstractParser
'GV' => 'Gtel',
'9Z' => 'H96',
'HF' => 'Hafury',
'9F' => 'HAOVM',
'HA' => 'Haier',
'XH' => 'Haipai',
'HE' => 'HannSpree',
Expand Down Expand Up @@ -722,6 +725,7 @@ abstract class AbstractDeviceParser extends AbstractParser
'ZM' => 'Maximus',
'6X' => 'Maxtron',
'0D' => 'MAXVI',
'XZ' => 'MAXX',
'MW' => 'Maxwest',
'M0' => 'Maze',
'YM' => 'Maze Speed',
Expand Down Expand Up @@ -1141,6 +1145,7 @@ abstract class AbstractDeviceParser extends AbstractParser
'9T' => 'Tetratab',
'TZ' => 'teXet',
'29' => 'Teknosa',
'JC' => 'TENPLUS',
'T4' => 'ThL',
'TN' => 'Thomson',
'O0' => 'Thuraya',
Expand Down
90 changes: 90 additions & 0 deletions Tests/fixtures/phablet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8346,3 +8346,93 @@
model: Redmi Note 11S
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 11; 2201116SG) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.101 Mobile Safari/537.36
os:
name: Android
version: "11"
platform: ""
client:
type: browser
name: Chrome Mobile
version: 98.0.4758.101
engine: Blink
engine_version: 98.0.4758.101
device:
type: phablet
brand: Xiaomi
model: Redmi Note 11 Pro 5G
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 11; Infinix X663) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.101 Mobile Safari/537.36
os:
name: Android
version: "11"
platform: ""
client:
type: browser
name: Chrome Mobile
version: 98.0.4758.101
engine: Blink
engine_version: 98.0.4758.101
device:
type: phablet
brand: Infinix
model: Note 11
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 11; Infinix X6810) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.101 Mobile Safari/537.36
os:
name: Android
version: "11"
platform: ""
client:
type: browser
name: Chrome Mobile
version: 98.0.4758.101
engine: Blink
engine_version: 98.0.4758.101
device:
type: phablet
brand: Infinix
model: Zero X Neo
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 11; Infinix X6811 Build/RP1A.200720.011; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/98.0.4758.101 Mobile Safari/537.36
os:
name: Android
version: "11"
platform: ""
client:
type: browser
name: Chrome Webview
version: 98.0.4758.101
engine: Blink
engine_version: 98.0.4758.101
device:
type: phablet
brand: Infinix
model: Zero X Pro
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 11; Infinix X695D) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.87 Mobile Safari/537.36
os:
name: Android
version: "11"
platform: ""
client:
type: browser
name: Chrome Mobile
version: 98.0.4758.87
engine: Blink
engine_version: 98.0.4758.87
device:
type: phablet
brand: Infinix
model: Note 10 Pro
os_family: Android
browser_family: Chrome
198 changes: 198 additions & 0 deletions Tests/fixtures/smartphone-25.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9827,3 +9827,201 @@
model: K5S
os_family: Android
browser_family: Unknown
-
user_agent: Mozilla/5.0 (Linux; U; Android 4.4.2; en-US; thl T12 Build/KOT49H) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/57.0.2987.108 UCBrowser/12.11.8.1186 Mobile Safari/537.36
os:
name: Android
version: 4.4.2
platform: ""
client:
type: browser
name: UC Browser
version: 12.11.8.1186
engine: WebKit
engine_version: "537.36"
device:
type: smartphone
brand: ThL
model: T12
os_family: Android
browser_family: Unknown
-
user_agent: Mozilla/5.0 (Linux; Android 7.0; J9S_PRO) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.98 Mobile Safari/537.36
os:
name: Android
version: "7.0"
platform: ""
client:
type: browser
name: Chrome Mobile
version: 97.0.4692.98
engine: Blink
engine_version: 97.0.4692.98
device:
type: smartphone
brand: Jesy
model: J9s Pro
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 8.1.0; iQG550) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.74 Mobile Safari/537.36
os:
name: Android
version: 8.1.0
platform: ""
client:
type: browser
name: Chrome Mobile
version: 95.0.4638.74
engine: Blink
engine_version: 95.0.4638.74
device:
type: smartphone
brand: MLS
model: Style 4G
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 11; OMIX X300) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.74 Mobile Safari/537.36
os:
name: Android
version: "11"
platform: ""
client:
type: browser
name: Chrome Mobile
version: 95.0.4638.74
engine: Blink
engine_version: 95.0.4638.74
device:
type: smartphone
brand: OMIX
model: X300
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 11; blueline) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Mobile Safari/537.36
os:
name: Android
version: "11"
platform: ""
client:
type: browser
name: Chrome Mobile
version: 95.0.4638.69
engine: Blink
engine_version: 95.0.4638.69
device:
type: smartphone
brand: Google
model: Pixel 3
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 11; SM-A025U) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.40 Mobile Safari/537.36
os:
name: Android
version: "11"
platform: ""
client:
type: browser
name: Chrome Mobile
version: 95.0.4638.40
engine: Blink
engine_version: 95.0.4638.40
device:
type: smartphone
brand: Samsung
model: Galaxy A02s
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 11; XQ-BE52) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.74 Mobile Safari/537.36
os:
name: Android
version: "11"
platform: ""
client:
type: browser
name: Chrome Mobile
version: 95.0.4638.74
engine: Blink
engine_version: 95.0.4638.74
device:
type: smartphone
brand: Sony
model: Xperia Pro I
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 10; TC21) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.74 Mobile Safari/537.36
os:
name: Android
version: "10"
platform: ""
client:
type: browser
name: Chrome Mobile
version: 95.0.4638.74
engine: Blink
engine_version: 95.0.4638.74
device:
type: smartphone
brand: Zebra
model: TC21
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 11; Infinix X6511B) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.101 Mobile Safari/537.36
os:
name: Android
version: "11"
platform: ""
client:
type: browser
name: Chrome Mobile
version: 98.0.4758.101
engine: Blink
engine_version: 98.0.4758.101
device:
type: smartphone
brand: Infinix
model: Smart 6
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 11; Infinix X689F) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.101 Mobile Safari/537.36
os:
name: Android
version: "11"
platform: ""
client:
type: browser
name: Chrome Mobile
version: 98.0.4758.101
engine: Blink
engine_version: 98.0.4758.101
device:
type: smartphone
brand: Infinix
model: Hot 11
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 11; itel P681LM) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.87 Mobile Safari/537.36
os:
name: Android
version: "11"
platform: ""
client:
type: browser
name: Chrome Mobile
version: 98.0.4758.87
engine: Blink
engine_version: 98.0.4758.87
device:
type: smartphone
brand: iTel
model: P37 Pro
os_family: Android
browser_family: Chrome
Loading

0 comments on commit 0c06547

Please sign in to comment.