被手机广告逼疯?GKD开源工具:跳过广告+自动抢红包+游戏挂机全搞定_gkd规则一键导入网址
为什么需要GKD?
手机上开屏广告、弹窗广告、视频贴片广告已成为用户挥之不去的梦魇。据统计,普通用户每天因广告浪费的时间超过15分钟,而GKD(全称\"搞快点\")正是为解决这一痛点而生。这款基于Android无障碍服务的开源工具,通过智能识别屏幕元素实现自动化点击,不仅能跳过各类广告,更能实现自动登录、红包领取等高级操作。
环境准备与安装指南
系统兼容性检查
GKD支持Android 7.0及以上系统,特别优化了鸿蒙3.0-4.3的兼容性。安装前需确认:
- 手机已开启\"允许安装未知来源应用\"
- 存储空间剩余至少50MB
- 关闭MIUI、EMUI等系统的\"智能省电\"功能(防止后台被杀)
安装
GitHub官方源(推荐)
# 终端命令行安装adb install https://github.com/gkd-kit/gkd/releases/download/v1.0.5/gkd-release.apk
源码编译安装
适合开发者用户的进阶方案:
git clone https://github.com/gkd-kit/gkd.git# 使用Android Studio打开项目,同步Gradle后Build APK
关键权限配置
安装完成后需进行三步核心配置:
- 无障碍权限:设置→无障碍→已下载应用→启用GKD
- 电池优化白名单:设置→应用→GKD→电池优化→设置为\"不限制\"
- 悬浮窗权限:部分定制系统需单独开启(如MIUI在\"权限管理\"中设置)
核心功能
基础操作流程
安装完成后,GKD默认处于待机状态。典型使用流程:
#mermaid-svg-hWgoKOSVaBrO6wrN {font-family:\"trebuchet ms\",verdana,arial,sans-serif;font-size:16px;fill:#333;}#mermaid-svg-hWgoKOSVaBrO6wrN .error-icon{fill:#552222;}#mermaid-svg-hWgoKOSVaBrO6wrN .error-text{fill:#552222;stroke:#552222;}#mermaid-svg-hWgoKOSVaBrO6wrN .edge-thickness-normal{stroke-width:2px;}#mermaid-svg-hWgoKOSVaBrO6wrN .edge-thickness-thick{stroke-width:3.5px;}#mermaid-svg-hWgoKOSVaBrO6wrN .edge-pattern-solid{stroke-dasharray:0;}#mermaid-svg-hWgoKOSVaBrO6wrN .edge-pattern-dashed{stroke-dasharray:3;}#mermaid-svg-hWgoKOSVaBrO6wrN .edge-pattern-dotted{stroke-dasharray:2;}#mermaid-svg-hWgoKOSVaBrO6wrN .marker{fill:#333333;stroke:#333333;}#mermaid-svg-hWgoKOSVaBrO6wrN .marker.cross{stroke:#333333;}#mermaid-svg-hWgoKOSVaBrO6wrN svg{font-family:\"trebuchet ms\",verdana,arial,sans-serif;font-size:16px;}#mermaid-svg-hWgoKOSVaBrO6wrN .label{font-family:\"trebuchet ms\",verdana,arial,sans-serif;color:#333;}#mermaid-svg-hWgoKOSVaBrO6wrN .cluster-label text{fill:#333;}#mermaid-svg-hWgoKOSVaBrO6wrN .cluster-label span{color:#333;}#mermaid-svg-hWgoKOSVaBrO6wrN .label text,#mermaid-svg-hWgoKOSVaBrO6wrN span{fill:#333;color:#333;}#mermaid-svg-hWgoKOSVaBrO6wrN .node rect,#mermaid-svg-hWgoKOSVaBrO6wrN .node circle,#mermaid-svg-hWgoKOSVaBrO6wrN .node ellipse,#mermaid-svg-hWgoKOSVaBrO6wrN .node polygon,#mermaid-svg-hWgoKOSVaBrO6wrN .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#mermaid-svg-hWgoKOSVaBrO6wrN .node .label{text-align:center;}#mermaid-svg-hWgoKOSVaBrO6wrN .node.clickable{cursor:pointer;}#mermaid-svg-hWgoKOSVaBrO6wrN .arrowheadPath{fill:#333333;}#mermaid-svg-hWgoKOSVaBrO6wrN .edgePath .path{stroke:#333333;stroke-width:2.0px;}#mermaid-svg-hWgoKOSVaBrO6wrN .flowchart-link{stroke:#333333;fill:none;}#mermaid-svg-hWgoKOSVaBrO6wrN .edgeLabel{background-color:#e8e8e8;text-align:center;}#mermaid-svg-hWgoKOSVaBrO6wrN .edgeLabel rect{opacity:0.5;background-color:#e8e8e8;fill:#e8e8e8;}#mermaid-svg-hWgoKOSVaBrO6wrN .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#mermaid-svg-hWgoKOSVaBrO6wrN .cluster text{fill:#333;}#mermaid-svg-hWgoKOSVaBrO6wrN .cluster span{color:#333;}#mermaid-svg-hWgoKOSVaBrO6wrN div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:\"trebuchet ms\",verdana,arial,sans-serif;font-size:12px;background:hsl(80, 100%, 96.2745098039%);border:1px solid #aaaa33;border-radius:2px;pointer-events:none;z-index:100;}#mermaid-svg-hWgoKOSVaBrO6wrN :root{--mermaid-font-family:\"trebuchet ms\",verdana,arial,sans-serif;}是否启动目标应用GKD自动检测广告元素是否匹配规则?执行预设点击操作记录新元素特征
规则订阅系统
GKD的灵魂在于其开放的规则生态系统,提供三种订阅方式:
官方规则库
地址:https://rules.gkd-kit.com
覆盖主流应用场景的精选规则,支持一键导入:
[ { \"app\": \"com.tencent.mm\", \"rules\": [ {\"desc\":\"微信登录确认\",\"action\":\"click\",\"selector\":\"#agreeBtn\"} ] }]
社区共享规则
通过Telegram群组(@gkd_rules)获取最新规则,支持按应用分类检索:
- 电商类:淘宝/拼多多开屏广告过滤
- 社交类:微信自动登录确认
- 视频类:B站贴片广告跳过
自定义规则编写
进阶用户可通过快照审查功能创建专属规则:
- 触发审查模式:通知栏快捷方式→\"开始审查\"
- 截取目标元素:用取景框框选需要点击的区域
- 生成选择器:系统自动生成XPath/CSS选择器
- 保存规则:支持导出为JSON格式
规则配置
规则文件结构解析
典型规则文件包含三大核心模块:
{ \"version\": 5, \"rules\": [ { \"app\": \"应用包名\", \"activity\": \"界面标识\", \"matches\": [\"元素特征1\", \"元素特征2\"], \"action\": \"点击|滑动|输入\", \"selector\": \"元素选择器\", \"delay\": 500 } ]}
常用选择器语法
//*[@text=\'跳过\']
button.skip-btn
bounds=[100,200,300,400]
高级配置技巧
动态规则优化
通过正则表达式实现智能匹配:
{ \"matches\": [\"广告|推广|关闭\"], \"selector\": \"//android.widget.Button[contains(@text,\'广告\')]\"}
执行顺序控制
使用priority
字段调整规则优先级(数值越大优先级越高):
{ \"priority\": 1000, \"action\": \"click\"}
异常处理机制
配置max_fails
参数防止误操作:
{ \"max_fails\": 3, \"fail_action\": \"log|stop|reboot\"}
典型应用场景演示
广告跳过实战
以拼多多开屏广告为例:
- 订阅官方规则
com.xunmeng.pinduoduo
- 自定义添加延迟参数(部分机型需要300ms延迟)
- 测试验证:启动拼多多→观察广告自动跳过
微信自动化场景
实现红包自动领取:
{ \"app\": \"com.tencent.mm\", \"rules\": [ { \"activity\": \"LuckyMoneyReceiveUI\", \"selector\": \"#openBtn\", \"action\": \"click\", \"delay\": 800 } ]}
游戏辅助场景
王者荣耀自动同意组队:
{ \"app\": \"com.tencent.tmgp.sgame\", \"rules\": [ { \"activity\": \"TeamInviteActivity\", \"selector\": \"//android.widget.Button[@text=\'同意\']\", \"action\": \"click\" } ]}