feat(软件包安装程序、QQ):优化规则

This commit is contained in:
aisouler
2024-02-02 18:05:07 +08:00
parent 1c3e99d246
commit 077e9d3328
3 changed files with 12 additions and 17 deletions

View File

@@ -6,7 +6,7 @@ export default defineAppConfig({
groups: [
{
key: 1,
name: '更新弹窗',
name: '更新提示',
quickFind: true,
matchTime: 10000,
actionMaximum: 1,

View File

@@ -20,16 +20,16 @@ export default defineAppConfig({
},
{
key: 1,
activityIds: 'com.android.packageinstaller.NewInstallInstalling',
matches: [
'@[clickable=true][childCount=1] > [text="完成"]',
'[id="com.android.packageinstaller:id/done_button"][clickable=true]',
activityIds: [
'com.android.packageinstaller.NewInstallInstalling',
'com.android.packageinstaller.InstallSuccess',
],
matches: '[text="完成"]',
snapshotUrls: [
'https://i.gkd.li/import/13206476', //规则1
//规则2
'https://i.gkd.li/import/13206476',
'https://i.gkd.li/import/13766420',
'https://i.gkd.li/import/13962438', //text=null
'https://i.gkd.li/import/13962438',
'https://i.gkd.li/import/14138323',
],
},
],

View File

@@ -379,21 +379,16 @@ export default defineAppConfig({
{
key: 0,
activityIds: 'com.tencent.mobileqq.activity.SplashActivity',
quickFind: true,
matches: '[id="com.tencent.mobileqq:id/iyx"]',
matches:
'[text*="版本更新" || text*="点击下载"] + ImageView[clickable=true]',
snapshotUrls: [
'https://i.gkd.li/import/13188722',
'https://i.gkd.li/import/13255493', //desc值为null快照
'https://i.gkd.li/import/13843140', //关系选择器为-2快照
'https://i.gkd.li/import/14138340',
'https://i.gkd.li/import/13931212',
],
},
{
key: 1,
activityIds: 'com.tencent.mobileqq.activity.SplashActivity',
matches:
'[text="发现QQ版本更新"] + [text="点击下载"] + ImageView[clickable=true]',
snapshotUrls: 'https://i.gkd.li/import/13931212',
},
],
},
{