From b6b91a2ddfa9748e0969a4fd2b737ccea9ab726e Mon Sep 17 00:00:00 2001 From: Kun Jinkao <45487685+Snoopy1866@users.noreply.github.com> Date: Fri, 6 Oct 2023 17:02:02 +0800 Subject: [PATCH] =?UTF-8?q?feat(MIUI=20=E5=BA=94=E7=94=A8=E5=8C=85?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E7=BB=84=E4=BB=B6):=20=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E5=AE=89=E8=A3=85=E5=BA=94=E7=94=A8=EF=BC=88=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E5=85=B3=E9=97=AD=EF=BC=89,=E8=87=AA=E5=8A=A8=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E5=BA=94=E7=94=A8=EF=BC=88=E9=BB=98=E8=AE=A4=E5=85=B3?= =?UTF-8?q?=E9=97=AD=EF=BC=89=20(#653)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/apps/com.miui.packageinstaller.ts | 65 +++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 src/apps/com.miui.packageinstaller.ts diff --git a/src/apps/com.miui.packageinstaller.ts b/src/apps/com.miui.packageinstaller.ts new file mode 100644 index 00000000..785f64be --- /dev/null +++ b/src/apps/com.miui.packageinstaller.ts @@ -0,0 +1,65 @@ +import { defineAppConfig } from '../types'; + +export default defineAppConfig({ + id: 'com.miui.packageinstaller', + name: '应用包管理组件', + groups: [ + { + enable: false, + key: 10, + name: '自动安装应用', + rules: [ + { + key: 0, + desc: '点击【继续安装】', + activityIds: [ + 'com.miui.packageInstaller.ui.InstallPrepareAlertActivity', + 'com.miui.packageInstaller.NewInstallerPrepareActivity', + ], + matches: + '[text="取消安装"] < LinearLayout - @FrameLayout > LinearLayout > [text="继续安装"]', + snapshotUrls: [ + 'https://gkd-kit.songe.li/import/12818034', + 'https://gkd-kit.songe.li/import/12818054', + ], + }, + { + preKeys: 0, + key: 1, + desc: '点击【完成】', + activityIds: + 'com.miui.packageInstaller.ui.normalmode.InstallProgressActivity', + matches: + '[id="com.miui.packageinstaller:id/done_layout"] > [text="完成"]', + snapshotUrls: 'https://gkd-kit.songe.li/import/12818044', + }, + ], + }, + { + enable: false, + key: 11, + name: '自动更新应用', + rules: [ + { + key: 0, + desc: '点击【继续更新】', + activityIds: + 'com.miui.packageInstaller.ui.InstallPrepareAlertActivity', + matches: + '[text="取消更新"] < LinearLayout - @FrameLayout > LinearLayout > [text="继续更新"]', + snapshotUrls: 'https://gkd-kit.songe.li/import/12817988', + }, + { + preKeys: 0, + key: 1, + desc: '点击【完成】', + activityIds: + 'com.miui.packageInstaller.ui.normalmode.InstallProgressActivity', + matches: + '[id="com.miui.packageinstaller:id/done_layout"] > [text="完成"]', + snapshotUrls: 'https://gkd-kit.songe.li/import/12817999', + }, + ], + }, + ], +});