From 72d8e6e1b83f1f7423d2b903616d6c4698aee59c Mon Sep 17 00:00:00 2001 From: Liviu-Mihail Concioiu <liviu.concioiu@gmail.com> Date: Wed, 24 Aug 2022 11:36:28 +0200 Subject: [PATCH] Adds detection for various apps (#7221) * Adds detection for iSafePlay * Improves detection for Baidu Box App * Adds detection for T2S * Adds detection for Photo Sherlock * Adds detection for Reverse Image Search * Adds detection for Joy Launcher * Adds detection for TCL Live * Adds detection for Social Media Explorer * Adds detection for Reddit * Adds detection for Omshy VPN * Adds detection for Opera News * Adds detection for Search By Image * Adds detection for ShareKaro * Adds detection for NewsPoint * Adds detection for XOS Launcher * Adds detection for HiOS Launcher * Adds detection for itel Launcher * Adds detection for Twitter * Adds detection for Waze * Adds detection for Tuya Smart Life * Adds detection for Clean Master * Adds detection for TV Cast * Adds detection for CM Security * Adds detection for IDM Video Download Manager * Adds detection for Coupons & Deals * Adds detection for Quick Cast* Adds detection for Download Manager ref #7039 --- Tests/Parser/Client/fixtures/mobile_app.yml | 12 + Tests/fixtures/clienthints-app.yml | 558 ++++++++++++++++++++ regexes/client/hints/apps.yml | 31 ++ regexes/client/mobile_apps.yml | 10 + 4 files changed, 611 insertions(+) diff --git a/Tests/Parser/Client/fixtures/mobile_app.yml b/Tests/Parser/Client/fixtures/mobile_app.yml index da6fdcaf50..661d48ac60 100644 --- a/Tests/Parser/Client/fixtures/mobile_app.yml +++ b/Tests/Parser/Client/fixtures/mobile_app.yml @@ -1397,3 +1397,15 @@ type: mobile app name: Viber version: +- + user_agent: Mozilla/5.0 (Linux; Android 12; 2107113SG Build/SKQ1.211006.001; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/103.0.5060.129 Mobile Safari/537.36 Reddit/Version 2022.28.0/Build 533235/Android 12 + client: + type: mobile app + name: Reddit + version: 2022.28.0 +- + user_agent: Mozilla/5.0 (Linux; Android 12; SM-G991B Build/SP1A.210812.016; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/100.0.4896.127 Mobile Safari/537.36 TuyaSmart/3.38.1 TuyaSmartH5/1.0.0 TuyaHybrid/1.0.0 For Android/31 + client: + type: mobile app + name: Tuya Smart Life + version: 3.38.1 diff --git a/Tests/fixtures/clienthints-app.yml b/Tests/fixtures/clienthints-app.yml index cfb8bf9572..45efc3381b 100644 --- a/Tests/fixtures/clienthints-app.yml +++ b/Tests/fixtures/clienthints-app.yml @@ -1225,3 +1225,561 @@ model: Galaxy A21s os_family: Android browser_family: Unknown +- + user_agent: Mozilla/5.0 (Linux; Android 9; KYV46 Build/1.070PR.0099.a; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/103.0.5060.71 Mobile Safari/537.36 + headers: + http-x-requested-with: com.awesapp.isp + os: + name: Android + version: "9" + platform: "" + client: + type: mobile app + name: iSafePlay + version: "" + device: + type: smartphone + brand: Kyocera + model: Torque G04 + os_family: Android + browser_family: Unknown +- + user_agent: Mozilla/5.0 (Linux; Android 10; CLT-AL01 Build/HUAWEICLT-AL01; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/76.0.3809.89 Mobile Safari/537.36 T7/12.24 BDOS/1.0 (HarmonyOS 2.2.0) SP-engine/2.36.0 baiduboxapp/12.25.0.10 (Baidu; P1 10) NABar/1.0 + headers: + http-x-requested-with: com.baidu.searchbox + os: + name: HarmonyOS + version: 2.2.0 + platform: "" + client: + type: mobile app + name: Baidu Box App + version: 12.25.0.10 + device: + type: smartphone + brand: Huawei + model: P20 Pro + os_family: Android + browser_family: Unknown +- + user_agent: Mozilla/5.0 (Linux; Android 9; SM-A505FN Build/PPR1.180610.011; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/101.0.4951.61 Mobile Safari/537.36 + headers: + http-x-requested-with: hesoft.T2S + os: + name: Android + version: "9" + platform: "" + client: + type: mobile app + name: T2S + version: "" + device: + type: smartphone + brand: Samsung + model: Galaxy A50 + os_family: Android + browser_family: Unknown +- + user_agent: Mozilla/5.0 (Linux; Android 11; M2004J19C Build/RP1A.200720.011; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/102.0.5005.125 Mobile Safari/537.36 + headers: + http-x-requested-with: hippeis.com.photochecker + os: + name: Android + version: "11" + platform: "" + client: + type: mobile app + name: Photo Sherlock + version: "" + device: + type: smartphone + brand: Xiaomi + model: Redmi 9 + os_family: Android + browser_family: Unknown +- + user_agent: Mozilla/5.0 (Linux; Android 12; SM-A326U Build/SP1A.210812.016; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/102.0.5005.125 Mobile Safari/537.36 + headers: + http-x-requested-with: com.thinkfree.searchbyimage + os: + name: Android + version: "12" + platform: "" + client: + type: mobile app + name: Reverse Image Search + version: "" + device: + type: smartphone + brand: Samsung + model: Galaxy A32 5G + os_family: Android + browser_family: Unknown +- + user_agent: Mozilla/5.0 (Linux; Android 7.0; 5086A Build/NRD90M; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/64.0.3282.137 Mobile Safari/537.36 + headers: + http-x-requested-with: com.tct.launcher + os: + name: Android + version: "7.0" + platform: "" + client: + type: mobile app + name: Joy Launcher + version: "" + device: + type: smartphone + brand: Alcatel + model: "5" + os_family: Android + browser_family: Unknown +- + user_agent: Mozilla/5.0 (Linux; Android 5.1.1; 5054S Build/LMY47V; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/43.0.2357.121 Mobile Safari/537.36 + headers: + http-x-requested-with: com.tcl.live + os: + name: Android + version: 5.1.1 + platform: "" + client: + type: mobile app + name: TCL Live + version: "" + device: + type: smartphone + brand: Alcatel + model: One Touch Pop 3 5.5" + os_family: Android + browser_family: Unknown +- + user_agent: Mozilla/5.0 (Linux; Android 11; moto g stylus Build/RPRS31.Q1-56-9-15; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/101.0.4951.61 Mobile Safari/537.36 + headers: + http-x-requested-with: com.harshad.someto + os: + name: Android + version: "11" + platform: "" + client: + type: mobile app + name: Social Media Explorer + version: "" + device: + type: smartphone + brand: Motorola + model: Moto G Stylus + os_family: Android + browser_family: Unknown +- + user_agent: Mozilla/5.0 (Linux; Android 12; 2107113SG Build/SKQ1.211006.001; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/103.0.5060.129 Mobile Safari/537.36 Reddit/Version 2022.28.0/Build 533235/Android 12 + headers: + http-x-requested-with: com.reddit.frontpage + os: + name: Android + version: "12" + platform: "" + client: + type: mobile app + name: Reddit + version: 2022.28.0 + device: + type: smartphone + brand: Xiaomi + model: Mi 11T Pro + os_family: Android + browser_family: Unknown +- + user_agent: Mozilla/5.0 (Linux; Android 12; CPH2251 Build/SP1A.210812.003; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/104.0.5112.69 Mobile Safari/537.36 + headers: + http-x-requested-with: com.omshyapps.vpn + os: + name: Android + version: "12" + platform: "" + client: + type: mobile app + name: Omshy VPN + version: "" + device: + type: smartphone + brand: OPPO + model: Reno 6 + os_family: Android + browser_family: Unknown +- + user_agent: Mozilla/5.0 (Linux; U; Android 8.1.0; TECNO KA6 Build/O11019; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/98.0.4758.101 Mobile Safari/537.36 OPR/8.4.2254.56514 + headers: + http-x-requested-with: com.opera.app.news + os: + name: Android + version: 8.1.0 + platform: "" + client: + type: mobile app + name: Opera News + version: "" + device: + type: smartphone + brand: Tecno Mobile + model: Spark Youth + os_family: Android + browser_family: Unknown +- + user_agent: Mozilla/5.0 (Linux; Android 11; moto g(20) Build/RTAS31.68-34-2; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/102.0.5005.78 Mobile Safari/537.36 + headers: + http-x-requested-with: com.palmteam.imagesearch + os: + name: Android + version: "11" + platform: "" + client: + type: mobile app + name: Search By Image + version: "" + device: + type: smartphone + brand: Motorola + model: Moto G20 + os_family: Android + browser_family: Unknown +- + user_agent: Mozilla/5.0 (Linux; Android 11; CPH2001 Build/RP1A.200720.011; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/100.0.4896.127 Mobile Safari/537.36 + headers: + http-x-requested-with: com.sharekaro.app + os: + name: Android + version: "11" + platform: "" + client: + type: mobile app + name: ShareKaro + version: "" + device: + type: smartphone + brand: OPPO + model: A91 + os_family: Android + browser_family: Unknown +- + user_agent: Mozilla/5.0 (Linux; Android 10; CPH1933 Build/QKQ1.200209.002; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/81.0.4044.138 Mobile Safari/537.36 + headers: + http-x-requested-with: com.til.timesnews + os: + name: Android + version: "10" + platform: "" + client: + type: mobile app + name: NewsPoint + version: "" + device: + type: smartphone + brand: OPPO + model: A5 (2020) + os_family: Android + browser_family: Unknown +- + user_agent: Mozilla/5.0 (Linux; Android 11; Infinix X658E Build/RP1A.200720.011; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/101.0.4951.61 Mobile Safari/537.36 + headers: + http-x-requested-with: com.transsion.XOSLauncher + os: + name: Android + version: "11" + platform: "" + client: + type: mobile app + name: XOS Launcher + version: "" + device: + type: smartphone + brand: Infinix + model: Hot 10i + os_family: Android + browser_family: Unknown +- + user_agent: Mozilla/5.0 (Linux; Android 9; TECNO LC6 Build/PPR1.180610.011; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/79.0.3945.116 Mobile Safari/537.36 + headers: + http-x-requested-with: com.transsion.hilauncher + os: + name: Android + version: "9" + platform: "" + client: + type: mobile app + name: HiOS Launcher + version: "" + device: + type: smartphone + brand: Tecno Mobile + model: Pouvoir 3 Air + os_family: Android + browser_family: Unknown +- + user_agent: Mozilla/5.0 (Linux; Android 10; itel A571L Build/QP1A.190711.020; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/88.0.4324.181 Mobile Safari/537.36 + headers: + http-x-requested-with: com.transsion.itel.launcher + os: + name: Android + version: "10" + platform: "" + client: + type: mobile app + name: itel Launcher + version: "" + device: + type: smartphone + brand: iTel + model: A26 + os_family: Android + browser_family: Unknown +- + user_agent: Mozilla/5.0 (Linux; Android 6.0.1; SM-G532F Build/MMB29T; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/56.0.2924.87 Mobile Safari/537.36 TwitterAndroid + headers: + http-x-requested-with: com.twitter.android + os: + name: Android + version: 6.0.1 + platform: "" + client: + type: mobile app + name: Twitter + version: "" + device: + type: phablet + brand: Samsung + model: Galaxy Grand Prime Plus + os_family: Android + browser_family: Unknown +- + user_agent: Mozilla/5.0 (Linux; Android 5.1.1; SM-J320H Build/LMY47V; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/49.0.2623.105 Mobile Safari/537.36 + headers: + http-x-requested-with: com.waze + os: + name: Android + version: 5.1.1 + platform: "" + client: + type: mobile app + name: Waze + version: "" + device: + type: smartphone + brand: Samsung + model: Galaxy J3 (2016) + os_family: Android + browser_family: Unknown +- + user_agent: Mozilla/5.0 (Linux; Android 12; SM-G991B Build/SP1A.210812.016; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/100.0.4896.127 Mobile Safari/537.36 TuyaSmart/3.38.1 TuyaSmartH5/1.0.0 TuyaHybrid/1.0.0 For Android/31 + headers: + http-x-requested-with: com.tuya.smartlife + os: + name: Android + version: "12" + platform: "" + client: + type: mobile app + name: Tuya Smart Life + version: 3.38.1 + device: + type: smartphone + brand: Samsung + model: Galaxy S21 5G + os_family: Android + browser_family: Unknown +- + user_agent: Mozilla/5.0 (Linux; Android 5.1.1; Alcatel_4060A Build/LMY47V; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/69.0.3497.100 Mobile Safari/537.36 + headers: + http-x-requested-with: com.cleanmaster.mguard + os: + name: Android + version: 5.1.1 + platform: "" + client: + type: mobile app + name: Clean Master + version: "" + device: + type: smartphone + brand: Alcatel + model: 4060A + os_family: Android + browser_family: Unknown +- + user_agent: Mozilla/5.0 (Linux; Android 10; SCM-AL09 Build/HUAWEISCM-AL09; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/88.0.4324.93 Safari/537.36 + headers: + http-x-requested-with: com.cleanmaster.mguard.huawei + os: + name: Android + version: "10" + platform: "" + client: + type: mobile app + name: Clean Master + version: "" + device: + type: tablet + brand: Huawei + model: MediaPad M6 10.8" + os_family: Android + browser_family: Unknown +- + user_agent: Mozilla/5.0 (Linux; Android 12; SM-A135F Build/SP1A.210812.016; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/103.0.5060.71 Mobile Safari/537.36 + headers: + http-x-requested-with: de.twokit.castbrowsernexusplayer + os: + name: Android + version: "12" + platform: "" + client: + type: mobile app + name: TV Cast + version: "" + device: + type: smartphone + brand: Samsung + model: Galaxy A13 + os_family: Android + browser_family: Unknown +- + user_agent: Mozilla/5.0 (Linux; Android 9; SM-G950W Build/PPR1.180610.011; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/100.0.4896.88 Mobile Safari/537.36 + headers: + http-x-requested-with: de.twokit.video.tv.cast.browser.firetv + os: + name: Android + version: "9" + platform: "" + client: + type: mobile app + name: TV Cast + version: "" + device: + type: smartphone + brand: Samsung + model: Galaxy S8 + os_family: Android + browser_family: Unknown +- + user_agent: Mozilla/5.0 (Linux; Android 10; Redmi 8A Build/QKQ1.191014.001; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/87.0.4280.101 Mobile Safari/537.36 + headers: + http-x-requested-with: de.twokit.video.tv.cast.browser.lg + os: + name: Android + version: "10" + platform: "" + client: + type: mobile app + name: TV Cast + version: "" + device: + type: smartphone + brand: Xiaomi + model: Redmi 8A + os_family: Android + browser_family: Unknown +- + user_agent: Mozilla/5.0 (Linux; Android 10; SM-T835 Build/QP1A.190711.020; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/102.0.5005.125 Safari/537.36 + headers: + http-x-requested-with: de.twokit.video.tv.cast.browser.samsung + os: + name: Android + version: "10" + platform: "" + client: + type: mobile app + name: TV Cast + version: "" + device: + type: tablet + brand: Samsung + model: Galaxy Tab S4 10.5" + os_family: Android + browser_family: Unknown +- + user_agent: Mozilla/5.0 (Linux; Android 11; M2101K7BL Build/RP1A.200720.011; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/44.0.2403.119 Mobile Safari/537.36 + headers: + http-x-requested-with: com.cleanmaster.security + os: + name: Android + version: "11" + platform: "" + client: + type: mobile app + name: CM Security + version: "" + device: + type: phablet + brand: Xiaomi + model: Redmi Note 10S + os_family: Android + browser_family: Unknown +- + user_agent: Mozilla/5.0 (Linux; U; Android 4.3; Google Nexus 4 Build/JLS36G) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30 + headers: + http-x-requested-with: idm.video.free + os: + name: Android + version: "4.3" + platform: "" + client: + type: mobile app + name: IDM Video Download Manager + version: "" + device: + type: smartphone + brand: Google + model: Nexus 4 + os_family: Android + browser_family: Unknown +- + user_agent: Mozilla/5.0 (Linux; Android 12; SM-A326U Build/SP1A.210812.016; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/101.0.4951.61 Mobile Safari/537.36 + headers: + http-x-requested-with: mobi.deallauncher.coupons.shopping + os: + name: Android + version: "12" + platform: "" + client: + type: mobile app + name: 'Coupons & Deals' + version: "" + device: + type: smartphone + brand: Samsung + model: Galaxy A32 5G + os_family: Android + browser_family: Unknown +- + user_agent: Mozilla/5.0 (Linux; U; Android 7.0; en-us) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/53.0.2785.146 Mobile Safari/537.36 QuickCast + headers: + http-x-requested-with: com.wukongtv.wkcast.intl + os: + name: Android + version: "7.0" + platform: "" + client: + type: mobile app + name: Quick Cast + version: "" + device: + type: smartphone + brand: "" + model: "" + os_family: Android + browser_family: Unknown +- + user_agent: Mozilla/5.0 (Linux; Android 8.1; Y27 Build/LMY47I; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/43.0.2357.121 Mobile Safari/537.36/4.05d.1002.m75.10.14003 + headers: + http-x-requested-with: com.tt.android.dm.view + os: + name: Android + version: "8.1" + platform: "" + client: + type: mobile app + name: Download Manager + version: "" + device: + type: smartphone + brand: "" + model: "" + os_family: Android + browser_family: Unknown diff --git a/regexes/client/hints/apps.yml b/regexes/client/hints/apps.yml index 01994b312e..f2507fb6e5 100644 --- a/regexes/client/hints/apps.yml +++ b/regexes/client/hints/apps.yml @@ -62,6 +62,36 @@ 'com.wiseplay': 'Wiseplay' 'com.fsecure.ms.nifty': 'Always Safe Security 24' 'com.zeebusiness.news': 'Zee Business' +'com.awesapp.isp': 'iSafePlay' +'com.baidu.searchbox': 'Baidu Box App' +'hesoft.T2S': 'T2S' +'hippeis.com.photochecker': 'Photo Sherlock' +'com.thinkfree.searchbyimage': 'Reverse Image Search' +'com.tct.launcher': 'Joy Launcher' +'com.tcl.live': 'TCL Live' +'com.harshad.someto': 'Social Media Explorer' +'com.reddit.frontpage': 'Reddit' +'com.opera.app.news': 'Opera News' +'com.palmteam.imagesearch': 'Search By Image' +'com.sharekaro.app': 'ShareKaro' +'com.til.timesnews': 'NewsPoint' +'com.transsion.XOSLauncher': 'XOS Launcher' +'com.transsion.hilauncher': 'HiOS Launcher' +'com.transsion.itel.launcher': 'itel Launcher' +'com.twitter.android': 'Twitter' +'com.waze': 'Waze' +'com.tuya.smartlife': 'Tuya Smart Life' +'com.cleanmaster.mguard': 'Clean Master' +'com.cleanmaster.mguard.huawei': 'Clean Master' +'de.twokit.castbrowsernexusplayer': 'TV Cast' +'de.twokit.video.tv.cast.browser.firetv': 'TV Cast' +'de.twokit.video.tv.cast.browser.lg': 'TV Cast' +'de.twokit.video.tv.cast.browser.samsung': 'TV Cast' +'com.cleanmaster.security': 'CM Security' +'idm.video.free': 'IDM Video Download Manager' +'mobi.deallauncher.coupons.shopping': 'Coupons & Deals' +'com.wukongtv.wkcast.intl': 'Quick Cast' +'com.tt.android.dm.view': 'Download Manager' # Vpns 'org.torproject.android': 'Orbot' @@ -69,3 +99,4 @@ 'com.udicorn.proxy': 'Blue Proxy' 'com.v2.vpn.security.free': 'V2Free' 'com.surfshark.vpnclient.android': 'Surfshark' +'com.omshyapps.vpn': 'Omshy VPN' diff --git a/regexes/client/mobile_apps.yml b/regexes/client/mobile_apps.yml index 9fe785dd96..19da7ce350 100644 --- a/regexes/client/mobile_apps.yml +++ b/regexes/client/mobile_apps.yml @@ -1335,3 +1335,13 @@ - regex: 'AT&T TV' name: 'DIRECTV' version: '' + +# Reddit (https://play.google.com/store/apps/details?id=com.reddit.frontpage) +- regex: 'Reddit/Version (\d+\.[.\d]+)/' + name: 'Reddit' + version: '$1' + +# Tuya Smart Life (https://play.google.com/store/apps/details?id=com.tuya.smartlife) +- regex: 'TuyaSmart/(\d+\.[.\d]+)' + name: 'Tuya Smart Life' + version: '$1'