某些应用规则需要二次识别点击的问题 #1150
Closed
helloworldbugs
started this conversation in
General
Replies: 1 comment
-
|
resetMatch: 'app', |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
型号:红米k50至尊版
系统:LineageOS-22.2-20250924-NIGHTLY-diting
有的应用规则,在审查页测试可以正常匹配,但是进入app出现弹窗广告之后,并没有执行点击关闭,而是需要返回桌面(又或者把页面滑到后台),再进入应用,才会执行点击关闭弹窗。最经典的莫过于“携程旅行”app的弹窗,每次打开都能触发一个弹窗,但是几乎每次都关闭失败。
使用的是订阅的规则,如下(并且我尝试过把 fastQuery: true,和actionMaximum: 1,全部删掉,惊喜的发现可以正常点击关闭了,但是只能正常维持一段时间,之后又变回老样子了):
{
key: 2,
name: '全屏广告-弹窗广告',
desc: '点击关闭',
rules: [
{
key: 0,
matches: [
'@ImageView[clickable=true] < RelativeLayout + RelativeLayout >5 [desc^="广告"] + [text="立即领取"]'
],
fastQuery: true,
actionMaximum: 1,
matchTime: 10000,
resetMatch: 'app',
snapshotUrls: [
'https://i.gkd.li/i/16357287'
],
exampleUrls: [
'https://e.gkd.li/00628604-fab9-432c-a70b-343c8c889c23'
],
activityIds: [
'ctrip.android.publicproduct.home.view.CtripHomeActivity'
]
},
{
key: 1,
matches: [
'@ImageView[clickable=true][childCount=0][visibleToUser=true] <4 FrameLayout[childCount=4] < FrameLayout < FrameLayout < [id="android:id/content"]'
],
fastQuery: true,
actionMaximum: 1,
matchTime: 10000,
snapshotUrls: [
'https://i.gkd.li/i/19050401'
],
exampleUrls: [
'https://e.gkd.li/cdc28230-6ea7-4cf7-bef4-a31f7e36eed1'
],
activityIds: [
'ctrip.business.planthome.CtripPlantHomeActivity'
]
},
{
key: 2,
matches: [
'@ImageView[childCount=0][clickable=true][visibleToUser=true][width<120 && height<120] < RelativeLayout[childCount=1] < RelativeLayout[childCount=2] < [id="android:id/content"]'
],
fastQuery: true,
actionMaximum: 1,
matchTime: 10000,
resetMatch: 'app',
snapshotUrls: [
'https://i.gkd.li/i/20921664'
],
exampleUrls: [
'https://e.gkd.li/065da3a4-b746-4ec7-a681-a6fd687c5f70'
],
activityIds: [
'ctrip.android.publicproduct.home.business.activity.CtripHomeActivity'
]
}
]
}
Beta Was this translation helpful? Give feedback.
All reactions