Repository navigation
目标应用同包内切换 Activity 时对新窗口补一次全扫描 - #109
Merged
Merged
Conversation
Some apps start their main activity first and show the splash-ad activity on top of it a moment later (seen with Meituan's SplashAdActivity on a real device). The window-state event for that second activity used to only record the activity name, so the ad window was never scanned as a whole and could only be found through later content-changed events. The skip-ad process now treats an activity change inside the target package like the first activity: it keeps running and schedules one full scan of the new window. Nothing happens while no process is running, so whitelisted or launcher packages are unaffected. Also logs labelled nodes in debug builds to make "no keyword matched" cases diagnosable on a device.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
背景
真机(OPPO PHY110 / Android 16)测试 #108 时发现:美团外卖先进入 MainActivity,约 1 秒后才弹出 SplashAdActivity。原逻辑在"同包内切换 Activity"时只记录 Activity 名就
break,不对新窗口做全窗口扫描,广告页只能靠后续 CONTENT_CHANGED 事件碰巧覆盖到跳过按钮。这是原有行为,不是 #108 引入的。改动
rootOfActiveTargetWindow()校验包名)。流程未运行时不做任何事,白名单 / 桌面 / 输入法不受影响。验证
🤖 Generated with Claude Code