From 1a763542c151f8fec091c17dd2309c4efb29af7c Mon Sep 17 00:00:00 2001 From: Kun Jinkao <45487685+Snoopy1866@users.noreply.github.com> Date: Mon, 16 Oct 2023 00:54:53 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E5=BA=94=E7=94=A8=E5=8C=85=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E7=BB=84=E4=BB=B6):=20=E8=87=AA=E5=8A=A8=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E5=BA=94=E7=94=A8-=E8=A7=84=E5=88=99=E4=BC=98?= =?UTF-8?q?=E5=8C=96=20=20(#1102)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat 自动安装应用(完善规则) * feat 自动更新应用(完善规则) * feat 自动安装应用-勾选【已了解此应用存在高风险】 增加 preKeys --- src/apps/com.miui.packageinstaller.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/apps/com.miui.packageinstaller.ts b/src/apps/com.miui.packageinstaller.ts index 693f4b07..e775e800 100644 --- a/src/apps/com.miui.packageinstaller.ts +++ b/src/apps/com.miui.packageinstaller.ts @@ -58,6 +58,7 @@ export default defineAppConfig({ snapshotUrls: 'https://gkd-kit.gitee.io/import/12889135', }, { + preKeys: 2, key: 3, desc: '勾选【已了解此应用存在高风险】', activityIds: 'com.miui.packageInstaller.NewInstallerPrepareActivity', @@ -110,11 +111,16 @@ export default defineAppConfig({ { key: 0, desc: '点击【继续更新】', - activityIds: + activityIds: [ 'com.miui.packageInstaller.ui.InstallPrepareAlertActivity', + 'com.miui.packageInstaller.NewInstallerPrepareActivity', + ], matches: '[text="取消更新"] < LinearLayout - @FrameLayout > LinearLayout > [text="继续更新"]', - snapshotUrls: 'https://gkd-kit.songe.li/import/12817988', + snapshotUrls: [ + 'https://gkd-kit.songe.li/import/12817988', + 'https://gkd-kit.songe.li/import/12910080', + ], }, { preKeys: 0,