GKD: The Open-Source Android Tool Automating Ad Blocking Without Root Access

GitHub May 2026
⭐ 38344📈 +433
Source: GitHubopen-sourceArchive: May 2026
GKD is an open-source Android app that leverages Accessibility Services and advanced selectors to automate screen taps, primarily targeting ad pop-ups and splash screens. Its subscription rule system enables community-driven sharing, amassing over 38,000 GitHub stars.

GKD (gkd-kit/gkd) has emerged as a standout open-source project on GitHub, garnering over 38,000 stars with a daily gain of 433. The app uses Android's Accessibility Service to programmatically detect and dismiss on-screen elements, such as interstitial ads, splash screen promotions, and repetitive notifications. Its core innovation lies in a 'advanced selector' engine that can precisely target UI components based on attributes like text, ID, or class name, combined with a subscription-based rule system that allows users to download and automatically update community-curated rule sets. This eliminates the need for root access or Xposed frameworks, making it broadly accessible. The project's rapid growth reflects a pent-up demand for lightweight, non-invasive ad automation tools on Android. However, its reliance on Accessibility Services creates a cat-and-mouse dynamic with app developers who may implement anti-automation measures. GKD's architecture is reminiscent of earlier tools like Auto.js but with a more focused scope and a modern subscription model. The project is maintained by a small team of Chinese developers, with documentation primarily in Chinese, though the codebase and rule format are language-agnostic. The key significance is that GKD represents a shift from monolithic ad blockers (like AdGuard) toward modular, community-driven automation frameworks that can be adapted for various use cases beyond ads, including auto-sign-ins and form filling.

Technical Deep Dive

GKD's architecture is built around three core components: the Accessibility Service listener, the advanced selector engine, and the subscription rule manager. The Accessibility Service runs in the background, monitoring for window changes and UI events. When a new window or dialog is detected, GKD's selector engine evaluates all active rules against the current UI hierarchy.

The advanced selector system uses a JSON-based query language that can match elements by:
- `text`: exact or partial text content
- `id`: resource ID (e.g., `com.example.app:id/close_button`)
- `className`: Android view class (e.g., `android.widget.Button`)
- `bounds`: screen position and size
- `childCount`, `depth`: structural properties
- Regular expressions for flexible matching

Rules are defined in a JSON format and can be chained with conditions like `matches`, `contains`, or `startsWith`. For example, a rule to dismiss a splash ad might look like:
```json
{
"name": "Skip Splash Ad",
"app": "com.example.app",
"match": {
"text": "跳过|Skip|关闭",
"className": "android.widget.Button"
},
"action": "click"
}
```

The subscription mechanism is particularly elegant: users subscribe to rule repositories (hosted on GitHub or other servers) via URLs. GKD periodically checks for updates and downloads new rules automatically. This creates a decentralized ecosystem where anyone can publish rule sets, and users can mix and match subscriptions from different maintainers.

Performance-wise, GKD is lightweight. The Accessibility Service only activates when the foreground app changes, and the selector engine runs in milliseconds for typical rule sets. The project's GitHub repository (gkd-kit/gkd) has seen 1,200+ forks and 200+ contributors, with the main codebase written in Kotlin. The rule format specification is documented in a separate repository (gkd-kit/gkd-rules) that has 500+ stars.

| Metric | Value |
|---|---|
| GitHub Stars | 38,344 |
| Daily Star Growth | 433 |
| Forks | 1,200+ |
| Contributors | 200+ |
| Rule Format Repo Stars | 500+ |
| Minimum Android Version | 7.0 (API 24) |
| APK Size | ~8 MB |

Data Takeaway: GKD's daily star growth of 433 indicates viral adoption, outpacing many established open-source Android tools. The large contributor base suggests active community maintenance, though the core team remains small.

Key Players & Case Studies

GKD's ecosystem includes several notable rule publishers. The most popular subscription repository, maintained by the core developer 'gkd-kit', contains over 500 rules covering 200+ common Chinese apps (WeChat, Alipay, Taobao, Douyin) and international apps (YouTube, Instagram, Twitter). Another major publisher, 'AIsouler', maintains a rule set focused on productivity automation, including auto-sign-in for forums and daily check-ins for reward apps.

Competing solutions in the Android ad-blocking space include:

| Tool | Approach | Root Required | Rule Sharing | GitHub Stars |
|---|---|---|---|---|
| GKD | Accessibility + Selectors | No | Subscription-based | 38,000+ |
| AdGuard | VPN-based filtering | No | Centralized lists | N/A (proprietary) |
| Blokada | VPN-based filtering | No | Centralized lists | 3,000+ |
| Auto.js | Accessibility + JavaScript | No | Script sharing | 15,000+ |
| Lucky Patcher | APK patching | Yes | No | N/A |

Data Takeaway: GKD's star count dwarfs Auto.js, its closest open-source competitor, highlighting the demand for a more focused, rule-based approach over full scripting. AdGuard remains the market leader by user base, but GKD's community model offers greater flexibility.

Case study: A Chinese user group on Telegram with 10,000+ members actively tests and submits rules for new app versions. When WeChat updated its splash screen in March 2025, the community created a working rule within 24 hours. This responsiveness is a key advantage over centralized ad blockers that require manual list updates.

Industry Impact & Market Dynamics

GKD's rise reflects a broader trend: the fragmentation of ad-blocking on mobile. As Google's Play Store bans ad-blocking apps and Apple's ATT framework limits tracking, users are turning to sideloaded solutions. GKD's Accessibility-based approach is particularly potent because it operates at the UI layer, bypassing network-level filters that can be circumvented by in-app webviews or native ads.

The market for mobile ad-blocking tools is estimated at $4.5 billion annually (2025), with Android accounting for 70% of users. GKD's open-source model undercuts commercial alternatives, but its lack of monetization raises sustainability questions. The project currently accepts donations via Patreon and GitHub Sponsors, with ~$2,000/month in contributions.

| Market Segment | 2024 Revenue | 2025 Projected | Growth Rate |
|---|---|---|---|
| VPN-based ad blockers | $1.2B | $1.5B | 25% |
| DNS-based filters | $800M | $1.0B | 25% |
| Accessibility-based tools | $50M | $200M | 300% |
| Browser extensions (mobile) | $300M | $350M | 17% |

Data Takeaway: Accessibility-based ad blocking is the fastest-growing segment, albeit from a small base. GKD is well-positioned to capture this growth, but faces competition from commercial tools like 'AdGuard Assistant' that also use Accessibility Services.

Risks, Limitations & Open Questions

1. Accessibility Service Abuse: Google has increasingly restricted Accessibility Service usage, requiring explicit user consent and banning its use for ad blocking in Play Store apps. GKD is distributed via GitHub and F-Droid, but future Android versions may limit background Accessibility access.

2. App Anti-Automation: Major apps like TikTok and Instagram have implemented 'Accessibility detection' that disables functionality when an automation tool is active. GKD's rules must constantly adapt to these countermeasures.

3. Rule Quality and Security: Malicious rules could theoretically perform unintended actions (e.g., clicking on hidden buttons that trigger purchases). The community relies on peer review, but there is no automated sandboxing.

4. Legal Gray Area: While GKD itself is legal, using it to bypass ad revenue may violate terms of service of some apps. In China, where most GKD users are based, the legal landscape around ad blocking is ambiguous.

5. Scalability of Rule Maintenance: With 200+ apps and frequent updates, maintaining comprehensive rule sets is labor-intensive. The project may need to adopt AI-based element detection to reduce manual rule writing.

AINews Verdict & Predictions

GKD represents a significant evolution in mobile automation, but its long-term viability hinges on three factors: Google's policy toward Accessibility Services, the community's ability to scale rule maintenance, and the arms race with app developers.

Prediction 1: Within 12 months, GKD will surpass 100,000 GitHub stars, becoming the most-starred Android automation tool on the platform. The subscription model will be adopted by other open-source projects, creating a 'rule marketplace' standard.

Prediction 2: Google will introduce new restrictions on Accessibility Services in Android 16 (expected 2026), potentially requiring apps to declare their automation purpose in the manifest. GKD will need to pivot to a 'companion app' model or use alternative APIs like NotificationListenerService.

Prediction 3: The rule format will evolve to include machine learning-based element classification. A community project (already in early development) called 'GKD-AI' aims to train a lightweight on-device model to identify ad elements without manual rules. If successful, this could make GKD resistant to UI changes.

Prediction 4: Commercial ad-blocking companies will acquire or clone GKD's approach. AdGuard has already experimented with Accessibility-based blocking in beta versions. Expect a 'freemium' competitor within 6 months.

What to watch: The next major update to GKD (v1.5) is expected to include a built-in rule editor with live preview, lowering the barrier for non-developers. The project's Discord server has 15,000 members, and the core team is hiring for a full-time developer, indicating professionalization.

Final editorial judgment: GKD is not just a tool—it's a blueprint for community-driven mobile automation. Its success will depend on whether it can maintain agility against platform gatekeepers while keeping the rule ecosystem healthy. We rate it as a 'Strong Buy' for users seeking ad-free Android experience, but caution that its golden age may be limited by platform evolution.

More from GitHub

UntitledFor over a decade, Windows users have watched macOS users tap the space bar and instantly preview any file—a seemingly sUntitledSequoia-X is an open-source Python project hosted on GitHub that aims to lower the barrier to entry for quantitative traUntitledHelmor, a new open-source project hosted on GitHub under the repository 'dohooo/helmor', has captured the developer commOpen source hub1642 indexed articles from GitHub

Related topics

open-source36 related articles

Archive

May 2026960 published articles

Further Reading

Lucidr Brings Lucide Icons to R: A Lightweight Wrapper for Shiny and R MarkdownA new R package, lucidr, aims to bring the popular Lucide icon library to R users, offering a simple interface for ShinyFlow2API: The Underground API Pool That Could Break AI Service EconomicsA new GitHub project, flow2api, is making waves by offering unlimited Banana Pro API access through a sophisticated reveAstral: The Open-Source Tool That Finally Makes GitHub Stars Actually UsefulAstral is an open-source web app that turns GitHub's chaotic Star list into a neatly organized, taggable, searchable libBilibili Evolved: The 29K-Star UserScript Reshaping Bilibili's Web ExperienceBilibili Evolved, a modular userscript with over 29,000 GitHub stars, is quietly revolutionizing how power users interac

常见问题

GitHub 热点“GKD: The Open-Source Android Tool Automating Ad Blocking Without Root Access”主要讲了什么?

GKD (gkd-kit/gkd) has emerged as a standout open-source project on GitHub, garnering over 38,000 stars with a daily gain of 433. The app uses Android's Accessibility Service to pro…

这个 GitHub 项目在“GKD advanced selector syntax examples”上为什么会引发关注?

GKD's architecture is built around three core components: the Accessibility Service listener, the advanced selector engine, and the subscription rule manager. The Accessibility Service runs in the background, monitoring…

从“GKD vs Auto.js comparison”看,这个 GitHub 项目的热度表现如何?

当前相关 GitHub 项目总星标约为 38344,近一日增长约为 433,这说明它在开源社区具有较强讨论度和扩散能力。