diff --git a/Tests/fixtures/smartphone-4.yml b/Tests/fixtures/smartphone-4.yml index 72b40892a5..5770773036 100644 --- a/Tests/fixtures/smartphone-4.yml +++ b/Tests/fixtures/smartphone-4.yml @@ -6764,6 +6764,26 @@ model: Le X900 os_family: Android browser_family: Unknown +- + user_agent: Mozilla/5.0 (Linux; Android 6.0.1; LEX722) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.136 Mobile Safari/537.36 + os: + name: Android + short_name: AND + version: "6.0.1" + platform: "" + client: + type: browser + name: Chrome Mobile + short_name: CM + version: "74.0.3729.136" + engine: Blink + engine_version: "" + device: + type: smartphone + brand: L1 + model: Le X722 + os_family: Android + browser_family: Chrome - user_agent: Mozilla/5.0 (Linux; Android 5.0; S6 Build/LRX22G) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/30.0.0.0 Mobile Safari/537.36 os: @@ -9384,6 +9404,26 @@ model: G4 Stylus os_family: Android browser_family: Chrome +- + user_agent: Mozilla/5.0 (Linux; Android 6.0; LG-H630) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.136 Mobile Safari/537.36 + os: + name: Android + short_name: AND + version: "6.0" + platform: "" + client: + type: browser + name: Chrome Mobile + short_name: CM + version: "74.0.3729.136" + engine: Blink + engine_version: "" + device: + type: smartphone + brand: LG + model: G4 Stylus + os_family: Android + browser_family: Chrome - user_agent: Mozilla/5.0 (Linux; Android 6.0; LG-H525n Build/MRA58K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.76 Mobile Safari/537.36 os: diff --git a/Tests/fixtures/smartphone-5.yml b/Tests/fixtures/smartphone-5.yml index ba620772c7..2d1accab41 100644 --- a/Tests/fixtures/smartphone-5.yml +++ b/Tests/fixtures/smartphone-5.yml @@ -1236,6 +1236,26 @@ model: X Power os_family: Android browser_family: Chrome +- + user_agent: Mozilla/5.0 (Linux; Android 7.0; LG-M320 Build/NRD90U) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.68 Mobile Safari/537.36 + os: + name: Android + short_name: AND + version: "7.0" + platform: "" + client: + type: browser + name: Chrome Mobile + short_name: CM + version: "67.0.3396.68" + engine: Blink + engine_version: "" + device: + type: smartphone + brand: LG + model: X Power 2 + os_family: Android + browser_family: Chrome - user_agent: UCWEB/2.0 (Java; U; MIDP-2.0; fr-FR; LG-X330T) U2/1.0.0 UCBrowser/9.3.0.326 U2/1.0.0 Mobile UNTRUSTED/1.0 os: [ ] @@ -7838,6 +7858,26 @@ model: Moto G os_family: Android browser_family: Chrome +- + user_agent: Mozilla/5.0 (Linux; Android 6.0; XT1069) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.136 Mobile Safari/537.36 + os: + name: Android + short_name: AND + version: "6.0" + platform: "" + client: + type: browser + name: Chrome Mobile + short_name: CM + version: "74.0.3729.136" + engine: Blink + engine_version: "" + device: + type: smartphone + brand: MR + model: Moto G + os_family: Android + browser_family: Chrome - user_agent: Browse/0.6.mini (Linux 3.4.0+; RemixOS 6.0; Motorola Moto G 2014; en_us) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.119 Desktop os: @@ -7918,6 +7958,46 @@ model: Moto G5S Plus os_family: Android browser_family: Chrome +- + user_agent: Mozilla/5.0 (Linux; Android 9; moto g(6)) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.136 Mobile Safari/537.36 + os: + name: Android + short_name: AND + version: "9" + platform: "" + client: + type: browser + name: Chrome Mobile + short_name: CM + version: "74.0.3729.136" + engine: Blink + engine_version: "" + device: + type: smartphone + brand: MR + model: Moto g6 + os_family: Android + browser_family: Chrome +- + user_agent: Mozilla/5.0 (Linux; Android 9; moto g(6) plus) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.90 Mobile Safari/537.36 + os: + name: Android + short_name: AND + version: "9" + platform: "" + client: + type: browser + name: Chrome Mobile + short_name: CM + version: "73.0.3683.90" + engine: Blink + engine_version: "" + device: + type: smartphone + brand: MR + model: Moto g6 plus + os_family: Android + browser_family: Chrome - user_agent: Mozilla/5.0 (Linux; Android 7.0; XT1663 Build/NRD90M) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.111 Mobile Safari/537.36 os: @@ -8098,6 +8178,26 @@ model: Moto X os_family: Android browser_family: Chrome +- + user_agent: Mozilla/5.0 (Linux; Android 6.0; XT1097 Build/MPES24.49-18-7; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/44.0.2403.119 Mobile Safari/537.36 + os: + name: Android + short_name: AND + version: "6.0" + platform: "" + client: + type: browser + name: Chrome Mobile + short_name: CM + version: "44.0.2403.119" + engine: Blink + engine_version: "" + device: + type: smartphone + brand: MR + model: Moto X + os_family: Android + browser_family: Chrome - user_agent: Mozilla/5.0 (Linux; Android 6.0.1; XT1562 Build/MPDS24.107-70-1-5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.83 Mobile Safari/537.36 os: @@ -8118,6 +8218,26 @@ model: Moto X Play os_family: Android browser_family: Chrome +- + user_agent: Mozilla/5.0 (Linux; Android 9; moto x4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.136 Mobile Safari/537.36 + os: + name: Android + short_name: AND + version: "9" + platform: "" + client: + type: browser + name: Chrome Mobile + short_name: CM + version: "74.0.3729.136" + engine: Blink + engine_version: "" + device: + type: smartphone + brand: MR + model: Moto x4 + os_family: Android + browser_family: Chrome - user_agent: Mozilla/5.0 (Linux; U; Android 2.3.6; zh-CN; XT882 Build/SWDFS_M7_4.97.0) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 UCBrowser/9.6.2.404 U3/0.8.0 Mobile Safari/533.1 os: @@ -9497,6 +9617,46 @@ model: X1 os_family: Android browser_family: Chrome +- + user_agent: Mozilla/5.0 (Linux; Android 7.0; Neffos X1 Lite Build/NRD90M) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.84 Mobile Safari/537.36 + os: + name: Android + short_name: AND + version: "7.0" + platform: "" + client: + type: browser + name: Chrome Mobile + short_name: CM + version: "62.0.3202.84" + engine: Blink + engine_version: "" + device: + type: smartphone + brand: NF + model: X1 Lite + os_family: Android + browser_family: Chrome +- + user_agent: Mozilla/5.0 (Linux; Android 7.0; Neffos X1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.121 Mobile Safari/537.36 + os: + name: Android + short_name: AND + version: "7.0" + platform: "" + client: + type: browser + name: Chrome Mobile + short_name: CM + version: "72.0.3626.121" + engine: Blink + engine_version: "" + device: + type: smartphone + brand: NF + model: X1 + os_family: Android + browser_family: Chrome - user_agent: Mozilla/5.0 (Linux; Android 8.1.0; Neffos_X9) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.99 Mobile Safari/537.36 os: diff --git a/Tests/fixtures/smartphone-7.yml b/Tests/fixtures/smartphone-7.yml index f5464ccc00..258573d4d4 100644 --- a/Tests/fixtures/smartphone-7.yml +++ b/Tests/fixtures/smartphone-7.yml @@ -2996,6 +2996,26 @@ model: GALAXY J5 (2017) os_family: Android browser_family: Unknown +- + user_agent: Mozilla/5.0 (Linux; Android 8.1.0; SM-J530G) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.136 Mobile Safari/537.36 + os: + name: Android + short_name: AND + version: "8.1.0" + platform: "" + client: + type: browser + name: Chrome Mobile + short_name: CM + version: "74.0.3729.136" + engine: Blink + engine_version: "" + device: + type: smartphone + brand: SA + model: GALAXY J5 (2017) + os_family: Android + browser_family: Chrome - user_agent: Mozilla/5.0 (Linux; Android 6.0.1; SM-G570M Build/MMB29K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.89 Mobile Safari/537.36 os: @@ -3516,6 +3536,26 @@ model: GALAXY J7+ (C7) os_family: Android browser_family: Unknown +- + user_agent: Mozilla/5.0 (Linux; Android 9; SM-J810M) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.90 Mobile Safari/537.36 + os: + name: Android + short_name: AND + version: "9" + platform: "" + client: + type: browser + name: Chrome Mobile + short_name: CM + version: "73.0.3683.90" + engine: Blink + engine_version: "" + device: + type: smartphone + brand: SA + model: GALAXY J8 + os_family: Android + browser_family: Chrome - user_agent: Mozilla/5.0 (Linux; Android 6.0; SM-J8 Pro Build/LMY47I) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/39.0.0.0 Mobile Safari/537.36 os: @@ -7476,6 +7516,26 @@ model: GALAXY S9+ os_family: Android browser_family: Unknown +- + user_agent: Mozilla/5.0 (Linux; Android 9; SAMSUNG SM-G973F Build/PPR1.180610.011) AppleWebKit/537.36 (KHTML, like Gecko) SamsungBrowser/9.2 Chrome/67.0.3396.87 Mobile Safari/537.36 + os: + name: Android + short_name: AND + version: "9" + platform: "" + client: + type: browser + name: Samsung Browser + short_name: SB + version: "9.2" + engine: WebKit + engine_version: "537.36" + device: + type: smartphone + brand: SA + model: GALAXY S10 + os_family: Android + browser_family: Unknown - user_agent: Mozilla/5.0 (Linux; U; Android 4.1.1; en-gb; GT-I9003 Build/JRO03L) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30 os: diff --git a/Tests/fixtures/smartphone-9.yml b/Tests/fixtures/smartphone-9.yml index 7b5b1e0d2e..10b4c1bc70 100644 --- a/Tests/fixtures/smartphone-9.yml +++ b/Tests/fixtures/smartphone-9.yml @@ -7966,6 +7966,26 @@ model: Mi A1 os_family: Android browser_family: Chrome +- + user_agent: Mozilla/5.0 (Linux; Android 7.0; MIX Build/NRD90M; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/74.0.3729.136 Mobile Safari/537.36 + os: + name: Android + short_name: AND + version: "7.0" + platform: "" + client: + type: browser + name: Chrome Mobile + short_name: CM + version: "74.0.3729.136" + engine: Blink + engine_version: "" + device: + type: smartphone + brand: XI + model: MI MIX + os_family: Android + browser_family: Chrome - user_agent: Mozilla/5.0 (Linux; Android 8.0; MIX 2 Build/OPR1.170623.027; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/57.0.2987.132 MQQBrowser/6.2 TBS/043909 Mobile Safari/537.36 MicroMessenger/6.6.5.1280(0x26060536) NetType/4G Language/zh_CN os: diff --git a/Tests/fixtures/tablet-2.yml b/Tests/fixtures/tablet-2.yml index 80b3f2ec91..6955e0bb83 100644 --- a/Tests/fixtures/tablet-2.yml +++ b/Tests/fixtures/tablet-2.yml @@ -4487,7 +4487,7 @@ device: type: tablet brand: SA - model: GALAXY Tab 10.1" P7500 + model: GALAXY Tab 10.1" os_family: Android browser_family: Android Browser - @@ -4507,7 +4507,7 @@ device: type: tablet brand: SA - model: GALAXY Tab 10.1" P7500 + model: GALAXY Tab 10.1" os_family: Android browser_family: Android Browser - @@ -4527,7 +4527,7 @@ device: type: tablet brand: SA - model: GALAXY Tab 10.1" P7500 + model: GALAXY Tab 10.1" os_family: Android browser_family: Android Browser - @@ -4547,7 +4547,7 @@ device: type: tablet brand: SA - model: GALAXY Tab 10.1" P7500 + model: GALAXY Tab 10.1" os_family: Android browser_family: Android Browser - @@ -4567,7 +4567,7 @@ device: type: tablet brand: SA - model: GALAXY Tab 10.1" P7500 + model: GALAXY Tab 10.1" os_family: Android browser_family: Android Browser - @@ -4587,7 +4587,7 @@ device: type: tablet brand: SA - model: GALAXY Tab 10.1" P7500 + model: GALAXY Tab 10.1" os_family: Android browser_family: Android Browser - @@ -4607,7 +4607,7 @@ device: type: tablet brand: SA - model: GALAXY Tab 10.1" P7500 + model: GALAXY Tab 10.1" os_family: Android browser_family: Android Browser - @@ -4627,7 +4627,47 @@ device: type: tablet brand: SA - model: GALAXY Tab 10.1" P7500 + model: GALAXY Tab 10.1" + os_family: Android + browser_family: Android Browser +- + user_agent: Mozilla/5.0 (Linux; U; Android 3.1; sv-se; GT-P7510 Build/HMJ37) AppleWebKit/534.13 (KHTML, like Gecko) Version/4.0 Safari/534.13 + os: + name: Android + short_name: AND + version: "3.1" + platform: "" + client: + type: browser + name: Android Browser + short_name: AN + version: "" + engine: WebKit + engine_version: "534.13" + device: + type: tablet + brand: SA + model: GALAXY Tab 10.1" + os_family: Android + browser_family: Android Browser +- + user_agent: Mozilla/5.0 (Linux; U; Android 3.2; cs-cz; GT-P7510 Build/HTJ85B) AppleWebKit/534.13 (KHTML, like Gecko) Version/4.0 Safari/534.13 + os: + name: Android + short_name: AND + version: "3.2" + platform: "" + client: + type: browser + name: Android Browser + short_name: AN + version: "" + engine: WebKit + engine_version: "534.13" + device: + type: tablet + brand: SA + model: GALAXY Tab 10.1" os_family: Android browser_family: Android Browser - @@ -6430,46 +6470,6 @@ model: GT-P7501 os_family: Android browser_family: Android Browser -- - user_agent: Mozilla/5.0 (Linux; U; Android 3.1; sv-se; GT-P7510 Build/HMJ37) AppleWebKit/534.13 (KHTML, like Gecko) Version/4.0 Safari/534.13 - os: - name: Android - short_name: AND - version: "3.1" - platform: "" - client: - type: browser - name: Android Browser - short_name: AN - version: "" - engine: WebKit - engine_version: "534.13" - device: - type: tablet - brand: SA - model: GT-P7510 - os_family: Android - browser_family: Android Browser -- - user_agent: Mozilla/5.0 (Linux; U; Android 3.2; cs-cz; GT-P7510 Build/HTJ85B) AppleWebKit/534.13 (KHTML, like Gecko) Version/4.0 Safari/534.13 - os: - name: Android - short_name: AND - version: "3.2" - platform: "" - client: - type: browser - name: Android Browser - short_name: AN - version: "" - engine: WebKit - engine_version: "534.13" - device: - type: tablet - brand: SA - model: GT-P7510 - os_family: Android - browser_family: Android Browser - user_agent: Mozilla/5.0 (Linux; U; Android 3.2; vi-vn; GT-P7511 Build/HTJ85B) AppleWebKit/534.13 (KHTML, like Gecko) Version/4.0 Safari/534.13 os: diff --git a/regexes/device/mobiles.yml b/regexes/device/mobiles.yml index 1147fd1250..9bb866f6a2 100644 --- a/regexes/device/mobiles.yml +++ b/regexes/device/mobiles.yml @@ -4968,7 +4968,7 @@ LeEco: model: 'Le 2' - regex: 'Le ?X([^;/]+) Build' model: 'Le X$1' - - regex: 'Le ?X([^ ;/]+)' + - regex: 'Le ?X([^) ;/]+)' model: 'Le X$1' - regex: 'Le ?([12][^;/]+) Build' model: 'Le $1' @@ -5237,7 +5237,7 @@ LG: model: 'G4' - regex: 'LG-H525n?' model: 'G4c' - - regex: 'LG-H540' + - regex: 'LG-(?:H540|H630)' model: 'G4 Stylus' - regex: 'LG-H735' model: 'G4 Beat' @@ -5331,6 +5331,8 @@ LG: model: 'Q6' - regex: '(?:LG-?)?K220' model: 'X Power' + - regex: '(?:LG-?)?M320' + model: 'X Power 2' - regex: '(?:LG-)?K371' model: 'Phoenix 2' - regex: '(?:LG-)?M150' @@ -6006,9 +6008,9 @@ Motorola: model: 'Droid Mini' - regex: '(?:MOT-|Motorola-)?XT1254' model: 'Droid Turbo' - - regex: '(?:MOT-|Motorola-)?XT10(?:28|3[1234]|68)' + - regex: '(?:MOT-|Motorola-)?XT10(?:28|3[1234]|68|69)' model: 'Moto G' - - regex: '(?:MOT-|Motorola-)?XT10(?:49|5[23568]|60|9[2345])' + - regex: '(?:MOT-|Motorola-)?XT10(?:49|5[23568]|60|9[23457])' model: 'Moto X' - regex: '(?:MOT-|Motorola-)?XT1562' model: 'Moto X Play' @@ -6021,11 +6023,11 @@ Motorola: - regex: '(?:MOT-|Motorola-)?XT1663' model: 'Moto M' - - regex: 'Moto ([CGEZ]) \(([a-z0-9]+)\)( Plus| Play)?' + - regex: 'Moto ([CGEXZ]) ?\(([a-z0-9]+)\)( Plus| Play)?' model: 'Moto $1$2$3' - - regex: 'Moto ?([CGEZ])([0-9]+)( Plus| Play)?' + - regex: 'Moto ?([CGEXZ])([0-9]+)( Plus| Play)?' model: 'Moto $1$2$3' - - regex: 'Moto ?([CGEZ])( Plus| Play)?' + - regex: 'Moto ?([CGEXZ])( Plus| Play)?' model: 'Moto $1$2' - regex: 'Motorola[ _\-]([a-z0-9]+)' @@ -6164,14 +6166,8 @@ Neffos: regex: 'Neffos' device: 'smartphone' models: - - regex: 'Neffos ([^/;]+) Build' + - regex: 'Neffos[_ ]((?:C|X)[0-9][A-Z]?(?: Max| Lite)?)' model: '$1' - - regex: 'Neffos ([^/;]+)/' - model: '$1' - - regex: 'Neffos_C9A' - model: 'C9A' - - regex: 'Neffos_(C|X)9' - model: '$19' # Nextbit Nextbit: @@ -7091,9 +7087,9 @@ Samsung: - regex: '(?:SAMSUNG-)?GT-P7100' device: 'tablet' model: 'GALAXY Tab 10.1v' - - regex: '(?:SAMSUNG-)?GT-P7500' + - regex: '(?:SAMSUNG-)?GT-P75[01]0' device: 'tablet' - model: 'GALAXY Tab 10.1" P7500' + model: 'GALAXY Tab 10.1"' - regex: '(?:SAMSUNG-)?SM-P600' device: 'tablet' model: 'GALAXY Note 10.1" 2014 Edition WiFi' @@ -7439,6 +7435,8 @@ Samsung: model: 'GALAXY S9' - regex: '(?:SAMSUNG-)?SM-G965[FNUWX0]|SCV39' model: 'GALAXY S9+' + - regex: '(?:SAMSUNG-)?SM-G973' + model: 'GALAXY S10' - regex: '(?:SAMSUNG-)?SCH-I200' model: 'GALAXY Stellar' - regex: '(?:SAMSUNG-)?SCH-I829' @@ -7521,7 +7519,7 @@ Samsung: model: 'GALAXY J5 (2015)' - regex: '(?:SAMSUNG-)?SM-J510(?:F|FN|MN)' model: 'GALAXY J5 (2016)' - - regex: '(?:SAMSUNG-)?SM-J530[FY]' + - regex: '(?:SAMSUNG-)?SM-J530' model: 'GALAXY J5 (2017)' - regex: '(?:SAMSUNG-)?SM-G570[FMY]' model: 'GALAXY J5 Prime' @@ -7549,6 +7547,8 @@ Samsung: model: 'GALAXY J7 V' - regex: 'SM-J7\[7\]' model: 'GALAXY J7 7' + - regex: '(?:SAMSUNG-)?SM-J810' + model: 'GALAXY J8' - regex: 'SM-J8 Pro' model: 'GALAXY J8 Pro' - regex: 'SM-J9\[7\] Prime' @@ -9400,7 +9400,7 @@ X-View: #Xiaomi Xiaomi: - regex: 'Xiaomi(?!/MiuiBrowser)|(MI [a-z0-9]+|Mi-4c|MI-One[ _]?[a-z0-9]+|MIX 2S?)[);/ ]|HM ([^/;]+) (?:Build|MIUI)|(2014501|2014011|201481[138]|201302[23]|2013061) Build|Redmi|POCOPHONE|SKR-H0' + regex: 'Xiaomi(?!/MiuiBrowser)|(?:MI [a-z0-9]+|Mi-4c|MI-One[ _]?[a-z0-9]+|MIX(?: 2S?)?)[);/ ]|HM (?:[^/;]+) (?:Build|MIUI)|(?:2014501|2014011|201481[138]|201302[23]|2013061) Build|Redmi|POCOPHONE|SKR-H0' device: 'smartphone' models: # specific smartphone models @@ -9422,6 +9422,8 @@ Xiaomi: model: 'MI MIX 2S' - regex: 'MIX 2[);/ ]' model: 'MI MIX 2' + - regex: 'MIX[);/ ]' + model: 'MI MIX' - regex: 'POCOPHONE F1' model: 'Pocophone F1' @@ -9447,7 +9449,7 @@ Xiaomi: # Xion Xion: - regex: 'XI-CE(655|U[48])' + regex: 'XI-CE(?:655|U[48])' device: 'smartphone' models: - regex: 'XI-CE(655|U[48])'