From 47d06ca691a16e511adf17d1c8e77338071a408c Mon Sep 17 00:00:00 2001 From: Kun Jinkao <45487685+Snoopy1866@users.noreply.github.com> Date: Fri, 20 Oct 2023 00:28:05 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E5=BA=94=E7=94=A8=E5=AE=89=E8=A3=85?= =?UTF-8?q?=E5=99=A8):=20=E8=87=AA=E5=8A=A8=E5=AE=89=E8=A3=85=E5=BA=94?= =?UTF-8?q?=E7=94=A8=20(#1236)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/apps/com.oplus.appdetail.ts | 36 +++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 src/apps/com.oplus.appdetail.ts diff --git a/src/apps/com.oplus.appdetail.ts b/src/apps/com.oplus.appdetail.ts new file mode 100644 index 00000000..a4b63ef4 --- /dev/null +++ b/src/apps/com.oplus.appdetail.ts @@ -0,0 +1,36 @@ +import { defineAppConfig } from '../types'; + +export default defineAppConfig({ + id: 'com.oplus.appdetail', + name: '应用安装器', + groups: [ + { + enable: false, + key: 1, + name: '自动安装应用', + rules: [ + { + key: 0, + desc: '点击【继续安装】', + activityIds: + 'com.oplus.appdetail.model.guide.ui.InstallGuideActivity', + matches: + '[id="com.oplus.appdetail:id/view_bottom_guide_continue_install_btn"]', + excludeMatches: + '[id="com.oplus.appdetail:id/view_scanning_and_tip_view_tv_title"]', + snapshotUrls: [ + 'https://gkd-kit.songe.li/import/13038560', // 使用 excludeMatches,扫描病毒阶段不进行点击 + 'https://gkd-kit.songe.li/import/13038570', + ], + }, + { + key: 1, + desc: '点击【完成】', + activityIds: 'com.oplus.appdetail.model.finish.InstallFinishActivity', + matches: '[id="com.oplus.appdetail:id/launch_button"]', + snapshotUrls: 'https://gkd-kit.songe.li/import/13038664', + }, + ], + }, + ], +});