mirror of
https://github.com/AIsouler/GKD_subscription.git
synced 2025-12-21 09:15:11 +08:00
feat(应用包管理组件): 自动更新应用-规则优化 (#1217)
This commit is contained in:
@@ -108,6 +108,7 @@ export default defineAppConfig({
|
||||
key: 11,
|
||||
name: '自动更新应用',
|
||||
rules: [
|
||||
// 正常更新
|
||||
{
|
||||
key: 0,
|
||||
desc: '点击【继续更新】',
|
||||
@@ -122,9 +123,35 @@ export default defineAppConfig({
|
||||
'https://gkd-kit.songe.li/import/12910080',
|
||||
],
|
||||
},
|
||||
|
||||
// 需勾选【已了解此安装包未经安全检测】才能继续更新
|
||||
{
|
||||
preKeys: 0,
|
||||
key: 1,
|
||||
desc: '勾选【已了解此安装包未经安全检测】',
|
||||
activityIds: [
|
||||
'com.miui.packageInstaller.ui.InstallPrepareAlertActivity',
|
||||
'com.miui.packageInstaller.NewInstallerPrepareActivity',
|
||||
],
|
||||
matches:
|
||||
'[id="com.miui.packageinstaller:id/install_checked"][checked=false][text="已了解此安装包未经安全检测"]',
|
||||
snapshotUrls: [
|
||||
'https://gkd-kit.songe.li/import/13024730', // 未勾选
|
||||
'https://gkd-kit.songe.li/import/13024731', // 已勾选
|
||||
],
|
||||
},
|
||||
{
|
||||
preKeys: 1,
|
||||
key: 2,
|
||||
desc: '点击【继续更新',
|
||||
activityIds: 'com.miui.packageInstaller.NewInstallerPrepareActivity',
|
||||
matches: '@[text="继续更新"] + [text="取消更新"]',
|
||||
snapshotUrls: 'https://gkd-kit.songe.li/import/13024731',
|
||||
},
|
||||
|
||||
// 更新完成
|
||||
{
|
||||
preKeys: [0, 2],
|
||||
key: 3,
|
||||
desc: '点击【完成】',
|
||||
activityIds:
|
||||
'com.miui.packageInstaller.ui.normalmode.InstallProgressActivity',
|
||||
|
||||
Reference in New Issue
Block a user