From b3f1d1a6386fc1c7277749de54f8d33b28d1ad7d Mon Sep 17 00:00:00 2001 From: Alexsandr Tutik Date: Tue, 26 Mar 2024 18:09:10 +0300 Subject: [PATCH] feat: added specs for samsung - galaxy s20 fe (sm-g780g, sm-g780f) and test detect trusted feat: added specs for xiaomi - redmi 10c (220333qny) and test detect trusted --- regexes/device-info/device.yml | 5 + tests/fixtures/devices-trusted/fixture-0.yml | 129 +++++++++++++++++++ 2 files changed, 134 insertions(+) diff --git a/regexes/device-info/device.yml b/regexes/device-info/device.yml index 43423ae5..dd561c17 100644 --- a/regexes/device-info/device.yml +++ b/regexes/device-info/device.yml @@ -4728,6 +4728,9 @@ samsung: sm-g781u1: '->galaxy s20 fe 5g' sm-g781v: '->galaxy s20 fe 5g' sm-g781w: '->galaxy s20 fe 5g' + galaxy s20 fe: 'RE=2020.09;SZ=74.5x159.8x8.4;WT=190;DS=6.5;RS=1080x2400;OI=1;OV=10;CP=249;RM=6144;' + sm-g780g: '->galaxy s20 fe;CP=207;' + sm-g780f: '->galaxy s20 fe;' galaxy s4 zoom: 'RE=2013.06;SZ=63.5x125.5x15.4;WT=208;DS=4.3;RS=540x960;OI=1;OV=4.2.2;CP=;RM=1536;' sm-c105a: '->galaxy s4 zoom' sm-c105: '->galaxy s4 zoom' @@ -7232,3 +7235,5 @@ xiaomi: redmi note 8 pro: 'RE=2019.08;SZ=76.4x161.4x8.8;WT=200;DS=6.53;RS=1080x2340;OI=1;OV=9;CP=325;GP=120;RM=4096;TT=224759;TG=6999;' redmi 10: 'RE=2021.08;SZ=75.5x162x8.9;WT=181;DS=6.5;RS=1080x2400;OI=1;OV=11;CP=349;RM=4096;' 21061119dg: '->redmi 10' + redmi 10c: 'RE=2022.03;SZ=76.6x169.6x8.3;WT=190;DS=6.71;RS=720x1650;OI=1;OV=11;CP=363;RM=3072;' + 220333qny: '->redmi 10c' diff --git a/tests/fixtures/devices-trusted/fixture-0.yml b/tests/fixtures/devices-trusted/fixture-0.yml index 6c02e115..cdbfbc03 100644 --- a/tests/fixtures/devices-trusted/fixture-0.yml +++ b/tests/fixtures/devices-trusted/fixture-0.yml @@ -549,3 +549,132 @@ model: Galaxy A12 code: SM-A127F trusted: true +- + user_agent: Mozilla/5.0 (Linux; Android 13; SM-G780G Build/TP1A.220624.014; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/122.0.6261.64 Mobile Safari/537.36 TwitterAndroid + headers: + brands: + - brand: Chromium + version: '122' + - brand: Not(A:Brand + version: '24' + - brand: Android WebView + version: '122' + fullVersionList: + - brand: Chromium + version: 122.0.6261.64 + - brand: Not(A:Brand + version: 24.0.0.0 + - brand: Android WebView + version: 122.0.6261.64 + mobile: '1' + model: SM-G780G + platform: Android + platformVersion: 13.0.0 + uaFullVersion: 122.0.6261.64 + wow64: '0' + meta: + width: '1080' + height: '2401' + gpu: ANGLE (Qualcomm, Adreno (TM) 650, OpenGL ES 3.2) + os: + name: Android + version: 13.0.0 + platform: '' + client: + type: mobile app + name: Twitter + version: '' + device: + type: smartphone + brand: Samsung + model: Galaxy S20 FE + code: SM-G780G + trusted: true + os_family: Android + browser_family: Unknown +- + user_agent: Mozilla/5.0 (Linux; Android 13; SM-G780F Build/TP1A.220624.014; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/121.0.6167.180 Mobile Safari/537.36 TwitterAndroid + headers: + brands: + - brand: Not A(Brand + version: '99' + - brand: Android WebView + version: '121' + - brand: Chromium + version: '121' + fullVersionList: + - brand: Not A(Brand + version: 99.0.0.0 + - brand: Android WebView + version: 121.0.6167.180 + - brand: Chromium + version: 121.0.6167.180 + mobile: '1' + model: SM-G780F + platform: Android + platformVersion: 13.0.0 + uaFullVersion: 121.0.6167.180 + wow64: '0' + meta: + width: '1080' + height: '2400' + gpu: Mali-G77 + os: + name: Android + version: 13.0.0 + platform: '' + client: + type: mobile app + name: Twitter + version: '' + device: + type: smartphone + brand: Samsung + model: Galaxy S20 FE + code: SM-G780F + trusted: true + os_family: Android + browser_family: Unknown +- + user_agent: Mozilla/5.0 (Linux; Android 13; 220333QNY Build/TKQ1.221114.001; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/121.0.6167.180 Mobile Safari/537.36 TwitterAndroid + headers: + brands: + - brand: Not A(Brand + version: '99' + - brand: Android WebView + version: '121' + - brand: Chromium + version: '121' + fullVersionList: + - brand: Not A(Brand + version: 99.0.0.0 + - brand: Android WebView + version: 121.0.6167.180 + - brand: Chromium + version: 121.0.6167.180 + mobile: '1' + model: 220333QNY + platform: Android + platformVersion: 13.0.0 + uaFullVersion: 121.0.6167.180 + wow64: '0' + meta: + width: '720' + height: '1650' + gpu: Adreno (TM) 610 + os: + name: Android + version: 13.0.0 + platform: '' + client: + type: mobile app + name: Twitter + version: '' + device: + type: smartphone + brand: Xiaomi + model: Redmi 10C + code: 220333QNY + trusted: true + os_family: Android + browser_family: Unknown