Skip to content

Commit

Permalink
Detect new brand Contixo, Prixton, Newland, Orbic and detect old devi…
Browse files Browse the repository at this point in the history
…ces model for brands: Coolpad, Huawei, Acer, Vivo, Meizu, Smartisan, Samsung, HTC, ZTE, Xiaomi, Hisense, Miscrosoft, Sharp, Alcatel, SUGAR, Evercoss (#6320)

* feat(device) detect brand Vivo model: Y3 Standard (V1930A)

* feat(device) detect brand Xiaomi model: MI 10 Lite 5G (M2002J9E)

* feat(device) detect brand Meizu model: X8 (M1852)

* feat(device) detect brand Huawei model: Nova 2 (HWV31)

* feat(device) detect brand Huawei model: P30 Pro (HW-02L)

* feat(device) detect brand Smartisan model: Nut 3 (OC105)

* feat(device) detect brand Huawei model: Enjoy 7 Plus (TRT-AL00A) & rename Honor Holly 4 Plus (TRT-AL00) to Enjoy 7 Plus

* feat(device) detect brand Samsung model: GALAXY S4 mini (GT-I9192)

* feat(device) detect brand Samsung model: GALAXY J3 Orbit (SM-S367VL)

* feat(device) detect new brand Prixton model: T7012Q

* feat(device) detect brand HTC model: Desire 626S (0PM92)

* feat(device) detect brand ZTE model: Grand X3 (Z959)

* feat(device) detect brand Coolpad model: Legacy (cp3705A)

* feat(device) detect brand Huawei model: Honor 20I (HRY-AL00Ta)

* feat(device) detect brand ZTE model: Quest Plus (Z3001S)

* feat(device) detect brand Microsoft model: Lumia 650 SS (RM-1152)

* feat(device) detect brand Sharp model: Aquos U (SHV35)

* feat(device) detect brand Alcatel model: One Touch Pixi Avion 4G LTE (A571VL)

* feat(device) detect brand Alcatel model: One Touch Pixi Glitz (A464BG)

* feat(device) detect brand ZTE model: Blade T2 (Z559DL)

* feat(device) detect brand Vivo model: S6 5G (V1962A)

* feat(device) detect brand Huawei model: Honor X10 (TEL-AN00a)

* feat(device) detect new brand Newland model: MT90 Orca (NLS-MT90)

# mobile data collector or bar/qc scanner

* feat(device) detect new brand Orbic models: Wonder (RC555L), Slim (RC501L)

* feat(device) detect brand HTC models: Desire 510 (0PCV1)

* feat(device) detect brand Alcatel model: A1 (A501DL)

* feat(device) detect brand Alcatel model: A1X (A503DL)

* feat(device) detect brand ZTE model: Optus X Spirit 2 (Z5031O)

* feat(device) detect brand Huawei model: Honor 20I (HRY-AL00T)

* feat(device) detect brand Vivo model: Y7s (V1913A)

* feat(device) detect new brand RED model: Hydrogen One (H1A1000);
feat(device) detect brand NUU model: A6L-C;
feat(device) detect brand Alcatel model: Raven (A574BL);
feat(device) detect brand Vivo model: Y81s (V1732T);
feat(device) detect brand SUGAR model: S9;

* feat(device) detect brand SUGAR model: C11;

* feat(device) detect brand Huawei model: P smart (2019) (POT-LX1AF);

* feat(device) detect brand Acer model: Iconia One 8 (B1-870);

* feat(device) detect brand Meizu model: Note 8 (M1822);

* feat(device) detect brand Evercoss model: U50A Plus;

* feat(device) detect brand Huawei model: P20 Lite (ANE-LX2J);

* feat(device) detect brand Sharp model: Aquos Crystal (305SH);
feat(device) detect brand NUU model: A3;

* feat(device) detect brand Hisense model: HLTE300T;

* feat(device) detect brand ZTE model: N818S;

* feat(fixtures): remove duplicate test RED Hydrogen One;

* feat(device): replace (?: Build|[;/\)]) on the [;)/ ]

* feat(device) detect brand Coolpad model: 8676-A01

* feat(device) detect brand Sharp model: Aquos Sense Lite (SH-M05)

* fix(device) detect brand Sharp model: Aquos Sense Lite (SH-M05)

* fix(device) detect brand Hisense model: HLTE200M

* fix(device) detect brand Alcatel model: Zip (A577VL)

* feat(device) detect brand Meitu model: T9 (MP1718)

* feat(device) detect brand Vivo model: Z6 (V1963A)

* feat(device) detect brand Hisense model: F26 (HLTE200T)

* feat(device) detect brand Meizu model: M8 (M1813)

* feat(device) detect brand Motorola model: P30 (XT1943-1)

* feat(device) detect brand Motorola model: Moto Z3 (XT1929-15)

* feat(device) detect brand Huawei model: P20 Lite (HWV32)

* feat(device) detect brand Motorola model: Moto Z2 Play (XT1710-08)

* feat(device) detect brand Smartisan model: Nut Pro 3 (DT1901A)

* feat(device) detect brand Motorola model: One Vision (XT1970-5)

* feat(device) detect brand Vivo model: iQOO Pro (V1922A)

* feat(device) detect brand Meizu model: M6 Note (M721C)

* feat(device) detect brand Huawei model: Enjoy 10 (ART-AL00m)

* feat(device) detect brand Huawei model: Honor 30 (BMH-AN20)

* feat(device) detect brand Lemovo model: A5 (L18011)

* feat(device) detect brand Vivo models: iQOO Neo 855 (V1936AL), Y50 (V1965A);

* feat(device) detect brand Vivo models: Y3 (V1901T)

* feat(device) detect brand Motorola models: Moto E5 Plus (XT1924-9)

* feat(device) detect brand Motorola models: P30 Play (XT1941-2)

* feat(device) detect brand Motorola models: P30 Note (XT1942-1)

* feat(device) detect brand Vivo models: Nex 3 5G (V1924A)

* feat(device) detect brand Vivo models: iQOO Neo (V1914A)

* feat(device) detect brand Meizu models: M5S (M612C)

* feat(device) detect brand Huawei models: Honor 10I (HRY-LX1T)

* fix(misc) file-test.php fix error "Allowed memory size"

* feat(device) detect brand Huawei models: Honor 9A (MOA-LX9N)

* feat(device) detect brand Huawei models: Y8p (AQM-LX1)

* feat(device) detect new brand Contixo model: CX-1045 3G

* feat(device) detect brand Huawei model: Honor 9S (DUA-LX9)

* feat(device) detect brand Huawei model: Honor 9C (AKA-L29)

* feat(device) detect brand Ergo model: B506 Intro

* feat(device) detect brand DEXP model: BL250

* feat(device) detect brand Huawei model: MediaPad T1 8

* feat(device) detect brand CUBOT model: Echo

* feat(device) detect brand Realme model: 6 (RMX2001)

* feat(device) detect brand Yu model: Yuphoria (YU5010)

issue #5585

* feat(device) detect brand Assistant model: AP-719

issue #5585

* feat(device) detect new brand E-Ceros model: Revolution (CT9716)

issue #5585

* feat(device) detect brand E-Ceros model: Revolution HD (CT9716-B)

* feat(device) detect brand Beeline model: Fast

issue #5585

* feat(device) detect brand Meizu model: M2 (M578CA)

issue #5585

* feat(device) detect brand ZTE model: Prestige (N9132)

issue #5585

* feat(device) detect brand ZTE model: Lever (Z936L)

issue #5585

* feat(device) detect brand Alcatel model: Pixi Unite (A466BG)

issue #5585

* feat(device) detect brand Teclast model: X98 Air III

issue #5585

* feat(device) detect brand Yu model: Yureka Plus (YU5510)

issue #5585

* feat(device) detect brand Meizu model: M3 Note (M681C)

issue #5585

* feat(device) detect brand Polytron model: Rocket T1 (R2501)

issue #5585

* feat(device) detect brand True model: Smart 4G Speedy 5

issue #5585

* feat(device) detect brand Doogee model: Valencia2 Y100 Plus

issue #5585

* feat(device) detect brand Xiaomi model: Redmi 2 Pro (HM2014819)

issue #5585

* feat(device) detect brand Xiaomi model: Redmi 2 (WT88047)

issue #5585

* feat(device) detect brand Irbis model: TZ142

issue #5585

* feat(device) detect brand Polytron model: Rocket Jetz (W1400)

issue #5585

* feat(device) detect brand Huawei model: Honor Water Play 8.0 (HDL-W09)

* feat(device) detect brand Teclast model: P10S (P10S(N4H5))

* feat(device) detect brand Hisense model: HLTE212T

* feat(device) detect brand Xiaomi model: Redmi 10X

* feat(device) detect brand Lenovo model: TAB4 10 Plus (701LV Japan ver.)

* feat(device) detect brand Xiaomi model: Redmi 10X Pro (M2004J7BC)
feat(misc) file-test not report is useragent empty

* feat(device) detect new brand How model: HT-705XS

issue #6322

* feat(device) detect brand Alcatel model: 5048A

issue #6322

* feat(device) detect brand Xiaomi model: Redmi Note 9 (M2003J15SC)

issue #6322

* feat(device) detect brand Realme model: C3 (RMX2027)

issue #6322

* feat(device) detect brand Meizu model: 16T (MZ-16T)

* feat(device) detect new brand Multilaser models: E, F, MS50G

issue #6322

* feat(device) detect brand Alcatel model: 1S (5024J)

issue #6322

* feat(device) detect new brand POCO model: X2

issue #6322

* feat(device) detect brand POCO model: F2 Pro

* feat(device) detect new brand Positivo BGH model: Twist (2018)

issue #6322

* feat(device) detect new brand Positivo BGH model: Twist S

issue #6322

* feat(device) detect brand OPPO model: Find X2 Pro (OPG01)

issue #6322

* feat(device) detect new brand Maxtron models: V1, V2, V3, V7, S8

issue #6322

* feat(device) detect brand Positivo BGH models: Twist Metal 32GB, Twist Max

issue #6322

* feat(device) detect brand Lenovo model: ZUK Z2 (Z2131)

issue #6322

* feat(device) detect brand Alcatel model: 1

issue #6322

* feat(device) detect brand Evercoss M50 Star

issue #6322

* feat(device) detect brand Realme model: 6 Pro (RMX2061)
feat(device) detect brand Positivo BGH models: Twist M, Twist XL
feat(device) detect brand Quantum models: You 2, MUV Pro, Go

issue #6322

* feat(device) detect brand Realme model: 6I (RMX2040)
feat(device) detect brand ZTE model: Blade V Ultra
feat(device) detect brand Positivo BGH models: Twist Mini, Twist 2 Fit, Twist 2 Fit,
feat(device) detect brand Alcatel models: 3 (5053A), 1S (2020) (5028A)

issue #6322

* feat(device) detect new brand Philco models: PH350, PCS01
feat(device) detect brand Realme model: C3 (RMX2020)
feat(device) detect brand Multilaser model: M7 3G Plus
feat(device) detect brand Quantum model: MUV Up
feat(device) detect brand Positivo BGH models: Twist Metal, Twist 2

issue #6322

* feat(device) detect brand Multilaser model: MS45S A6

issue #6322

* feat(device) detect brand Multilaser models: MS40S, MS40G, MS55M, MS50L, MS70, MS50X

issue #6322

* feat(device) detect new brand SEMP TCL models: GO5E, GO3E, L9 Plus (5101J)
feat(device) detect brand Multilaser model: M7SQC Plus
feat(device) detect brand Alcatel model: 3C (5026J)

issue #6322

* feat(device) detect brand Vivo model: Nex 3S (V1950A)

* feat(device) detect brand Samsung model: GALAXY J7 Sky Pro (SM-S727VL)

* feat(device) detect brand NUU model: A6L-G
feat(device) detect brand MTC model: Smart Surf 4G
feat(device) detect brand ZTE model: Allstar (Z818L)

* feat(device) detect brand Samsung model: GALAXY J3 Prime (SM-J327T1)

* feat(device) detect brand Multilaser model: M7 3G Quad Core

issue #6322

* feat(device) detect new brand Newman model: P308

* feat(device) detect brand Newman model: K1

* feat(device) detect brand Hisense model: H18 (HLTE310M)

* feat(device) detect brand Vivo model: X21S (V1814T)

* feat(device) detect brand Realme model: X50 Pro (RMX2071)

* feat(device) detect brand Vivo model: X50 (V2001A)

* feat(device) detect brand Hisense model: King Kong 4 (HLTE213T)

* feat(device) detect brand Huawei model: MatePad 10.4 (BAH3-AL00)

* feat(device) detect brand Meitu model: T8s (MP1713)

* feat(device) detect brand Meitu model: M8s (MP1711)

* feat(device) detect brand Hisense model: H20 (HLTE510T)

* feat(device) detect brand Sharp model: R3 (SHV44)

* feat(device) detect brand Oppo model: A52 (PDAM10)

* feat(device) detect brand Hisense model: E9 (HITV300C)

* feat(device) detect brand Vivo model: iQOO Neo 855 (V1936A)

* feat(device) detect brand Vivo model: iQOO Z1 (V1986A)

* feat(device) detect brand Vivo model: Z5x (2020) (V1990A)

* feat(device) detect brand Vivo model: X50 Pro (V2005A)

* feat(device) detect brand Smartisan model: Pro 2 (OS105)

* feat(device) detect brand Xiaolajiao model: 20190416Q

* feat(device) detect brand Xiaolajiao model: Red Pepper Plus (20170608S)

* feat(device) detect brand Vivo model: Y9s (V1945A)

* feat(device) detect brand Xiaolajiao model: E Sports (20180322D)

* feat(device) detect brand Xiaomi model: MiTV 4A

* feat(device) detect brand Vivo model: iQOO Neo 3 (V1981A)

* feat(device) detect brand Positivo BGH model: Selfie (S455)

* feat(device) detect brand OnePlus model: 7T Pro (HD1911)

issue: #6322

* feat(device) detect new brand Swipe model: Elite Sense
issue: #6322

* feat(device) detect brand Smartisan model: Nut 3 (OC106)

* feat(device) detect brand Meizu model: M5 Note (M621C)

* feat(device) detect brand Smartisan model: JianGuo Pro 2 (OS103)

* fix(pr) fix short code brand RED

* fix(pr) remove space regex in detect device MiTV 4A

* Update regexes/device/mobiles.yml

Co-authored-by: Stefan Giehl <[email protected]>

* Update regexes/device/mobiles.yml

Co-authored-by: Stefan Giehl <[email protected]>

* Update regexes/device/mobiles.yml

Co-authored-by: Stefan Giehl <[email protected]>

* Update regexes/device/mobiles.yml

Co-authored-by: Stefan Giehl <[email protected]>

* Update regexes/device/mobiles.yml

Co-authored-by: Stefan Giehl <[email protected]>

* fix(pr) remove group regex in detect device how HT-705XS

Co-authored-by: Stefan Giehl <[email protected]>

* fix(pr) Added optional group regex in common detect brand Multilaser

Co-authored-by: Stefan Giehl <[email protected]>

* fix(pr) Added optional group regex in common detect brand Meitu

Co-authored-by: Stefan Giehl <[email protected]>

* fix(pr) remove group regex in detect device Multilaser M7 3G Plus

Co-authored-by: Stefan Giehl <[email protected]>

* fix(pr) Added optional group regex in common detect brand Quantum

Co-authored-by: Stefan Giehl <[email protected]>

* fix(pr) Added optional group regex in common detect brand SEMP TCL

Co-authored-by: Stefan Giehl <[email protected]>

* fix(pr) Added optional group regex in common detect brand Positivo BGH

Co-authored-by: Stefan Giehl <[email protected]>

* Added optional group regex in common detect brand Yu

Co-authored-by: Stefan Giehl <[email protected]>

* fix(pr) Added optional group regex in common detect brand POCO

Co-authored-by: Stefan Giehl <[email protected]>

* fix(pr) remove group regex in detect device SEMP TCL L9 Plus

Co-authored-by: Stefan Giehl <[email protected]>

* fix(pr) Added optional group regex in detect device Huawei HWV31

Co-authored-by: Stefan Giehl <[email protected]>

* fix(pr) Added optional group regex in detect device POLYTRON W1400

Co-authored-by: Stefan Giehl <[email protected]>

* fix(pr) Added optional group regex in detect device Huawei P30 Pro

Co-authored-by: Stefan Giehl <[email protected]>

* feat(device) detect brand Huawei model: P30 Lite (HWV33)

* fix(pr) detect brand How model: HT-705XS

Co-authored-by: --add <[email protected]>
Co-authored-by: Stefan Giehl <[email protected]>
  • Loading branch information
3 people authored Jul 12, 2020
1 parent 8722c34 commit cac1263
Show file tree
Hide file tree
Showing 8 changed files with 5,929 additions and 341 deletions.
18 changes: 16 additions & 2 deletions Parser/Device/DeviceParserAbstract.php
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ abstract class DeviceParserAbstract extends ParserAbstract
'CR' => 'CreNova',
'CT' => 'Capitel',
'CQ' => 'Compaq',
'3C' => 'Contixo',
'CO' => 'Coolpad',
'C5' => 'Condor',
'CW' => 'Cowon',
Expand Down Expand Up @@ -197,6 +198,7 @@ abstract class DeviceParserAbstract extends ParserAbstract
'D8' => 'Droxio',
'DU' => 'Dune HD',
'EB' => 'E-Boda',
'2E' => 'E-Ceros',
'EA' => 'EBEST',
'EC' => 'Ericsson',
'E7' => 'Ergo',
Expand Down Expand Up @@ -273,6 +275,7 @@ abstract class DeviceParserAbstract extends ParserAbstract
'H1' => 'Hoffmann',
'HM' => 'Homtom',
'HO' => 'Hosin',
'HW' => 'How',
'HZ' => 'Hoozo',
'HP' => 'HP',
'HT' => 'HTC',
Expand Down Expand Up @@ -379,6 +382,7 @@ abstract class DeviceParserAbstract extends ParserAbstract
'XM' => 'Macoox',
'MJ' => 'Majestic',
'MA' => 'Manta Multimedia',
'6X' => 'Maxtron',
'5M' => 'Mann',
'2M' => 'Masstel',
'MW' => 'Maxwest',
Expand Down Expand Up @@ -424,6 +428,7 @@ abstract class DeviceParserAbstract extends ParserAbstract
'MG' => 'MyWigo',
'M8' => 'Myria',
'6M' => 'Mystery',
'1R' => 'Multilaser',
'N3' => 'Navon',
'N7' => 'National',
'N5' => 'NOA',
Expand All @@ -436,6 +441,7 @@ abstract class DeviceParserAbstract extends ParserAbstract
'N6' => 'Nobby',
'NO' => 'Nous',
'NI' => 'Nintendo',
'0N' => 'Newman',
'N1' => 'Noain',
'N2' => 'Nextbit',
'NK' => 'Nokia',
Expand All @@ -446,6 +452,7 @@ abstract class DeviceParserAbstract extends ParserAbstract
'NL' => 'NUU Mobile',
'NY' => 'NYX Mobile',
'NN' => 'Nikon',
'N9' => 'Newland',
'NW' => 'Newgen',
'NS' => 'NewsMy',
'NX' => 'Nexian',
Expand All @@ -460,6 +467,7 @@ abstract class DeviceParserAbstract extends ParserAbstract
'OP' => 'OPPO',
'O4' => 'ONN',
'OR' => 'Orange',
'O5' => 'Orbic',
'OS' => 'Ordissimo',
'OT' => 'O2',
'OK' => 'Ouki',
Expand All @@ -477,14 +485,18 @@ abstract class DeviceParserAbstract extends ParserAbstract
'PE' => 'PEAQ',
'PG' => 'Pentagram',
'PH' => 'Philips',
'4P' => 'Philco',
'1P' => 'Phicomm',
'PI' => 'Pioneer',
'PX' => 'Pixus',
'PL' => 'Polaroid',
'P5' => 'Polytron',
'P9' => 'Primepad',
'2P' => 'Prixton',
'P6' => 'Proline',
'PM' => 'Palm',
'0P' => 'POCO',
'3P' => 'Positivo BGH',
'PO' => 'phoneOne',
'PT' => 'Pantech',
'PY' => 'Ployer',
Expand All @@ -508,11 +520,11 @@ abstract class DeviceParserAbstract extends ParserAbstract
'QU' => 'Quechua',
'QO' => 'Qumo',
'RA' => 'Ramos',
'RE' => 'Realme',
'R8' => 'RED',
'RZ' => 'Razer',
'RC' => 'RCA Tablets',
'RE' => 'Realme',
'RB' => 'Readboy',
'R8' => 'RED',
'RI' => 'Rikomagic',
'RN' => 'Rinno',
'RV' => 'Riviera',
Expand Down Expand Up @@ -548,6 +560,7 @@ abstract class DeviceParserAbstract extends ParserAbstract
'SJ' => 'Silent Circle',
'1S' => 'Sigma',
'SN' => 'Sendo',
'0S' => 'SEMP TCL',
'S6' => 'Senseit',
'EW' => 'Senwa',
'SW' => 'Sky',
Expand Down Expand Up @@ -578,6 +591,7 @@ abstract class DeviceParserAbstract extends ParserAbstract
'S3' => 'SunVan',
'SZ' => 'Sumvision',
'SS' => 'SWISSMOBILITY',
'0W' => 'Swipe',
'10' => 'Simbans',
'X1' => 'Safaricom',
'TA' => 'Tesla',
Expand Down
1 change: 1 addition & 0 deletions Tests/DeviceDetectorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ public function testIsParsed()
public function testParse($fixtureData)
{
$ua = $fixtureData['user_agent'];

DeviceParserAbstract::setVersionTruncation(DeviceParserAbstract::VERSION_TRUNCATION_NONE);
$uaInfo = DeviceDetector::getInfoFromUserAgent($ua);
$this->assertEquals($fixtureData, $uaInfo, "UserAgent: {$ua}");
Expand Down
2 changes: 1 addition & 1 deletion Tests/fixtures/smartphone-11.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3140,7 +3140,7 @@
device:
type: smartphone
brand: SA
model: GT-I9192
model: GALAXY S4 mini
os_family: Android
browser_family: Chrome
-
Expand Down
Loading

0 comments on commit cac1263

Please sign in to comment.